@geoprotocol/geo-sdk 0.18.3 → 0.19.0

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 (344) hide show
  1. package/README.md +995 -372
  2. package/dist/contracts.d.ts +0 -11
  3. package/dist/contracts.d.ts.map +1 -1
  4. package/dist/contracts.js +0 -11
  5. package/dist/contracts.js.map +1 -1
  6. package/dist/index.d.ts +7 -0
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +7 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/lite.d.ts +2 -0
  11. package/dist/lite.d.ts.map +1 -1
  12. package/dist/lite.js +2 -0
  13. package/dist/lite.js.map +1 -1
  14. package/dist/src/abis/dao-space-v2.test.d.ts +2 -0
  15. package/dist/src/abis/dao-space-v2.test.d.ts.map +1 -0
  16. package/dist/src/abis/dao-space-v2.test.js +67 -0
  17. package/dist/src/abis/dao-space-v2.test.js.map +1 -0
  18. package/dist/src/client/api.d.ts +86 -0
  19. package/dist/src/client/api.d.ts.map +1 -0
  20. package/dist/src/client/api.js +169 -0
  21. package/dist/src/client/api.js.map +1 -0
  22. package/dist/src/client/comments.d.ts +59 -0
  23. package/dist/src/client/comments.d.ts.map +1 -0
  24. package/dist/src/client/comments.js +96 -0
  25. package/dist/src/client/comments.js.map +1 -0
  26. package/dist/src/client/context.d.ts +20 -0
  27. package/dist/src/client/context.d.ts.map +1 -0
  28. package/dist/src/client/context.js +20 -0
  29. package/dist/src/client/context.js.map +1 -0
  30. package/dist/src/client/dao-spaces.d.ts +348 -0
  31. package/dist/src/client/dao-spaces.d.ts.map +1 -0
  32. package/dist/src/client/dao-spaces.js +494 -0
  33. package/dist/src/client/dao-spaces.js.map +1 -0
  34. package/dist/src/client/dao-spaces.test.d.ts +2 -0
  35. package/dist/src/client/dao-spaces.test.d.ts.map +1 -0
  36. package/dist/src/client/dao-spaces.test.js +263 -0
  37. package/dist/src/client/dao-spaces.test.js.map +1 -0
  38. package/dist/src/client/edits.d.ts +100 -0
  39. package/dist/src/client/edits.d.ts.map +1 -0
  40. package/dist/src/client/edits.js +131 -0
  41. package/dist/src/client/edits.js.map +1 -0
  42. package/dist/src/client/edits.test.d.ts +2 -0
  43. package/dist/src/client/edits.test.d.ts.map +1 -0
  44. package/dist/src/client/edits.test.js +98 -0
  45. package/dist/src/client/edits.test.js.map +1 -0
  46. package/dist/src/client/entities.d.ts +23 -0
  47. package/dist/src/client/entities.d.ts.map +1 -0
  48. package/dist/src/client/entities.js +88 -0
  49. package/dist/src/client/entities.js.map +1 -0
  50. package/dist/src/client/entity-votes.d.ts +141 -0
  51. package/dist/src/client/entity-votes.d.ts.map +1 -0
  52. package/dist/src/client/entity-votes.js +168 -0
  53. package/dist/src/client/entity-votes.js.map +1 -0
  54. package/dist/src/client/entity-votes.test.d.ts +2 -0
  55. package/dist/src/client/entity-votes.test.d.ts.map +1 -0
  56. package/dist/src/client/entity-votes.test.js +93 -0
  57. package/dist/src/client/entity-votes.test.js.map +1 -0
  58. package/dist/src/client/graph-workflows.test.d.ts +2 -0
  59. package/dist/src/client/graph-workflows.test.d.ts.map +1 -0
  60. package/dist/src/client/graph-workflows.test.js +83 -0
  61. package/dist/src/client/graph-workflows.test.js.map +1 -0
  62. package/dist/src/client/images-storage.test.d.ts +2 -0
  63. package/dist/src/client/images-storage.test.d.ts.map +1 -0
  64. package/dist/src/client/images-storage.test.js +52 -0
  65. package/dist/src/client/images-storage.test.js.map +1 -0
  66. package/dist/src/client/images.d.ts +35 -0
  67. package/dist/src/client/images.d.ts.map +1 -0
  68. package/dist/src/client/images.js +90 -0
  69. package/dist/src/client/images.js.map +1 -0
  70. package/dist/src/client/personal-spaces.d.ts +155 -0
  71. package/dist/src/client/personal-spaces.d.ts.map +1 -0
  72. package/dist/src/client/personal-spaces.js +198 -0
  73. package/dist/src/client/personal-spaces.js.map +1 -0
  74. package/dist/src/client/proposals.d.ts +185 -0
  75. package/dist/src/client/proposals.d.ts.map +1 -0
  76. package/dist/src/client/proposals.js +294 -0
  77. package/dist/src/client/proposals.js.map +1 -0
  78. package/dist/src/client/proposals.test.d.ts +2 -0
  79. package/dist/src/client/proposals.test.d.ts.map +1 -0
  80. package/dist/src/client/proposals.test.js +243 -0
  81. package/dist/src/client/proposals.test.js.map +1 -0
  82. package/dist/src/client/spaces.test.d.ts +2 -0
  83. package/dist/src/client/spaces.test.d.ts.map +1 -0
  84. package/dist/src/client/spaces.test.js +155 -0
  85. package/dist/src/client/spaces.test.js.map +1 -0
  86. package/dist/src/client/storage.d.ts +52 -0
  87. package/dist/src/client/storage.d.ts.map +1 -0
  88. package/dist/src/client/storage.js +53 -0
  89. package/dist/src/client/storage.js.map +1 -0
  90. package/dist/src/client.d.ts +325 -0
  91. package/dist/src/client.d.ts.map +1 -0
  92. package/dist/src/client.js +452 -0
  93. package/dist/src/client.js.map +1 -0
  94. package/dist/src/client.test.d.ts +2 -0
  95. package/dist/src/client.test.d.ts.map +1 -0
  96. package/dist/src/client.test.js +120 -0
  97. package/dist/src/client.test.js.map +1 -0
  98. package/dist/src/contracts-v2/abis.d.ts +196 -0
  99. package/dist/src/contracts-v2/abis.d.ts.map +1 -0
  100. package/dist/src/contracts-v2/abis.js +110 -0
  101. package/dist/src/contracts-v2/abis.js.map +1 -0
  102. package/dist/src/contracts-v2/actions.d.ts +56 -0
  103. package/dist/src/contracts-v2/actions.d.ts.map +1 -0
  104. package/dist/src/contracts-v2/actions.js +83 -0
  105. package/dist/src/contracts-v2/actions.js.map +1 -0
  106. package/dist/src/contracts-v2/encoding.d.ts +80 -0
  107. package/dist/src/contracts-v2/encoding.d.ts.map +1 -0
  108. package/dist/src/contracts-v2/encoding.js +193 -0
  109. package/dist/src/contracts-v2/encoding.js.map +1 -0
  110. package/dist/src/contracts-v2/encoding.test.d.ts +2 -0
  111. package/dist/src/contracts-v2/encoding.test.d.ts.map +1 -0
  112. package/dist/src/contracts-v2/encoding.test.js +93 -0
  113. package/dist/src/contracts-v2/encoding.test.js.map +1 -0
  114. package/dist/src/contracts-v2/local-geobrowser.e2e.test.d.ts +2 -0
  115. package/dist/src/contracts-v2/local-geobrowser.e2e.test.d.ts.map +1 -0
  116. package/dist/src/contracts-v2/local-geobrowser.e2e.test.js +239 -0
  117. package/dist/src/contracts-v2/local-geobrowser.e2e.test.js.map +1 -0
  118. package/dist/src/contracts-v2/voting-settings.d.ts +48 -0
  119. package/dist/src/contracts-v2/voting-settings.d.ts.map +1 -0
  120. package/dist/src/contracts-v2/voting-settings.js +69 -0
  121. package/dist/src/contracts-v2/voting-settings.js.map +1 -0
  122. package/dist/src/dao-space/constants.d.ts +6 -3
  123. package/dist/src/dao-space/constants.d.ts.map +1 -1
  124. package/dist/src/dao-space/constants.js +6 -5
  125. package/dist/src/dao-space/constants.js.map +1 -1
  126. package/dist/src/dao-space/create-space.d.ts +1 -31
  127. package/dist/src/dao-space/create-space.d.ts.map +1 -1
  128. package/dist/src/dao-space/create-space.js +5 -70
  129. package/dist/src/dao-space/create-space.js.map +1 -1
  130. package/dist/src/dao-space/execute-proposal.d.ts +1 -22
  131. package/dist/src/dao-space/execute-proposal.d.ts.map +1 -1
  132. package/dist/src/dao-space/execute-proposal.js +12 -59
  133. package/dist/src/dao-space/execute-proposal.js.map +1 -1
  134. package/dist/src/dao-space/propose-add-editor.test.js +1 -1
  135. package/dist/src/dao-space/propose-add-editor.test.js.map +1 -1
  136. package/dist/src/dao-space/propose-edit.d.ts +1 -30
  137. package/dist/src/dao-space/propose-edit.d.ts.map +1 -1
  138. package/dist/src/dao-space/propose-edit.js +12 -108
  139. package/dist/src/dao-space/propose-edit.js.map +1 -1
  140. package/dist/src/dao-space/propose-edit.test.js +8 -1
  141. package/dist/src/dao-space/propose-edit.test.js.map +1 -1
  142. package/dist/src/dao-space/propose-remove-editor.d.ts.map +1 -1
  143. package/dist/src/dao-space/propose-remove-editor.js +5 -5
  144. package/dist/src/dao-space/propose-remove-editor.js.map +1 -1
  145. package/dist/src/dao-space/propose-remove-editor.test.js +3 -8
  146. package/dist/src/dao-space/propose-remove-editor.test.js.map +1 -1
  147. package/dist/src/dao-space/propose-remove-member.d.ts.map +1 -1
  148. package/dist/src/dao-space/propose-remove-member.js +5 -5
  149. package/dist/src/dao-space/propose-remove-member.js.map +1 -1
  150. package/dist/src/dao-space/propose-request-membership.d.ts.map +1 -1
  151. package/dist/src/dao-space/propose-request-membership.js +4 -4
  152. package/dist/src/dao-space/propose-request-membership.js.map +1 -1
  153. package/dist/src/dao-space/propose-update-voting-settings.d.ts +8 -0
  154. package/dist/src/dao-space/propose-update-voting-settings.d.ts.map +1 -0
  155. package/dist/src/dao-space/propose-update-voting-settings.js +19 -0
  156. package/dist/src/dao-space/propose-update-voting-settings.js.map +1 -0
  157. package/dist/src/dao-space/propose-update-voting-settings.test.d.ts +2 -0
  158. package/dist/src/dao-space/propose-update-voting-settings.test.d.ts.map +1 -0
  159. package/dist/src/dao-space/propose-update-voting-settings.test.js +118 -0
  160. package/dist/src/dao-space/propose-update-voting-settings.test.js.map +1 -0
  161. package/dist/src/dao-space/vote-proposal.d.ts +1 -24
  162. package/dist/src/dao-space/vote-proposal.d.ts.map +1 -1
  163. package/dist/src/dao-space/vote-proposal.js +12 -64
  164. package/dist/src/dao-space/vote-proposal.js.map +1 -1
  165. package/dist/src/e2e/local-geobrowser.d.ts +9 -0
  166. package/dist/src/e2e/local-geobrowser.d.ts.map +1 -0
  167. package/dist/src/e2e/local-geobrowser.js +35 -0
  168. package/dist/src/e2e/local-geobrowser.js.map +1 -0
  169. package/dist/src/e2e/v2-contracts.test.d.ts +2 -0
  170. package/dist/src/e2e/v2-contracts.test.d.ts.map +1 -0
  171. package/dist/src/e2e/v2-contracts.test.js +25 -0
  172. package/dist/src/e2e/v2-contracts.test.js.map +1 -0
  173. package/dist/src/e2e-api-surface.test.d.ts +2 -0
  174. package/dist/src/e2e-api-surface.test.d.ts.map +1 -0
  175. package/dist/src/e2e-api-surface.test.js +1021 -0
  176. package/dist/src/e2e-api-surface.test.js.map +1 -0
  177. package/dist/src/e2e-flows.test.d.ts +2 -0
  178. package/dist/src/e2e-flows.test.d.ts.map +1 -0
  179. package/dist/src/e2e-flows.test.js +445 -0
  180. package/dist/src/e2e-flows.test.js.map +1 -0
  181. package/dist/src/e2e-legacy-api-surface.test.d.ts +2 -0
  182. package/dist/src/e2e-legacy-api-surface.test.d.ts.map +1 -0
  183. package/dist/src/e2e-legacy-api-surface.test.js +840 -0
  184. package/dist/src/e2e-legacy-api-surface.test.js.map +1 -0
  185. package/dist/src/encoding.d.ts +3 -0
  186. package/dist/src/encoding.d.ts.map +1 -1
  187. package/dist/src/encoding.js +3 -0
  188. package/dist/src/encoding.js.map +1 -1
  189. package/dist/src/encodings/get-create-dao-space-calldata.d.ts +3 -89
  190. package/dist/src/encodings/get-create-dao-space-calldata.d.ts.map +1 -1
  191. package/dist/src/encodings/get-create-dao-space-calldata.js +5 -95
  192. package/dist/src/encodings/get-create-dao-space-calldata.js.map +1 -1
  193. package/dist/src/encodings/get-create-personal-space-calldata.d.ts +2 -0
  194. package/dist/src/encodings/get-create-personal-space-calldata.d.ts.map +1 -1
  195. package/dist/src/encodings/get-create-personal-space-calldata.js +2 -0
  196. package/dist/src/encodings/get-create-personal-space-calldata.js.map +1 -1
  197. package/dist/src/graph/comment-utils.d.ts +4 -0
  198. package/dist/src/graph/comment-utils.d.ts.map +1 -1
  199. package/dist/src/graph/comment-utils.js +4 -0
  200. package/dist/src/graph/comment-utils.js.map +1 -1
  201. package/dist/src/graph/constants.d.ts +12 -3
  202. package/dist/src/graph/constants.d.ts.map +1 -1
  203. package/dist/src/graph/constants.js +11 -5
  204. package/dist/src/graph/constants.js.map +1 -1
  205. package/dist/src/graph/create-comment.d.ts +3 -22
  206. package/dist/src/graph/create-comment.d.ts.map +1 -1
  207. package/dist/src/graph/create-comment.js +6 -136
  208. package/dist/src/graph/create-comment.js.map +1 -1
  209. package/dist/src/graph/create-comment.test.js +19 -8
  210. package/dist/src/graph/create-comment.test.js.map +1 -1
  211. package/dist/src/graph/create-entity.d.ts +2 -0
  212. package/dist/src/graph/create-entity.d.ts.map +1 -1
  213. package/dist/src/graph/create-entity.js +2 -0
  214. package/dist/src/graph/create-entity.js.map +1 -1
  215. package/dist/src/graph/create-image.d.ts +2 -21
  216. package/dist/src/graph/create-image.d.ts.map +1 -1
  217. package/dist/src/graph/create-image.js +7 -69
  218. package/dist/src/graph/create-image.js.map +1 -1
  219. package/dist/src/graph/create-property.d.ts +2 -0
  220. package/dist/src/graph/create-property.d.ts.map +1 -1
  221. package/dist/src/graph/create-property.js +2 -0
  222. package/dist/src/graph/create-property.js.map +1 -1
  223. package/dist/src/graph/create-proposal-review.d.ts +1 -27
  224. package/dist/src/graph/create-proposal-review.d.ts.map +1 -1
  225. package/dist/src/graph/create-proposal-review.js +4 -61
  226. package/dist/src/graph/create-proposal-review.js.map +1 -1
  227. package/dist/src/graph/create-relation.d.ts +2 -0
  228. package/dist/src/graph/create-relation.d.ts.map +1 -1
  229. package/dist/src/graph/create-relation.js +2 -0
  230. package/dist/src/graph/create-relation.js.map +1 -1
  231. package/dist/src/graph/create-type.d.ts +2 -0
  232. package/dist/src/graph/create-type.d.ts.map +1 -1
  233. package/dist/src/graph/create-type.js +2 -0
  234. package/dist/src/graph/create-type.js.map +1 -1
  235. package/dist/src/graph/delete-entity.d.ts +2 -14
  236. package/dist/src/graph/delete-entity.d.ts.map +1 -1
  237. package/dist/src/graph/delete-entity.js +5 -78
  238. package/dist/src/graph/delete-entity.js.map +1 -1
  239. package/dist/src/graph/delete-entity.test.js +7 -0
  240. package/dist/src/graph/delete-entity.test.js.map +1 -1
  241. package/dist/src/graph/delete-relation.d.ts +2 -0
  242. package/dist/src/graph/delete-relation.d.ts.map +1 -1
  243. package/dist/src/graph/delete-relation.js +2 -0
  244. package/dist/src/graph/delete-relation.js.map +1 -1
  245. package/dist/src/graph/entity-vote.d.ts +3 -3
  246. package/dist/src/graph/entity-vote.d.ts.map +1 -1
  247. package/dist/src/graph/entity-vote.js +21 -46
  248. package/dist/src/graph/entity-vote.js.map +1 -1
  249. package/dist/src/graph/update-comment.d.ts +3 -0
  250. package/dist/src/graph/update-comment.d.ts.map +1 -1
  251. package/dist/src/graph/update-comment.js +3 -0
  252. package/dist/src/graph/update-comment.js.map +1 -1
  253. package/dist/src/graph/update-entity.d.ts +2 -0
  254. package/dist/src/graph/update-entity.d.ts.map +1 -1
  255. package/dist/src/graph/update-entity.js +2 -0
  256. package/dist/src/graph/update-entity.js.map +1 -1
  257. package/dist/src/graph/update-proposal-review.d.ts +2 -27
  258. package/dist/src/graph/update-proposal-review.d.ts.map +1 -1
  259. package/dist/src/graph/update-proposal-review.js +4 -50
  260. package/dist/src/graph/update-proposal-review.js.map +1 -1
  261. package/dist/src/graph/update-relation.d.ts +2 -0
  262. package/dist/src/graph/update-relation.d.ts.map +1 -1
  263. package/dist/src/graph/update-relation.js +2 -0
  264. package/dist/src/graph/update-relation.js.map +1 -1
  265. package/dist/src/ipfs-core.d.ts +42 -0
  266. package/dist/src/ipfs-core.d.ts.map +1 -0
  267. package/dist/src/ipfs-core.js +165 -0
  268. package/dist/src/ipfs-core.js.map +1 -0
  269. package/dist/src/ipfs-core.test.d.ts +2 -0
  270. package/dist/src/ipfs-core.test.d.ts.map +1 -0
  271. package/dist/src/ipfs-core.test.js +56 -0
  272. package/dist/src/ipfs-core.test.js.map +1 -0
  273. package/dist/src/ipfs.d.ts +7 -52
  274. package/dist/src/ipfs.d.ts.map +1 -1
  275. package/dist/src/ipfs.js +27 -170
  276. package/dist/src/ipfs.js.map +1 -1
  277. package/dist/src/networks.d.ts +46 -0
  278. package/dist/src/networks.d.ts.map +1 -0
  279. package/dist/src/networks.js +90 -0
  280. package/dist/src/networks.js.map +1 -0
  281. package/dist/src/ops/comments.d.ts +80 -0
  282. package/dist/src/ops/comments.d.ts.map +1 -0
  283. package/dist/src/ops/comments.js +142 -0
  284. package/dist/src/ops/comments.js.map +1 -0
  285. package/dist/src/ops/entities.d.ts +50 -0
  286. package/dist/src/ops/entities.d.ts.map +1 -0
  287. package/dist/src/ops/entities.js +51 -0
  288. package/dist/src/ops/entities.js.map +1 -0
  289. package/dist/src/ops/images.d.ts +37 -0
  290. package/dist/src/ops/images.d.ts.map +1 -0
  291. package/dist/src/ops/images.js +69 -0
  292. package/dist/src/ops/images.js.map +1 -0
  293. package/dist/src/ops/index.d.ts +7 -0
  294. package/dist/src/ops/index.d.ts.map +1 -0
  295. package/dist/src/ops/index.js +7 -0
  296. package/dist/src/ops/index.js.map +1 -0
  297. package/dist/src/ops/index.test.d.ts +2 -0
  298. package/dist/src/ops/index.test.d.ts.map +1 -0
  299. package/dist/src/ops/index.test.js +115 -0
  300. package/dist/src/ops/index.test.js.map +1 -0
  301. package/dist/src/ops/properties.d.ts +20 -0
  302. package/dist/src/ops/properties.d.ts.map +1 -0
  303. package/dist/src/ops/properties.js +20 -0
  304. package/dist/src/ops/properties.js.map +1 -0
  305. package/dist/src/ops/proposal-reviews.d.ts +43 -0
  306. package/dist/src/ops/proposal-reviews.d.ts.map +1 -0
  307. package/dist/src/ops/proposal-reviews.js +103 -0
  308. package/dist/src/ops/proposal-reviews.js.map +1 -0
  309. package/dist/src/ops/relations.d.ts +57 -0
  310. package/dist/src/ops/relations.d.ts.map +1 -0
  311. package/dist/src/ops/relations.js +59 -0
  312. package/dist/src/ops/relations.js.map +1 -0
  313. package/dist/src/ops/types.d.ts +20 -0
  314. package/dist/src/ops/types.d.ts.map +1 -0
  315. package/dist/src/ops/types.js +20 -0
  316. package/dist/src/ops/types.js.map +1 -0
  317. package/dist/src/personal-space/constants.d.ts +1 -0
  318. package/dist/src/personal-space/constants.d.ts.map +1 -1
  319. package/dist/src/personal-space/constants.js +1 -0
  320. package/dist/src/personal-space/constants.js.map +1 -1
  321. package/dist/src/personal-space/create-space.d.ts +1 -18
  322. package/dist/src/personal-space/create-space.d.ts.map +1 -1
  323. package/dist/src/personal-space/create-space.js +1 -18
  324. package/dist/src/personal-space/create-space.js.map +1 -1
  325. package/dist/src/personal-space/has-space.d.ts +9 -2
  326. package/dist/src/personal-space/has-space.d.ts.map +1 -1
  327. package/dist/src/personal-space/has-space.js +9 -13
  328. package/dist/src/personal-space/has-space.js.map +1 -1
  329. package/dist/src/personal-space/has-space.test.d.ts +2 -0
  330. package/dist/src/personal-space/has-space.test.d.ts.map +1 -0
  331. package/dist/src/personal-space/has-space.test.js +30 -0
  332. package/dist/src/personal-space/has-space.test.js.map +1 -0
  333. package/dist/src/personal-space/publish-edit.d.ts +1 -22
  334. package/dist/src/personal-space/publish-edit.d.ts.map +1 -1
  335. package/dist/src/personal-space/publish-edit.js +10 -64
  336. package/dist/src/personal-space/publish-edit.js.map +1 -1
  337. package/dist/src/smart-wallet.d.ts +2 -4
  338. package/dist/src/smart-wallet.d.ts.map +1 -1
  339. package/dist/src/smart-wallet.js +6 -9
  340. package/dist/src/smart-wallet.js.map +1 -1
  341. package/dist/src/types.d.ts +25 -0
  342. package/dist/src/types.d.ts.map +1 -1
  343. package/dist/src/types.js.map +1 -1
  344. package/package.json +14 -1
@@ -0,0 +1,196 @@
1
+ export declare const VotingSettingsV2Components: readonly [{
2
+ readonly name: "partialPercentageSupportThreshold";
3
+ readonly type: "uint256";
4
+ }, {
5
+ readonly name: "universalPercentageSupportThreshold";
6
+ readonly type: "uint256";
7
+ }, {
8
+ readonly name: "flatSupportThreshold";
9
+ readonly type: "uint256";
10
+ }, {
11
+ readonly name: "quorum";
12
+ readonly type: "uint256";
13
+ }, {
14
+ readonly name: "duration";
15
+ readonly type: "uint256";
16
+ }, {
17
+ readonly name: "disableFastPathAccessForNewMembers";
18
+ readonly type: "bool";
19
+ }, {
20
+ readonly name: "executionGracePeriod";
21
+ readonly type: "uint256";
22
+ }];
23
+ export declare const SpaceRegistryV2Abi: readonly [{
24
+ readonly type: "function";
25
+ readonly name: "registerSpaceId";
26
+ readonly stateMutability: "nonpayable";
27
+ readonly inputs: readonly [{
28
+ readonly name: "_type";
29
+ readonly type: "bytes32";
30
+ }, {
31
+ readonly name: "_version";
32
+ readonly type: "bytes";
33
+ }];
34
+ readonly outputs: readonly [{
35
+ readonly name: "_spaceId";
36
+ readonly type: "bytes16";
37
+ }];
38
+ }, {
39
+ readonly type: "function";
40
+ readonly name: "enter";
41
+ readonly stateMutability: "nonpayable";
42
+ readonly inputs: readonly [{
43
+ readonly name: "_fromSpaceId";
44
+ readonly type: "bytes16";
45
+ }, {
46
+ readonly name: "_toSpaceId";
47
+ readonly type: "bytes16";
48
+ }, {
49
+ readonly name: "_action";
50
+ readonly type: "bytes32";
51
+ }, {
52
+ readonly name: "_subject";
53
+ readonly type: "bytes32";
54
+ }, {
55
+ readonly name: "_data";
56
+ readonly type: "bytes";
57
+ }, {
58
+ readonly name: "_signature";
59
+ readonly type: "bytes";
60
+ }];
61
+ readonly outputs: readonly [];
62
+ }];
63
+ export declare const DaoSpaceFactoryV2Abi: readonly [{
64
+ readonly type: "function";
65
+ readonly name: "createDAOSpaceProxy";
66
+ readonly stateMutability: "nonpayable";
67
+ readonly inputs: readonly [{
68
+ readonly name: "_votingSettings";
69
+ readonly type: "tuple";
70
+ readonly components: readonly [{
71
+ readonly name: "partialPercentageSupportThreshold";
72
+ readonly type: "uint256";
73
+ }, {
74
+ readonly name: "universalPercentageSupportThreshold";
75
+ readonly type: "uint256";
76
+ }, {
77
+ readonly name: "flatSupportThreshold";
78
+ readonly type: "uint256";
79
+ }, {
80
+ readonly name: "quorum";
81
+ readonly type: "uint256";
82
+ }, {
83
+ readonly name: "duration";
84
+ readonly type: "uint256";
85
+ }, {
86
+ readonly name: "disableFastPathAccessForNewMembers";
87
+ readonly type: "bool";
88
+ }, {
89
+ readonly name: "executionGracePeriod";
90
+ readonly type: "uint256";
91
+ }];
92
+ }, {
93
+ readonly name: "_initialEditors";
94
+ readonly type: "bytes16[]";
95
+ }, {
96
+ readonly name: "_initialMembers";
97
+ readonly type: "bytes16[]";
98
+ }, {
99
+ readonly name: "_initialEditsContentUri";
100
+ readonly type: "bytes";
101
+ }, {
102
+ readonly name: "_initialEditsMetadata";
103
+ readonly type: "bytes";
104
+ }, {
105
+ readonly name: "_initialTopicId";
106
+ readonly type: "bytes16";
107
+ }];
108
+ readonly outputs: readonly [{
109
+ readonly name: "_newDAOSpaceProxy";
110
+ readonly type: "address";
111
+ }];
112
+ }];
113
+ export declare const DaoSpaceV2Abi: readonly [{
114
+ readonly type: "function";
115
+ readonly name: "addEditor";
116
+ readonly stateMutability: "nonpayable";
117
+ readonly inputs: readonly [{
118
+ readonly name: "_newEditorSpaceId";
119
+ readonly type: "bytes16";
120
+ }];
121
+ readonly outputs: readonly [];
122
+ }, {
123
+ readonly type: "function";
124
+ readonly name: "addMember";
125
+ readonly stateMutability: "nonpayable";
126
+ readonly inputs: readonly [{
127
+ readonly name: "_newMemberSpaceId";
128
+ readonly type: "bytes16";
129
+ }];
130
+ readonly outputs: readonly [];
131
+ }, {
132
+ readonly type: "function";
133
+ readonly name: "removeEditor";
134
+ readonly stateMutability: "nonpayable";
135
+ readonly inputs: readonly [{
136
+ readonly name: "_oldEditorSpaceId";
137
+ readonly type: "bytes16";
138
+ }];
139
+ readonly outputs: readonly [];
140
+ }, {
141
+ readonly type: "function";
142
+ readonly name: "removeMember";
143
+ readonly stateMutability: "nonpayable";
144
+ readonly inputs: readonly [{
145
+ readonly name: "_oldMemberSpaceId";
146
+ readonly type: "bytes16";
147
+ }];
148
+ readonly outputs: readonly [];
149
+ }, {
150
+ readonly type: "function";
151
+ readonly name: "ping";
152
+ readonly stateMutability: "nonpayable";
153
+ readonly inputs: readonly [{
154
+ readonly name: "_action";
155
+ readonly type: "bytes32";
156
+ }, {
157
+ readonly name: "_subject";
158
+ readonly type: "bytes32";
159
+ }, {
160
+ readonly name: "_data";
161
+ readonly type: "bytes";
162
+ }];
163
+ readonly outputs: readonly [];
164
+ }, {
165
+ readonly type: "function";
166
+ readonly name: "updateVotingSettings";
167
+ readonly stateMutability: "nonpayable";
168
+ readonly inputs: readonly [{
169
+ readonly name: "_votingSettings";
170
+ readonly type: "tuple";
171
+ readonly components: readonly [{
172
+ readonly name: "partialPercentageSupportThreshold";
173
+ readonly type: "uint256";
174
+ }, {
175
+ readonly name: "universalPercentageSupportThreshold";
176
+ readonly type: "uint256";
177
+ }, {
178
+ readonly name: "flatSupportThreshold";
179
+ readonly type: "uint256";
180
+ }, {
181
+ readonly name: "quorum";
182
+ readonly type: "uint256";
183
+ }, {
184
+ readonly name: "duration";
185
+ readonly type: "uint256";
186
+ }, {
187
+ readonly name: "disableFastPathAccessForNewMembers";
188
+ readonly type: "bool";
189
+ }, {
190
+ readonly name: "executionGracePeriod";
191
+ readonly type: "uint256";
192
+ }];
193
+ }];
194
+ readonly outputs: readonly [];
195
+ }];
196
+ //# sourceMappingURL=abis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/contracts-v2/abis.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBrB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDhB,CAAC"}
@@ -0,0 +1,110 @@
1
+ export const VotingSettingsV2Components = [
2
+ { name: 'partialPercentageSupportThreshold', type: 'uint256' },
3
+ { name: 'universalPercentageSupportThreshold', type: 'uint256' },
4
+ { name: 'flatSupportThreshold', type: 'uint256' },
5
+ { name: 'quorum', type: 'uint256' },
6
+ { name: 'duration', type: 'uint256' },
7
+ { name: 'disableFastPathAccessForNewMembers', type: 'bool' },
8
+ { name: 'executionGracePeriod', type: 'uint256' },
9
+ ];
10
+ export const SpaceRegistryV2Abi = [
11
+ {
12
+ type: 'function',
13
+ name: 'registerSpaceId',
14
+ stateMutability: 'nonpayable',
15
+ inputs: [
16
+ { name: '_type', type: 'bytes32' },
17
+ { name: '_version', type: 'bytes' },
18
+ ],
19
+ outputs: [{ name: '_spaceId', type: 'bytes16' }],
20
+ },
21
+ {
22
+ type: 'function',
23
+ name: 'enter',
24
+ stateMutability: 'nonpayable',
25
+ inputs: [
26
+ { name: '_fromSpaceId', type: 'bytes16' },
27
+ { name: '_toSpaceId', type: 'bytes16' },
28
+ { name: '_action', type: 'bytes32' },
29
+ { name: '_subject', type: 'bytes32' },
30
+ { name: '_data', type: 'bytes' },
31
+ { name: '_signature', type: 'bytes' },
32
+ ],
33
+ outputs: [],
34
+ },
35
+ ];
36
+ export const DaoSpaceFactoryV2Abi = [
37
+ {
38
+ type: 'function',
39
+ name: 'createDAOSpaceProxy',
40
+ stateMutability: 'nonpayable',
41
+ inputs: [
42
+ {
43
+ name: '_votingSettings',
44
+ type: 'tuple',
45
+ components: VotingSettingsV2Components,
46
+ },
47
+ { name: '_initialEditors', type: 'bytes16[]' },
48
+ { name: '_initialMembers', type: 'bytes16[]' },
49
+ { name: '_initialEditsContentUri', type: 'bytes' },
50
+ { name: '_initialEditsMetadata', type: 'bytes' },
51
+ { name: '_initialTopicId', type: 'bytes16' },
52
+ ],
53
+ outputs: [{ name: '_newDAOSpaceProxy', type: 'address' }],
54
+ },
55
+ ];
56
+ export const DaoSpaceV2Abi = [
57
+ {
58
+ type: 'function',
59
+ name: 'addEditor',
60
+ stateMutability: 'nonpayable',
61
+ inputs: [{ name: '_newEditorSpaceId', type: 'bytes16' }],
62
+ outputs: [],
63
+ },
64
+ {
65
+ type: 'function',
66
+ name: 'addMember',
67
+ stateMutability: 'nonpayable',
68
+ inputs: [{ name: '_newMemberSpaceId', type: 'bytes16' }],
69
+ outputs: [],
70
+ },
71
+ {
72
+ type: 'function',
73
+ name: 'removeEditor',
74
+ stateMutability: 'nonpayable',
75
+ inputs: [{ name: '_oldEditorSpaceId', type: 'bytes16' }],
76
+ outputs: [],
77
+ },
78
+ {
79
+ type: 'function',
80
+ name: 'removeMember',
81
+ stateMutability: 'nonpayable',
82
+ inputs: [{ name: '_oldMemberSpaceId', type: 'bytes16' }],
83
+ outputs: [],
84
+ },
85
+ {
86
+ type: 'function',
87
+ name: 'ping',
88
+ stateMutability: 'nonpayable',
89
+ inputs: [
90
+ { name: '_action', type: 'bytes32' },
91
+ { name: '_subject', type: 'bytes32' },
92
+ { name: '_data', type: 'bytes' },
93
+ ],
94
+ outputs: [],
95
+ },
96
+ {
97
+ type: 'function',
98
+ name: 'updateVotingSettings',
99
+ stateMutability: 'nonpayable',
100
+ inputs: [
101
+ {
102
+ name: '_votingSettings',
103
+ type: 'tuple',
104
+ components: VotingSettingsV2Components,
105
+ },
106
+ ],
107
+ outputs: [],
108
+ },
109
+ ];
110
+ //# sourceMappingURL=abis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abis.js","sourceRoot":"","sources":["../../../src/contracts-v2/abis.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,EAAE,IAAI,EAAE,mCAAmC,EAAE,IAAI,EAAE,SAAS,EAAE;IAC9D,EAAE,IAAI,EAAE,qCAAqC,EAAE,IAAI,EAAE,SAAS,EAAE;IAChE,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,EAAE;IACjD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IACnC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,oCAAoC,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5D,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,EAAE;CACzC,CAAC;AAEX,MAAM,CAAC,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IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;SACjC;QACD,OAAO,EAAE,EAAE;KACZ;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,sBAAsB;QAC5B,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,OAAO;gBACb,UAAU,EAAE,0BAA0B;aACvC;SACF;QACD,OAAO,EAAE,EAAE;KACZ;CACO,CAAC"}
@@ -0,0 +1,56 @@
1
+ export declare const ZERO_BYTES16: "0x00000000000000000000000000000000";
2
+ export declare const ZERO_BYTES32: "0x0000000000000000000000000000000000000000000000000000000000000000";
3
+ export declare const EMPTY_SIGNATURE: "0x";
4
+ export declare const GovernanceActions: {
5
+ readonly EDITS_PUBLISHED: `0x${string}`;
6
+ readonly MEMBERSHIP_REQUESTED: `0x${string}`;
7
+ readonly PROPOSAL_CREATED: `0x${string}`;
8
+ readonly PROPOSAL_UPDATED: `0x${string}`;
9
+ readonly PROPOSAL_VOTED: `0x${string}`;
10
+ readonly PROPOSAL_EXECUTED: `0x${string}`;
11
+ readonly VOTING_SETTINGS_UPDATED: `0x${string}`;
12
+ readonly TOPIC_SET: `0x${string}`;
13
+ readonly TOPIC_UNSET: `0x${string}`;
14
+ readonly SUBSPACE_TOPIC_SET: `0x${string}`;
15
+ readonly SUBSPACE_TOPIC_UNSET: `0x${string}`;
16
+ readonly FLAGGED: `0x${string}`;
17
+ readonly UNFLAGGED: `0x${string}`;
18
+ readonly SUBSPACE_VERIFIED: `0x${string}`;
19
+ readonly SUBSPACE_UNVERIFIED: `0x${string}`;
20
+ readonly SUBSPACE_RELATED: `0x${string}`;
21
+ readonly SUBSPACE_UNRELATED: `0x${string}`;
22
+ };
23
+ export declare const PermissionlessActions: {
24
+ readonly UPVOTED: `0x${string}`;
25
+ readonly DOWNVOTED: `0x${string}`;
26
+ readonly UNVOTED: `0x${string}`;
27
+ };
28
+ export declare const VotingMode: {
29
+ readonly Slow: 0;
30
+ readonly Fast: 1;
31
+ };
32
+ export declare const VoteOption: {
33
+ readonly None: 0;
34
+ readonly Yes: 1;
35
+ readonly No: 2;
36
+ readonly Abstain: 3;
37
+ };
38
+ export type VoteOptionName = 'YES' | 'NO' | 'ABSTAIN';
39
+ export type VotingModeName = 'SLOW' | 'FAST';
40
+ export declare const VoteOptionValues: {
41
+ readonly YES: 1;
42
+ readonly NO: 2;
43
+ readonly ABSTAIN: 3;
44
+ };
45
+ export declare const VotingModeValues: {
46
+ readonly SLOW: 0;
47
+ readonly FAST: 1;
48
+ };
49
+ export declare const BYTES16_HEX_REGEX: RegExp;
50
+ export declare const BYTES32_HEX_REGEX: RegExp;
51
+ export declare function ensure0xPrefix(value: string): `0x${string}`;
52
+ export declare function isBytes16Hex(value: string): boolean;
53
+ export declare function toBytes16(value: string, sourceHint?: string): `0x${string}`;
54
+ export declare function idToBytes16(id: string, sourceHint?: string): `0x${string}`;
55
+ export declare function bytes16ToBytes32LeftAligned(bytes16Hex: `0x${string}`): `0x${string}`;
56
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/contracts-v2/actions.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,EAAG,oCAA6C,CAAC;AAC1E,eAAO,MAAM,YAAY,EAAG,oEAA6E,CAAC;AAC1G,eAAO,MAAM,eAAe,EAAG,IAAa,CAAC;AAE7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;CAkBpB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AAEX,eAAO,MAAM,UAAU;;;CAGb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,eAAO,MAAM,iBAAiB,QAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,QAAwB,CAAC;AAEvD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAE3D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,SAAkB,GAAG,KAAK,MAAM,EAAE,CAMpF;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,SAAO,GAAG,KAAK,MAAM,EAAE,CAWxE;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,KAAK,MAAM,EAAE,GAAG,KAAK,MAAM,EAAE,CAMpF"}
@@ -0,0 +1,83 @@
1
+ import { keccak256, toHex } from 'viem';
2
+ import { isValid } from '../id.js';
3
+ import { toBytes } from '../id-utils.js';
4
+ import { UUID_DASHLESS_REGEX } from '../internal/uuid.js';
5
+ export const ZERO_BYTES16 = '0x00000000000000000000000000000000';
6
+ export const ZERO_BYTES32 = '0x0000000000000000000000000000000000000000000000000000000000000000';
7
+ export const EMPTY_SIGNATURE = '0x';
8
+ export const GovernanceActions = {
9
+ EDITS_PUBLISHED: keccak256(toHex('GOVERNANCE.EDITS_PUBLISHED')),
10
+ MEMBERSHIP_REQUESTED: keccak256(toHex('GOVERNANCE.MEMBERSHIP_REQUESTED')),
11
+ PROPOSAL_CREATED: keccak256(toHex('GOVERNANCE.PROPOSAL_CREATED')),
12
+ PROPOSAL_UPDATED: keccak256(toHex('GOVERNANCE.PROPOSAL_UPDATED')),
13
+ PROPOSAL_VOTED: keccak256(toHex('GOVERNANCE.PROPOSAL_VOTED')),
14
+ PROPOSAL_EXECUTED: keccak256(toHex('GOVERNANCE.PROPOSAL_EXECUTED')),
15
+ VOTING_SETTINGS_UPDATED: keccak256(toHex('GOVERNANCE.VOTING_SETTINGS_UPDATED')),
16
+ TOPIC_SET: keccak256(toHex('GOVERNANCE.TOPIC_SET')),
17
+ TOPIC_UNSET: keccak256(toHex('GOVERNANCE.TOPIC_UNSET')),
18
+ SUBSPACE_TOPIC_SET: keccak256(toHex('GOVERNANCE.SUBSPACE_TOPIC_SET')),
19
+ SUBSPACE_TOPIC_UNSET: keccak256(toHex('GOVERNANCE.SUBSPACE_TOPIC_UNSET')),
20
+ FLAGGED: keccak256(toHex('GOVERNANCE.FLAGGED')),
21
+ UNFLAGGED: keccak256(toHex('GOVERNANCE.UNFLAGGED')),
22
+ SUBSPACE_VERIFIED: keccak256(toHex('GOVERNANCE.SUBSPACE_VERIFIED')),
23
+ SUBSPACE_UNVERIFIED: keccak256(toHex('GOVERNANCE.SUBSPACE_UNVERIFIED')),
24
+ SUBSPACE_RELATED: keccak256(toHex('GOVERNANCE.SUBSPACE_RELATED')),
25
+ SUBSPACE_UNRELATED: keccak256(toHex('GOVERNANCE.SUBSPACE_UNRELATED')),
26
+ };
27
+ export const PermissionlessActions = {
28
+ UPVOTED: keccak256(toHex('PERMISSIONLESS.UPVOTED')),
29
+ DOWNVOTED: keccak256(toHex('PERMISSIONLESS.DOWNVOTED')),
30
+ UNVOTED: keccak256(toHex('PERMISSIONLESS.UNVOTED')),
31
+ };
32
+ export const VotingMode = {
33
+ Slow: 0,
34
+ Fast: 1,
35
+ };
36
+ export const VoteOption = {
37
+ None: 0,
38
+ Yes: 1,
39
+ No: 2,
40
+ Abstain: 3,
41
+ };
42
+ export const VoteOptionValues = {
43
+ YES: VoteOption.Yes,
44
+ NO: VoteOption.No,
45
+ ABSTAIN: VoteOption.Abstain,
46
+ };
47
+ export const VotingModeValues = {
48
+ SLOW: VotingMode.Slow,
49
+ FAST: VotingMode.Fast,
50
+ };
51
+ export const BYTES16_HEX_REGEX = /^0x[0-9a-fA-F]{32}$/;
52
+ export const BYTES32_HEX_REGEX = /^0x[0-9a-fA-F]{64}$/;
53
+ export function ensure0xPrefix(value) {
54
+ return (value.startsWith('0x') ? value : `0x${value}`);
55
+ }
56
+ export function isBytes16Hex(value) {
57
+ return BYTES16_HEX_REGEX.test(value);
58
+ }
59
+ export function toBytes16(value, sourceHint = 'bytes16 value') {
60
+ const normalized = ensure0xPrefix(value);
61
+ if (!isBytes16Hex(normalized)) {
62
+ throw new Error(`${sourceHint} must be bytes16 hex (0x followed by 32 hex chars). Received: ${value}`);
63
+ }
64
+ return normalized.toLowerCase();
65
+ }
66
+ export function idToBytes16(id, sourceHint = 'id') {
67
+ const raw = id.startsWith('0x') ? id.slice(2) : id.replaceAll('-', '');
68
+ if (UUID_DASHLESS_REGEX.test(raw)) {
69
+ return `0x${raw.toLowerCase()}`;
70
+ }
71
+ if (isValid(id)) {
72
+ return toHex(toBytes(id));
73
+ }
74
+ throw new Error(`${sourceHint} must be a valid UUID or bytes16 hex value. Received: ${id}`);
75
+ }
76
+ export function bytes16ToBytes32LeftAligned(bytes16Hex) {
77
+ const value = bytes16Hex.toLowerCase();
78
+ if (!BYTES16_HEX_REGEX.test(value)) {
79
+ throw new Error(`Invalid bytes16 hex: ${bytes16Hex}`);
80
+ }
81
+ return `0x${value.slice(2)}${'0'.repeat(32)}`;
82
+ }
83
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/contracts-v2/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,YA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Op } from '@geoprotocol/grc-20';
2
+ import { type VoteOptionName, type VotingModeName } from './actions.js';
3
+ import { type CompatibleVotingSettingsInput } from './voting-settings.js';
4
+ export type TransactionRequest = {
5
+ to: `0x${string}`;
6
+ calldata: `0x${string}`;
7
+ };
8
+ export type ProposalAction = {
9
+ to: `0x${string}`;
10
+ value?: bigint;
11
+ data: `0x${string}`;
12
+ };
13
+ export type CreateDaoSpaceCalldataParams = {
14
+ votingSettings: CompatibleVotingSettingsInput;
15
+ initialEditorSpaceIds: `0x${string}`[];
16
+ initialMemberSpaceIds?: `0x${string}`[];
17
+ initialEditsContentUri?: string;
18
+ initialEditsMetadata?: string;
19
+ initialTopicId?: string;
20
+ };
21
+ export type PublishEditCalldataParams = {
22
+ spaceId: string;
23
+ cid: string;
24
+ metadata?: string;
25
+ spaceRegistryAddress: `0x${string}`;
26
+ };
27
+ export type CreateProposalCalldataParams = {
28
+ fromSpaceId: string;
29
+ daoSpaceId: string;
30
+ proposalId?: string;
31
+ votingMode?: VotingModeName;
32
+ actions: ProposalAction[];
33
+ spaceRegistryAddress: `0x${string}`;
34
+ };
35
+ export type VoteProposalCalldataParams = {
36
+ fromSpaceId: string;
37
+ daoSpaceId: string;
38
+ proposalId: string;
39
+ proposalVersion?: number;
40
+ vote: VoteOptionName;
41
+ spaceRegistryAddress: `0x${string}`;
42
+ };
43
+ export type ExecuteProposalCalldataParams = {
44
+ fromSpaceId: string;
45
+ daoSpaceId: string;
46
+ proposalId: string;
47
+ spaceRegistryAddress: `0x${string}`;
48
+ };
49
+ export type EntityVoteCalldataParams = {
50
+ authorSpaceId: string;
51
+ spaceId: string;
52
+ entityId: string;
53
+ spaceRegistryAddress: `0x${string}`;
54
+ };
55
+ export declare function encodeCreatePersonalSpaceCalldata(): `0x${string}`;
56
+ export declare function encodeEditPublishedData(contentUri: string, metadata?: string): `0x${string}`;
57
+ export declare function encodePublishEditCalldata({ spaceId, cid, metadata, spaceRegistryAddress, }: PublishEditCalldataParams): TransactionRequest;
58
+ export declare function encodeCreateDaoSpaceCalldata({ votingSettings, initialEditorSpaceIds, initialMemberSpaceIds, initialEditsContentUri, initialEditsMetadata, initialTopicId, }: CreateDaoSpaceCalldataParams): `0x${string}`;
59
+ export declare function encodeProposalCreatedData(proposalId: `0x${string}`, votingMode: VotingModeName, actions: ProposalAction[]): `0x${string}`;
60
+ export declare function encodeProposalVotedData(proposalId: `0x${string}`, proposalVersion: number, vote: VoteOptionName): `0x${string}`;
61
+ export declare function encodeProposalExecutedData(proposalId: `0x${string}`): `0x${string}`;
62
+ export declare function createProposalCalldata({ fromSpaceId, daoSpaceId, proposalId: proposalIdInput, votingMode, actions, spaceRegistryAddress, }: CreateProposalCalldataParams): TransactionRequest & {
63
+ proposalId: `0x${string}`;
64
+ };
65
+ export declare function voteProposalCalldata({ fromSpaceId, daoSpaceId, proposalId, proposalVersion, vote, spaceRegistryAddress, }: VoteProposalCalldataParams): TransactionRequest;
66
+ export declare function executeProposalCalldata({ fromSpaceId, daoSpaceId, proposalId, spaceRegistryAddress, }: ExecuteProposalCalldataParams): TransactionRequest;
67
+ export declare function encodePublishEditProposalAction(daoSpaceAddress: `0x${string}`, cid: string): ProposalAction;
68
+ export declare function encodeDaoRoleAction(daoSpaceAddress: `0x${string}`, action: 'addEditor' | 'removeEditor' | 'addMember' | 'removeMember', spaceId: string): ProposalAction;
69
+ export declare function encodeUpdateVotingSettingsAction(daoSpaceAddress: `0x${string}`, votingSettings: CompatibleVotingSettingsInput): ProposalAction;
70
+ export declare function encodeEntityVoteTopic(entityId: string): `0x${string}`;
71
+ export declare function encodeEntityVoteData(authorSpaceId: `0x${string}`, spaceId: `0x${string}`): `0x${string}`;
72
+ export declare function upvoteEntityCalldata(params: EntityVoteCalldataParams): TransactionRequest;
73
+ export declare function downvoteEntityCalldata(params: EntityVoteCalldataParams): TransactionRequest;
74
+ export declare function withdrawEntityVoteCalldata(params: EntityVoteCalldataParams): TransactionRequest;
75
+ export type PublishEditWorkflowParams = {
76
+ name: string;
77
+ ops: Op[];
78
+ author: string;
79
+ };
80
+ //# sourceMappingURL=encoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../src/contracts-v2/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAI9C,OAAO,EAML,KAAK,cAAc,EAEnB,KAAK,cAAc,EAIpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,6BAA6B,EAInC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,cAAc,EAAE,6BAA6B,CAAC;IAC9C,qBAAqB,EAAE,KAAK,MAAM,EAAE,EAAE,CAAC;IACvC,qBAAqB,CAAC,EAAE,KAAK,MAAM,EAAE,EAAE,CAAC;IACxC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAC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