@geoprotocol/geo-sdk 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/README.md +528 -0
  2. package/dist/abis.d.ts +7 -0
  3. package/dist/abis.d.ts.map +1 -0
  4. package/dist/abis.js +7 -0
  5. package/dist/abis.js.map +1 -0
  6. package/dist/constants.d.ts +7 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/constants.js +8 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/contracts.d.ts +31 -0
  11. package/dist/contracts.d.ts.map +1 -0
  12. package/dist/contracts.js +31 -0
  13. package/dist/contracts.js.map +1 -0
  14. package/dist/convert-ids.d.ts +2 -0
  15. package/dist/convert-ids.d.ts.map +1 -0
  16. package/dist/convert-ids.js +42 -0
  17. package/dist/convert-ids.js.map +1 -0
  18. package/dist/examples/ranks/create-ordinal-rank.d.ts +8 -0
  19. package/dist/examples/ranks/create-ordinal-rank.d.ts.map +1 -0
  20. package/dist/examples/ranks/create-ordinal-rank.js +42 -0
  21. package/dist/examples/ranks/create-ordinal-rank.js.map +1 -0
  22. package/dist/examples/ranks/create-weighted-rank.d.ts +8 -0
  23. package/dist/examples/ranks/create-weighted-rank.d.ts.map +1 -0
  24. package/dist/examples/ranks/create-weighted-rank.js +42 -0
  25. package/dist/examples/ranks/create-weighted-rank.js.map +1 -0
  26. package/dist/index.d.ts +49 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +49 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/proto.d.ts +5 -0
  31. package/dist/proto.d.ts.map +1 -0
  32. package/dist/proto.js +5 -0
  33. package/dist/proto.js.map +1 -0
  34. package/dist/protov2.d.ts +11 -0
  35. package/dist/protov2.d.ts.map +1 -0
  36. package/dist/protov2.js +11 -0
  37. package/dist/protov2.js.map +1 -0
  38. package/dist/scripts/setup-rank-types.d.ts +15 -0
  39. package/dist/scripts/setup-rank-types.d.ts.map +1 -0
  40. package/dist/scripts/setup-rank-types.js +62 -0
  41. package/dist/scripts/setup-rank-types.js.map +1 -0
  42. package/dist/src/abis/dao-space-factory.d.ts +276 -0
  43. package/dist/src/abis/dao-space-factory.d.ts.map +1 -0
  44. package/dist/src/abis/dao-space-factory.js +359 -0
  45. package/dist/src/abis/dao-space-factory.js.map +1 -0
  46. package/dist/src/abis/dao-space.d.ts +698 -0
  47. package/dist/src/abis/dao-space.d.ts.map +1 -0
  48. package/dist/src/abis/dao-space.js +906 -0
  49. package/dist/src/abis/dao-space.js.map +1 -0
  50. package/dist/src/abis/dao.d.ts +899 -0
  51. package/dist/src/abis/dao.d.ts.map +1 -0
  52. package/dist/src/abis/dao.js +1159 -0
  53. package/dist/src/abis/dao.js.map +1 -0
  54. package/dist/src/abis/governance-setup.d.ts +351 -0
  55. package/dist/src/abis/governance-setup.d.ts.map +1 -0
  56. package/dist/src/abis/governance-setup.js +461 -0
  57. package/dist/src/abis/governance-setup.js.map +1 -0
  58. package/dist/src/abis/index.d.ts +13 -0
  59. package/dist/src/abis/index.d.ts.map +1 -0
  60. package/dist/src/abis/index.js +13 -0
  61. package/dist/src/abis/index.js.map +1 -0
  62. package/dist/src/abis/main-voting.d.ts +1504 -0
  63. package/dist/src/abis/main-voting.d.ts.map +1 -0
  64. package/dist/src/abis/main-voting.js +1943 -0
  65. package/dist/src/abis/main-voting.js.map +1 -0
  66. package/dist/src/abis/member-access.d.ts +567 -0
  67. package/dist/src/abis/member-access.d.ts.map +1 -0
  68. package/dist/src/abis/member-access.js +735 -0
  69. package/dist/src/abis/member-access.js.map +1 -0
  70. package/dist/src/abis/personal-space-admin-setup.d.ts +259 -0
  71. package/dist/src/abis/personal-space-admin-setup.d.ts.map +1 -0
  72. package/dist/src/abis/personal-space-admin-setup.js +340 -0
  73. package/dist/src/abis/personal-space-admin-setup.js.map +1 -0
  74. package/dist/src/abis/personal-space-admin.d.ts +431 -0
  75. package/dist/src/abis/personal-space-admin.d.ts.map +1 -0
  76. package/dist/src/abis/personal-space-admin.js +555 -0
  77. package/dist/src/abis/personal-space-admin.js.map +1 -0
  78. package/dist/src/abis/plugin-setup-processor.d.ts +998 -0
  79. package/dist/src/abis/plugin-setup-processor.d.ts.map +1 -0
  80. package/dist/src/abis/plugin-setup-processor.js +1293 -0
  81. package/dist/src/abis/plugin-setup-processor.js.map +1 -0
  82. package/dist/src/abis/space-registry.d.ts +413 -0
  83. package/dist/src/abis/space-registry.d.ts.map +1 -0
  84. package/dist/src/abis/space-registry.js +537 -0
  85. package/dist/src/abis/space-registry.js.map +1 -0
  86. package/dist/src/abis/space-setup.d.ts +310 -0
  87. package/dist/src/abis/space-setup.d.ts.map +1 -0
  88. package/dist/src/abis/space-setup.js +407 -0
  89. package/dist/src/abis/space-setup.js.map +1 -0
  90. package/dist/src/abis/space.d.ts +359 -0
  91. package/dist/src/abis/space.d.ts.map +1 -0
  92. package/dist/src/abis/space.js +462 -0
  93. package/dist/src/abis/space.js.map +1 -0
  94. package/dist/src/account.d.ts +8 -0
  95. package/dist/src/account.d.ts.map +1 -0
  96. package/dist/src/account.js +8 -0
  97. package/dist/src/account.js.map +1 -0
  98. package/dist/src/blocks.d.ts +15 -0
  99. package/dist/src/blocks.d.ts.map +1 -0
  100. package/dist/src/blocks.js +15 -0
  101. package/dist/src/blocks.js.map +1 -0
  102. package/dist/src/codec/convert.d.ts +18 -0
  103. package/dist/src/codec/convert.d.ts.map +1 -0
  104. package/dist/src/codec/convert.js +188 -0
  105. package/dist/src/codec/convert.js.map +1 -0
  106. package/dist/src/core/account.d.ts +28 -0
  107. package/dist/src/core/account.d.ts.map +1 -0
  108. package/dist/src/core/account.js +67 -0
  109. package/dist/src/core/account.js.map +1 -0
  110. package/dist/src/core/account.test.d.ts +2 -0
  111. package/dist/src/core/account.test.d.ts.map +1 -0
  112. package/dist/src/core/account.test.js +80 -0
  113. package/dist/src/core/account.test.js.map +1 -0
  114. package/dist/src/core/base58.d.ts +43 -0
  115. package/dist/src/core/base58.d.ts.map +1 -0
  116. package/dist/src/core/base58.js +68 -0
  117. package/dist/src/core/base58.js.map +1 -0
  118. package/dist/src/core/base58.test.d.ts +2 -0
  119. package/dist/src/core/base58.test.d.ts.map +1 -0
  120. package/dist/src/core/base58.test.js +17 -0
  121. package/dist/src/core/base58.test.js.map +1 -0
  122. package/dist/src/core/blocks/data.d.ts +34 -0
  123. package/dist/src/core/blocks/data.d.ts.map +1 -0
  124. package/dist/src/core/blocks/data.js +77 -0
  125. package/dist/src/core/blocks/data.js.map +1 -0
  126. package/dist/src/core/blocks/data.test.d.ts +2 -0
  127. package/dist/src/core/blocks/data.test.d.ts.map +1 -0
  128. package/dist/src/core/blocks/data.test.js +96 -0
  129. package/dist/src/core/blocks/data.test.js.map +1 -0
  130. package/dist/src/core/blocks/image.d.ts +15 -0
  131. package/dist/src/core/blocks/image.d.ts.map +1 -0
  132. package/dist/src/core/blocks/image.js +15 -0
  133. package/dist/src/core/blocks/image.js.map +1 -0
  134. package/dist/src/core/blocks/text.d.ts +31 -0
  135. package/dist/src/core/blocks/text.d.ts.map +1 -0
  136. package/dist/src/core/blocks/text.js +57 -0
  137. package/dist/src/core/blocks/text.js.map +1 -0
  138. package/dist/src/core/blocks/text.test.d.ts +2 -0
  139. package/dist/src/core/blocks/text.test.d.ts.map +1 -0
  140. package/dist/src/core/blocks/text.test.js +93 -0
  141. package/dist/src/core/blocks/text.test.js.map +1 -0
  142. package/dist/src/core/get-checksum-address.d.ts +10 -0
  143. package/dist/src/core/get-checksum-address.d.ts.map +1 -0
  144. package/dist/src/core/get-checksum-address.js +20 -0
  145. package/dist/src/core/get-checksum-address.js.map +1 -0
  146. package/dist/src/core/ids/content.d.ts +60 -0
  147. package/dist/src/core/ids/content.d.ts.map +1 -0
  148. package/dist/src/core/ids/content.js +60 -0
  149. package/dist/src/core/ids/content.js.map +1 -0
  150. package/dist/src/core/ids/network.d.ts +5 -0
  151. package/dist/src/core/ids/network.d.ts.map +1 -0
  152. package/dist/src/core/ids/network.js +5 -0
  153. package/dist/src/core/ids/network.js.map +1 -0
  154. package/dist/src/core/ids/system.d.ts +239 -0
  155. package/dist/src/core/ids/system.d.ts.map +1 -0
  156. package/dist/src/core/ids/system.js +247 -0
  157. package/dist/src/core/ids/system.js.map +1 -0
  158. package/dist/src/core/idsv2/content.d.ts +59 -0
  159. package/dist/src/core/idsv2/content.d.ts.map +1 -0
  160. package/dist/src/core/idsv2/content.js +59 -0
  161. package/dist/src/core/idsv2/content.js.map +1 -0
  162. package/dist/src/core/idsv2/network.d.ts +5 -0
  163. package/dist/src/core/idsv2/network.d.ts.map +1 -0
  164. package/dist/src/core/idsv2/network.js +5 -0
  165. package/dist/src/core/idsv2/network.js.map +1 -0
  166. package/dist/src/core/idsv2/system.d.ts +222 -0
  167. package/dist/src/core/idsv2/system.d.ts.map +1 -0
  168. package/dist/src/core/idsv2/system.js +230 -0
  169. package/dist/src/core/idsv2/system.js.map +1 -0
  170. package/dist/src/core/image.d.ts +40 -0
  171. package/dist/src/core/image.d.ts.map +1 -0
  172. package/dist/src/core/image.js +76 -0
  173. package/dist/src/core/image.js.map +1 -0
  174. package/dist/src/core/image.test.d.ts +2 -0
  175. package/dist/src/core/image.test.d.ts.map +1 -0
  176. package/dist/src/core/image.test.js +52 -0
  177. package/dist/src/core/image.test.js.map +1 -0
  178. package/dist/src/core/position.d.ts +26 -0
  179. package/dist/src/core/position.d.ts.map +1 -0
  180. package/dist/src/core/position.js +41 -0
  181. package/dist/src/core/position.js.map +1 -0
  182. package/dist/src/core/position.test.d.ts +2 -0
  183. package/dist/src/core/position.test.d.ts.map +1 -0
  184. package/dist/src/core/position.test.js +126 -0
  185. package/dist/src/core/position.test.js.map +1 -0
  186. package/dist/src/core/relation.d.ts +88 -0
  187. package/dist/src/core/relation.d.ts.map +1 -0
  188. package/dist/src/core/relation.js +89 -0
  189. package/dist/src/core/relation.js.map +1 -0
  190. package/dist/src/core/relation.test.d.ts +2 -0
  191. package/dist/src/core/relation.test.d.ts.map +1 -0
  192. package/dist/src/core/relation.test.js +45 -0
  193. package/dist/src/core/relation.test.js.map +1 -0
  194. package/dist/src/core/scheme.d.ts +78 -0
  195. package/dist/src/core/scheme.d.ts.map +1 -0
  196. package/dist/src/core/scheme.js +99 -0
  197. package/dist/src/core/scheme.js.map +1 -0
  198. package/dist/src/core/scheme.test.d.ts +2 -0
  199. package/dist/src/core/scheme.test.d.ts.map +1 -0
  200. package/dist/src/core/scheme.test.js +34 -0
  201. package/dist/src/core/scheme.test.js.map +1 -0
  202. package/dist/src/core/triple.d.ts +50 -0
  203. package/dist/src/core/triple.d.ts.map +1 -0
  204. package/dist/src/core/triple.js +56 -0
  205. package/dist/src/core/triple.js.map +1 -0
  206. package/dist/src/core/triple.test.d.ts +2 -0
  207. package/dist/src/core/triple.test.d.ts.map +1 -0
  208. package/dist/src/core/triple.test.js +37 -0
  209. package/dist/src/core/triple.test.js.map +1 -0
  210. package/dist/src/encoding.d.ts +12 -0
  211. package/dist/src/encoding.d.ts.map +1 -0
  212. package/dist/src/encoding.js +30 -0
  213. package/dist/src/encoding.js.map +1 -0
  214. package/dist/src/encoding.test.d.ts +2 -0
  215. package/dist/src/encoding.test.d.ts.map +1 -0
  216. package/dist/src/encoding.test.js +644 -0
  217. package/dist/src/encoding.test.js.map +1 -0
  218. package/dist/src/encodings/get-accept-editor-arguments.d.ts +11 -0
  219. package/dist/src/encodings/get-accept-editor-arguments.d.ts.map +1 -0
  220. package/dist/src/encodings/get-accept-editor-arguments.js +23 -0
  221. package/dist/src/encodings/get-accept-editor-arguments.js.map +1 -0
  222. package/dist/src/encodings/get-accept-subspace-arguments.d.ts +11 -0
  223. package/dist/src/encodings/get-accept-subspace-arguments.d.ts.map +1 -0
  224. package/dist/src/encodings/get-accept-subspace-arguments.js +23 -0
  225. package/dist/src/encodings/get-accept-subspace-arguments.js.map +1 -0
  226. package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts +8 -0
  227. package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts.map +1 -0
  228. package/dist/src/encodings/get-calldata-for-space-governance-type.js +19 -0
  229. package/dist/src/encodings/get-calldata-for-space-governance-type.js.map +1 -0
  230. package/dist/src/encodings/get-create-dao-space-calldata.d.ts +157 -0
  231. package/dist/src/encodings/get-create-dao-space-calldata.d.ts.map +1 -0
  232. package/dist/src/encodings/get-create-dao-space-calldata.js +208 -0
  233. package/dist/src/encodings/get-create-dao-space-calldata.js.map +1 -0
  234. package/dist/src/encodings/get-create-dao-space-calldata.test.d.ts +2 -0
  235. package/dist/src/encodings/get-create-dao-space-calldata.test.d.ts.map +1 -0
  236. package/dist/src/encodings/get-create-dao-space-calldata.test.js +185 -0
  237. package/dist/src/encodings/get-create-dao-space-calldata.test.js.map +1 -0
  238. package/dist/src/encodings/get-create-personal-space-calldata.d.ts +33 -0
  239. package/dist/src/encodings/get-create-personal-space-calldata.d.ts.map +1 -0
  240. package/dist/src/encodings/get-create-personal-space-calldata.js +43 -0
  241. package/dist/src/encodings/get-create-personal-space-calldata.js.map +1 -0
  242. package/dist/src/encodings/get-create-personal-space-calldata.test.d.ts +2 -0
  243. package/dist/src/encodings/get-create-personal-space-calldata.test.d.ts.map +1 -0
  244. package/dist/src/encodings/get-create-personal-space-calldata.test.js +15 -0
  245. package/dist/src/encodings/get-create-personal-space-calldata.test.js.map +1 -0
  246. package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts +7 -0
  247. package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts.map +1 -0
  248. package/dist/src/encodings/get-process-geo-proposal-arguments.js +23 -0
  249. package/dist/src/encodings/get-process-geo-proposal-arguments.js.map +1 -0
  250. package/dist/src/encodings/get-register-space-calldata.d.ts +32 -0
  251. package/dist/src/encodings/get-register-space-calldata.d.ts.map +1 -0
  252. package/dist/src/encodings/get-register-space-calldata.js +39 -0
  253. package/dist/src/encodings/get-register-space-calldata.js.map +1 -0
  254. package/dist/src/encodings/get-register-space-calldata.test.d.ts +2 -0
  255. package/dist/src/encodings/get-register-space-calldata.test.d.ts.map +1 -0
  256. package/dist/src/encodings/get-register-space-calldata.test.js +15 -0
  257. package/dist/src/encodings/get-register-space-calldata.test.js.map +1 -0
  258. package/dist/src/encodings/get-remove-editor-arguments.d.ts +11 -0
  259. package/dist/src/encodings/get-remove-editor-arguments.d.ts.map +1 -0
  260. package/dist/src/encodings/get-remove-editor-arguments.js +23 -0
  261. package/dist/src/encodings/get-remove-editor-arguments.js.map +1 -0
  262. package/dist/src/encodings/get-remove-subspace-arguments.d.ts +11 -0
  263. package/dist/src/encodings/get-remove-subspace-arguments.d.ts.map +1 -0
  264. package/dist/src/encodings/get-remove-subspace-arguments.js +23 -0
  265. package/dist/src/encodings/get-remove-subspace-arguments.js.map +1 -0
  266. package/dist/src/encodings/index.d.ts +9 -0
  267. package/dist/src/encodings/index.d.ts.map +1 -0
  268. package/dist/src/encodings/index.js +9 -0
  269. package/dist/src/encodings/index.js.map +1 -0
  270. package/dist/src/full-flow-test.test.d.ts +2 -0
  271. package/dist/src/full-flow-test.test.d.ts.map +1 -0
  272. package/dist/src/full-flow-test.test.js +142 -0
  273. package/dist/src/full-flow-test.test.js.map +1 -0
  274. package/dist/src/graph/constants.d.ts +4 -0
  275. package/dist/src/graph/constants.d.ts.map +1 -0
  276. package/dist/src/graph/constants.js +8 -0
  277. package/dist/src/graph/constants.js.map +1 -0
  278. package/dist/src/graph/create-entity.d.ts +54 -0
  279. package/dist/src/graph/create-entity.d.ts.map +1 -0
  280. package/dist/src/graph/create-entity.js +272 -0
  281. package/dist/src/graph/create-entity.js.map +1 -0
  282. package/dist/src/graph/create-entity.test.d.ts +2 -0
  283. package/dist/src/graph/create-entity.test.d.ts.map +1 -0
  284. package/dist/src/graph/create-entity.test.js +459 -0
  285. package/dist/src/graph/create-entity.test.js.map +1 -0
  286. package/dist/src/graph/create-image.d.ts +28 -0
  287. package/dist/src/graph/create-image.d.ts.map +1 -0
  288. package/dist/src/graph/create-image.js +77 -0
  289. package/dist/src/graph/create-image.js.map +1 -0
  290. package/dist/src/graph/create-image.test.d.ts +2 -0
  291. package/dist/src/graph/create-image.test.d.ts.map +1 -0
  292. package/dist/src/graph/create-image.test.js +233 -0
  293. package/dist/src/graph/create-image.test.js.map +1 -0
  294. package/dist/src/graph/create-property.d.ts +24 -0
  295. package/dist/src/graph/create-property.d.ts.map +1 -0
  296. package/dist/src/graph/create-property.js +113 -0
  297. package/dist/src/graph/create-property.js.map +1 -0
  298. package/dist/src/graph/create-property.test.d.ts +2 -0
  299. package/dist/src/graph/create-property.test.d.ts.map +1 -0
  300. package/dist/src/graph/create-property.test.js +203 -0
  301. package/dist/src/graph/create-property.test.js.map +1 -0
  302. package/dist/src/graph/create-relation.d.ts +42 -0
  303. package/dist/src/graph/create-relation.d.ts.map +1 -0
  304. package/dist/src/graph/create-relation.js +110 -0
  305. package/dist/src/graph/create-relation.js.map +1 -0
  306. package/dist/src/graph/create-relation.test.d.ts +2 -0
  307. package/dist/src/graph/create-relation.test.d.ts.map +1 -0
  308. package/dist/src/graph/create-relation.test.js +358 -0
  309. package/dist/src/graph/create-relation.test.js.map +1 -0
  310. package/dist/src/graph/create-space.d.ts +37 -0
  311. package/dist/src/graph/create-space.d.ts.map +1 -0
  312. package/dist/src/graph/create-space.js +67 -0
  313. package/dist/src/graph/create-space.js.map +1 -0
  314. package/dist/src/graph/create-type.d.ts +22 -0
  315. package/dist/src/graph/create-type.d.ts.map +1 -0
  316. package/dist/src/graph/create-type.js +63 -0
  317. package/dist/src/graph/create-type.js.map +1 -0
  318. package/dist/src/graph/create-type.test.d.ts +2 -0
  319. package/dist/src/graph/create-type.test.d.ts.map +1 -0
  320. package/dist/src/graph/create-type.test.js +117 -0
  321. package/dist/src/graph/create-type.test.js.map +1 -0
  322. package/dist/src/graph/delete-entity.d.ts +14 -0
  323. package/dist/src/graph/delete-entity.d.ts.map +1 -0
  324. package/dist/src/graph/delete-entity.js +19 -0
  325. package/dist/src/graph/delete-entity.js.map +1 -0
  326. package/dist/src/graph/delete-entity.test.d.ts +2 -0
  327. package/dist/src/graph/delete-entity.test.d.ts.map +1 -0
  328. package/dist/src/graph/delete-entity.test.js +21 -0
  329. package/dist/src/graph/delete-entity.test.js.map +1 -0
  330. package/dist/src/graph/delete-relation.d.ts +14 -0
  331. package/dist/src/graph/delete-relation.d.ts.map +1 -0
  332. package/dist/src/graph/delete-relation.js +19 -0
  333. package/dist/src/graph/delete-relation.js.map +1 -0
  334. package/dist/src/graph/delete-relation.test.d.ts +2 -0
  335. package/dist/src/graph/delete-relation.test.d.ts.map +1 -0
  336. package/dist/src/graph/delete-relation.test.js +21 -0
  337. package/dist/src/graph/delete-relation.test.js.map +1 -0
  338. package/dist/src/graph/graph.test.d.ts +2 -0
  339. package/dist/src/graph/graph.test.d.ts.map +1 -0
  340. package/dist/src/graph/graph.test.js +46 -0
  341. package/dist/src/graph/graph.test.js.map +1 -0
  342. package/dist/src/graph/helpers/create-default-properties.d.ts +5 -0
  343. package/dist/src/graph/helpers/create-default-properties.d.ts.map +1 -0
  344. package/dist/src/graph/helpers/create-default-properties.js +44 -0
  345. package/dist/src/graph/helpers/create-default-properties.js.map +1 -0
  346. package/dist/src/graph/helpers/create-properties.d.ts +8 -0
  347. package/dist/src/graph/helpers/create-properties.d.ts.map +1 -0
  348. package/dist/src/graph/helpers/create-properties.js +53 -0
  349. package/dist/src/graph/helpers/create-properties.js.map +1 -0
  350. package/dist/src/graph/index.d.ts +13 -0
  351. package/dist/src/graph/index.d.ts.map +1 -0
  352. package/dist/src/graph/index.js +12 -0
  353. package/dist/src/graph/index.js.map +1 -0
  354. package/dist/src/graph/serialize.d.ts +5 -0
  355. package/dist/src/graph/serialize.d.ts.map +1 -0
  356. package/dist/src/graph/serialize.js +13 -0
  357. package/dist/src/graph/serialize.js.map +1 -0
  358. package/dist/src/graph/serialize.test.d.ts +2 -0
  359. package/dist/src/graph/serialize.test.d.ts.map +1 -0
  360. package/dist/src/graph/serialize.test.js +49 -0
  361. package/dist/src/graph/serialize.test.js.map +1 -0
  362. package/dist/src/graph/unset-entity-values.d.ts +21 -0
  363. package/dist/src/graph/unset-entity-values.d.ts.map +1 -0
  364. package/dist/src/graph/unset-entity-values.js +31 -0
  365. package/dist/src/graph/unset-entity-values.js.map +1 -0
  366. package/dist/src/graph/unset-entity-values.test.d.ts +2 -0
  367. package/dist/src/graph/unset-entity-values.test.d.ts.map +1 -0
  368. package/dist/src/graph/unset-entity-values.test.js +40 -0
  369. package/dist/src/graph/unset-entity-values.test.js.map +1 -0
  370. package/dist/src/graph/unset-relation-fields.d.ts +26 -0
  371. package/dist/src/graph/unset-relation-fields.d.ts.map +1 -0
  372. package/dist/src/graph/unset-relation-fields.js +38 -0
  373. package/dist/src/graph/unset-relation-fields.js.map +1 -0
  374. package/dist/src/graph/unset-relation-fields.test.d.ts +2 -0
  375. package/dist/src/graph/unset-relation-fields.test.d.ts.map +1 -0
  376. package/dist/src/graph/unset-relation-fields.test.js +70 -0
  377. package/dist/src/graph/unset-relation-fields.test.js.map +1 -0
  378. package/dist/src/graph/update-entity.d.ts +27 -0
  379. package/dist/src/graph/update-entity.d.ts.map +1 -0
  380. package/dist/src/graph/update-entity.js +153 -0
  381. package/dist/src/graph/update-entity.js.map +1 -0
  382. package/dist/src/graph/update-entity.test.d.ts +2 -0
  383. package/dist/src/graph/update-entity.test.d.ts.map +1 -0
  384. package/dist/src/graph/update-entity.test.js +208 -0
  385. package/dist/src/graph/update-entity.test.js.map +1 -0
  386. package/dist/src/graph/update-relation.d.ts +21 -0
  387. package/dist/src/graph/update-relation.d.ts.map +1 -0
  388. package/dist/src/graph/update-relation.js +43 -0
  389. package/dist/src/graph/update-relation.js.map +1 -0
  390. package/dist/src/graph/update-relation.test.d.ts +2 -0
  391. package/dist/src/graph/update-relation.test.d.ts.map +1 -0
  392. package/dist/src/graph/update-relation.test.js +230 -0
  393. package/dist/src/graph/update-relation.test.js.map +1 -0
  394. package/dist/src/graphv2/constants.d.ts +2 -0
  395. package/dist/src/graphv2/constants.d.ts.map +1 -0
  396. package/dist/src/graphv2/constants.js +2 -0
  397. package/dist/src/graphv2/constants.js.map +1 -0
  398. package/dist/src/graphv2/create-entity.d.ts +52 -0
  399. package/dist/src/graphv2/create-entity.d.ts.map +1 -0
  400. package/dist/src/graphv2/create-entity.js +140 -0
  401. package/dist/src/graphv2/create-entity.js.map +1 -0
  402. package/dist/src/graphv2/create-entity.test.d.ts +2 -0
  403. package/dist/src/graphv2/create-entity.test.d.ts.map +1 -0
  404. package/dist/src/graphv2/create-entity.test.js +158 -0
  405. package/dist/src/graphv2/create-entity.test.js.map +1 -0
  406. package/dist/src/graphv2/create-image.d.ts +28 -0
  407. package/dist/src/graphv2/create-image.d.ts.map +1 -0
  408. package/dist/src/graphv2/create-image.js +71 -0
  409. package/dist/src/graphv2/create-image.js.map +1 -0
  410. package/dist/src/graphv2/create-image.test.d.ts +2 -0
  411. package/dist/src/graphv2/create-image.test.d.ts.map +1 -0
  412. package/dist/src/graphv2/create-image.test.js +142 -0
  413. package/dist/src/graphv2/create-image.test.js.map +1 -0
  414. package/dist/src/graphv2/create-property.d.ts +22 -0
  415. package/dist/src/graphv2/create-property.d.ts.map +1 -0
  416. package/dist/src/graphv2/create-property.js +129 -0
  417. package/dist/src/graphv2/create-property.js.map +1 -0
  418. package/dist/src/graphv2/create-property.test.d.ts +2 -0
  419. package/dist/src/graphv2/create-property.test.d.ts.map +1 -0
  420. package/dist/src/graphv2/create-property.test.js +82 -0
  421. package/dist/src/graphv2/create-property.test.js.map +1 -0
  422. package/dist/src/graphv2/create-relation.d.ts +33 -0
  423. package/dist/src/graphv2/create-relation.d.ts.map +1 -0
  424. package/dist/src/graphv2/create-relation.js +66 -0
  425. package/dist/src/graphv2/create-relation.js.map +1 -0
  426. package/dist/src/graphv2/create-relation.test.d.ts +2 -0
  427. package/dist/src/graphv2/create-relation.test.d.ts.map +1 -0
  428. package/dist/src/graphv2/create-relation.test.js +208 -0
  429. package/dist/src/graphv2/create-relation.test.js.map +1 -0
  430. package/dist/src/graphv2/create-space.d.ts +13 -0
  431. package/dist/src/graphv2/create-space.d.ts.map +1 -0
  432. package/dist/src/graphv2/create-space.js +21 -0
  433. package/dist/src/graphv2/create-space.js.map +1 -0
  434. package/dist/src/graphv2/create-type.d.ts +22 -0
  435. package/dist/src/graphv2/create-type.d.ts.map +1 -0
  436. package/dist/src/graphv2/create-type.js +64 -0
  437. package/dist/src/graphv2/create-type.js.map +1 -0
  438. package/dist/src/graphv2/create-type.test.d.ts +2 -0
  439. package/dist/src/graphv2/create-type.test.d.ts.map +1 -0
  440. package/dist/src/graphv2/create-type.test.js +109 -0
  441. package/dist/src/graphv2/create-type.test.js.map +1 -0
  442. package/dist/src/graphv2/delete-entity.d.ts +14 -0
  443. package/dist/src/graphv2/delete-entity.d.ts.map +1 -0
  444. package/dist/src/graphv2/delete-entity.js +21 -0
  445. package/dist/src/graphv2/delete-entity.js.map +1 -0
  446. package/dist/src/graphv2/delete-entity.test.d.ts +2 -0
  447. package/dist/src/graphv2/delete-entity.test.d.ts.map +1 -0
  448. package/dist/src/graphv2/delete-entity.test.js +24 -0
  449. package/dist/src/graphv2/delete-entity.test.js.map +1 -0
  450. package/dist/src/graphv2/delete-relation.d.ts +14 -0
  451. package/dist/src/graphv2/delete-relation.d.ts.map +1 -0
  452. package/dist/src/graphv2/delete-relation.js +21 -0
  453. package/dist/src/graphv2/delete-relation.js.map +1 -0
  454. package/dist/src/graphv2/delete-relation.test.d.ts +2 -0
  455. package/dist/src/graphv2/delete-relation.test.d.ts.map +1 -0
  456. package/dist/src/graphv2/delete-relation.test.js +24 -0
  457. package/dist/src/graphv2/delete-relation.test.js.map +1 -0
  458. package/dist/src/graphv2/index.d.ts +12 -0
  459. package/dist/src/graphv2/index.d.ts.map +1 -0
  460. package/dist/src/graphv2/index.js +12 -0
  461. package/dist/src/graphv2/index.js.map +1 -0
  462. package/dist/src/graphv2/remove-entity-properties.d.ts +25 -0
  463. package/dist/src/graphv2/remove-entity-properties.d.ts.map +1 -0
  464. package/dist/src/graphv2/remove-entity-properties.js +24 -0
  465. package/dist/src/graphv2/remove-entity-properties.js.map +1 -0
  466. package/dist/src/graphv2/unset-entity-values.d.ts +21 -0
  467. package/dist/src/graphv2/unset-entity-values.d.ts.map +1 -0
  468. package/dist/src/graphv2/unset-entity-values.js +26 -0
  469. package/dist/src/graphv2/unset-entity-values.js.map +1 -0
  470. package/dist/src/graphv2/unset-entity-values.test.d.ts +2 -0
  471. package/dist/src/graphv2/unset-entity-values.test.d.ts.map +1 -0
  472. package/dist/src/graphv2/unset-entity-values.test.js +40 -0
  473. package/dist/src/graphv2/unset-entity-values.test.js.map +1 -0
  474. package/dist/src/graphv2/unset-relation-fields.d.ts +25 -0
  475. package/dist/src/graphv2/unset-relation-fields.d.ts.map +1 -0
  476. package/dist/src/graphv2/unset-relation-fields.js +34 -0
  477. package/dist/src/graphv2/unset-relation-fields.js.map +1 -0
  478. package/dist/src/graphv2/unset-relation-fields.test.d.ts +2 -0
  479. package/dist/src/graphv2/unset-relation-fields.test.d.ts.map +1 -0
  480. package/dist/src/graphv2/unset-relation-fields.test.js +64 -0
  481. package/dist/src/graphv2/unset-relation-fields.test.js.map +1 -0
  482. package/dist/src/graphv2/update-entity.d.ts +28 -0
  483. package/dist/src/graphv2/update-entity.d.ts.map +1 -0
  484. package/dist/src/graphv2/update-entity.js +73 -0
  485. package/dist/src/graphv2/update-entity.js.map +1 -0
  486. package/dist/src/graphv2/update-entity.test.d.ts +2 -0
  487. package/dist/src/graphv2/update-entity.test.d.ts.map +1 -0
  488. package/dist/src/graphv2/update-entity.test.js +116 -0
  489. package/dist/src/graphv2/update-entity.test.js.map +1 -0
  490. package/dist/src/graphv2/update-relation.d.ts +21 -0
  491. package/dist/src/graphv2/update-relation.d.ts.map +1 -0
  492. package/dist/src/graphv2/update-relation.js +37 -0
  493. package/dist/src/graphv2/update-relation.js.map +1 -0
  494. package/dist/src/id-utils.d.ts +36 -0
  495. package/dist/src/id-utils.d.ts.map +1 -0
  496. package/dist/src/id-utils.js +100 -0
  497. package/dist/src/id-utils.js.map +1 -0
  498. package/dist/src/id-utils.test.d.ts +2 -0
  499. package/dist/src/id-utils.test.d.ts.map +1 -0
  500. package/dist/src/id-utils.test.js +33 -0
  501. package/dist/src/id-utils.test.js.map +1 -0
  502. package/dist/src/id.d.ts +11 -0
  503. package/dist/src/id.d.ts.map +1 -0
  504. package/dist/src/id.js +13 -0
  505. package/dist/src/id.js.map +1 -0
  506. package/dist/src/id.test.d.ts +2 -0
  507. package/dist/src/id.test.d.ts.map +1 -0
  508. package/dist/src/id.test.js +14 -0
  509. package/dist/src/id.test.js.map +1 -0
  510. package/dist/src/idv2.d.ts +27 -0
  511. package/dist/src/idv2.d.ts.map +1 -0
  512. package/dist/src/idv2.js +88 -0
  513. package/dist/src/idv2.js.map +1 -0
  514. package/dist/src/idv2.test.d.ts +2 -0
  515. package/dist/src/idv2.test.d.ts.map +1 -0
  516. package/dist/src/idv2.test.js +26 -0
  517. package/dist/src/idv2.test.js.map +1 -0
  518. package/dist/src/image.d.ts +8 -0
  519. package/dist/src/image.d.ts.map +1 -0
  520. package/dist/src/image.js +8 -0
  521. package/dist/src/image.js.map +1 -0
  522. package/dist/src/internal/uuid.d.ts +11 -0
  523. package/dist/src/internal/uuid.d.ts.map +1 -0
  524. package/dist/src/internal/uuid.js +18 -0
  525. package/dist/src/internal/uuid.js.map +1 -0
  526. package/dist/src/ipfs.d.ts +98 -0
  527. package/dist/src/ipfs.d.ts.map +1 -0
  528. package/dist/src/ipfs.js +192 -0
  529. package/dist/src/ipfs.js.map +1 -0
  530. package/dist/src/ipfs.test.d.ts +2 -0
  531. package/dist/src/ipfs.test.d.ts.map +1 -0
  532. package/dist/src/ipfs.test.js +137 -0
  533. package/dist/src/ipfs.test.js.map +1 -0
  534. package/dist/src/ipfsv2.d.ts +96 -0
  535. package/dist/src/ipfsv2.d.ts.map +1 -0
  536. package/dist/src/ipfsv2.js +163 -0
  537. package/dist/src/ipfsv2.js.map +1 -0
  538. package/dist/src/ipfsv2.test.d.ts +2 -0
  539. package/dist/src/ipfsv2.test.d.ts.map +1 -0
  540. package/dist/src/ipfsv2.test.js +22 -0
  541. package/dist/src/ipfsv2.test.js.map +1 -0
  542. package/dist/src/position.d.ts +7 -0
  543. package/dist/src/position.d.ts.map +1 -0
  544. package/dist/src/position.js +7 -0
  545. package/dist/src/position.js.map +1 -0
  546. package/dist/src/proto/edit.d.ts +11 -0
  547. package/dist/src/proto/edit.d.ts.map +1 -0
  548. package/dist/src/proto/edit.js +210 -0
  549. package/dist/src/proto/edit.js.map +1 -0
  550. package/dist/src/proto/edit.test.d.ts +2 -0
  551. package/dist/src/proto/edit.test.d.ts.map +1 -0
  552. package/dist/src/proto/edit.test.js +326 -0
  553. package/dist/src/proto/edit.test.js.map +1 -0
  554. package/dist/src/proto/editv2.d.ts +11 -0
  555. package/dist/src/proto/editv2.d.ts.map +1 -0
  556. package/dist/src/proto/editv2.js +81 -0
  557. package/dist/src/proto/editv2.js.map +1 -0
  558. package/dist/src/proto/editv2.test.d.ts +2 -0
  559. package/dist/src/proto/editv2.test.d.ts.map +1 -0
  560. package/dist/src/proto/editv2.test.js +211 -0
  561. package/dist/src/proto/editv2.test.js.map +1 -0
  562. package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts +530 -0
  563. package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts.map +1 -0
  564. package/dist/src/proto/gen/src/proto/ipfs_pb.js +706 -0
  565. package/dist/src/proto/gen/src/proto/ipfs_pb.js.map +1 -0
  566. package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts +410 -0
  567. package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts.map +1 -0
  568. package/dist/src/proto/gen/src/proto/ipfsv2_pb.js +536 -0
  569. package/dist/src/proto/gen/src/proto/ipfsv2_pb.js.map +1 -0
  570. package/dist/src/proto/index.d.ts +7 -0
  571. package/dist/src/proto/index.d.ts.map +1 -0
  572. package/dist/src/proto/index.js +7 -0
  573. package/dist/src/proto/index.js.map +1 -0
  574. package/dist/src/ranks/create-rank.d.ts +42 -0
  575. package/dist/src/ranks/create-rank.d.ts.map +1 -0
  576. package/dist/src/ranks/create-rank.js +146 -0
  577. package/dist/src/ranks/create-rank.js.map +1 -0
  578. package/dist/src/ranks/create-rank.test.d.ts +2 -0
  579. package/dist/src/ranks/create-rank.test.d.ts.map +1 -0
  580. package/dist/src/ranks/create-rank.test.js +333 -0
  581. package/dist/src/ranks/create-rank.test.js.map +1 -0
  582. package/dist/src/ranks/index.d.ts +3 -0
  583. package/dist/src/ranks/index.d.ts.map +1 -0
  584. package/dist/src/ranks/index.js +3 -0
  585. package/dist/src/ranks/index.js.map +1 -0
  586. package/dist/src/ranks/types.d.ts +30 -0
  587. package/dist/src/ranks/types.d.ts.map +1 -0
  588. package/dist/src/ranks/types.js +2 -0
  589. package/dist/src/ranks/types.js.map +1 -0
  590. package/dist/src/relation.d.ts +7 -0
  591. package/dist/src/relation.d.ts.map +1 -0
  592. package/dist/src/relation.js +7 -0
  593. package/dist/src/relation.js.map +1 -0
  594. package/dist/src/scheme.d.ts +7 -0
  595. package/dist/src/scheme.d.ts.map +1 -0
  596. package/dist/src/scheme.js +7 -0
  597. package/dist/src/scheme.js.map +1 -0
  598. package/dist/src/smart-wallet-2.test-invalid.d.ts +2 -0
  599. package/dist/src/smart-wallet-2.test-invalid.d.ts.map +1 -0
  600. package/dist/src/smart-wallet-2.test-invalid.js +49 -0
  601. package/dist/src/smart-wallet-2.test-invalid.js.map +1 -0
  602. package/dist/src/smart-wallet-2.test.d.ts +2 -0
  603. package/dist/src/smart-wallet-2.test.d.ts.map +1 -0
  604. package/dist/src/smart-wallet-2.test.js +49 -0
  605. package/dist/src/smart-wallet-2.test.js.map +1 -0
  606. package/dist/src/smart-wallet.d.ts +26 -0
  607. package/dist/src/smart-wallet.d.ts.map +1 -0
  608. package/dist/src/smart-wallet.js +100 -0
  609. package/dist/src/smart-wallet.js.map +1 -0
  610. package/dist/src/smart-wallet.test.d.ts +2 -0
  611. package/dist/src/smart-wallet.test.d.ts.map +1 -0
  612. package/dist/src/smart-wallet.test.js +66 -0
  613. package/dist/src/smart-wallet.test.js.map +1 -0
  614. package/dist/src/system-ids-v2.d.ts +7 -0
  615. package/dist/src/system-ids-v2.d.ts.map +1 -0
  616. package/dist/src/system-ids-v2.js +7 -0
  617. package/dist/src/system-ids-v2.js.map +1 -0
  618. package/dist/src/system-ids.d.ts +7 -0
  619. package/dist/src/system-ids.d.ts.map +1 -0
  620. package/dist/src/system-ids.js +7 -0
  621. package/dist/src/system-ids.js.map +1 -0
  622. package/dist/src/triple.d.ts +7 -0
  623. package/dist/src/triple.d.ts.map +1 -0
  624. package/dist/src/triple.js +7 -0
  625. package/dist/src/triple.js.map +1 -0
  626. package/dist/src/types-backup.d.ts +134 -0
  627. package/dist/src/types-backup.d.ts.map +1 -0
  628. package/dist/src/types-backup.js +13 -0
  629. package/dist/src/types-backup.js.map +1 -0
  630. package/dist/src/types.d.ts +176 -0
  631. package/dist/src/types.d.ts.map +1 -0
  632. package/dist/src/types.js +8 -0
  633. package/dist/src/types.js.map +1 -0
  634. package/dist/src/typesv2.d.ts +173 -0
  635. package/dist/src/typesv2.d.ts.map +1 -0
  636. package/dist/src/typesv2.js +8 -0
  637. package/dist/src/typesv2.js.map +1 -0
  638. package/dist/tsconfig.tsbuildinfo +1 -0
  639. package/package.json +46 -0
@@ -0,0 +1,706 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file src/proto/ipfs.proto (package grc20, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from '@bufbuild/protobuf';
6
+ /**
7
+ * @generated from enum grc20.DataType
8
+ */
9
+ export var DataType;
10
+ (function (DataType) {
11
+ /**
12
+ * @generated from enum value: STRING = 0;
13
+ */
14
+ DataType[DataType["STRING"] = 0] = "STRING";
15
+ /**
16
+ * @generated from enum value: NUMBER = 1;
17
+ */
18
+ DataType[DataType["NUMBER"] = 1] = "NUMBER";
19
+ /**
20
+ * @generated from enum value: BOOLEAN = 2;
21
+ */
22
+ DataType[DataType["BOOLEAN"] = 2] = "BOOLEAN";
23
+ /**
24
+ * @generated from enum value: TIME = 3;
25
+ */
26
+ DataType[DataType["TIME"] = 3] = "TIME";
27
+ /**
28
+ * @generated from enum value: POINT = 4;
29
+ */
30
+ DataType[DataType["POINT"] = 4] = "POINT";
31
+ /**
32
+ * @generated from enum value: RELATION = 5;
33
+ */
34
+ DataType[DataType["RELATION"] = 5] = "RELATION";
35
+ })(DataType || (DataType = {}));
36
+ // Retrieve enum metadata with: proto3.getEnumType(DataType)
37
+ proto3.util.setEnumType(DataType, 'grc20.DataType', [
38
+ { no: 0, name: 'STRING' },
39
+ { no: 1, name: 'NUMBER' },
40
+ { no: 2, name: 'BOOLEAN' },
41
+ { no: 3, name: 'TIME' },
42
+ { no: 4, name: 'POINT' },
43
+ { no: 5, name: 'RELATION' },
44
+ ]);
45
+ /**
46
+ * @generated from message grc20.Edit
47
+ */
48
+ export class Edit extends Message {
49
+ /**
50
+ * @generated from field: bytes id = 1;
51
+ */
52
+ id = new Uint8Array(0);
53
+ /**
54
+ * @generated from field: string name = 2;
55
+ */
56
+ name = '';
57
+ /**
58
+ * @generated from field: repeated grc20.Op ops = 3;
59
+ */
60
+ ops = [];
61
+ /**
62
+ * @generated from field: repeated bytes authors = 4;
63
+ */
64
+ authors = [];
65
+ /**
66
+ * @generated from field: optional bytes language = 5;
67
+ */
68
+ language;
69
+ constructor(data) {
70
+ super();
71
+ proto3.util.initPartial(data, this);
72
+ }
73
+ static runtime = proto3;
74
+ static typeName = 'grc20.Edit';
75
+ static fields = proto3.util.newFieldList(() => [
76
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
77
+ { no: 2, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
78
+ { no: 3, name: 'ops', kind: 'message', T: Op, repeated: true },
79
+ { no: 4, name: 'authors', kind: 'scalar', T: 12 /* ScalarType.BYTES */, repeated: true },
80
+ { no: 5, name: 'language', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
81
+ ]);
82
+ static fromBinary(bytes, options) {
83
+ return new Edit().fromBinary(bytes, options);
84
+ }
85
+ static fromJson(jsonValue, options) {
86
+ return new Edit().fromJson(jsonValue, options);
87
+ }
88
+ static fromJsonString(jsonString, options) {
89
+ return new Edit().fromJsonString(jsonString, options);
90
+ }
91
+ static equals(a, b) {
92
+ return proto3.util.equals(Edit, a, b);
93
+ }
94
+ }
95
+ /**
96
+ * @generated from message grc20.ImportEdit
97
+ */
98
+ export class ImportEdit extends Message {
99
+ /**
100
+ * @generated from field: bytes id = 1;
101
+ */
102
+ id = new Uint8Array(0);
103
+ /**
104
+ * @generated from field: string name = 2;
105
+ */
106
+ name = '';
107
+ /**
108
+ * @generated from field: repeated grc20.Op ops = 3;
109
+ */
110
+ ops = [];
111
+ /**
112
+ * @generated from field: repeated bytes authors = 4;
113
+ */
114
+ authors = [];
115
+ /**
116
+ * @generated from field: bytes created_by = 5;
117
+ */
118
+ createdBy = new Uint8Array(0);
119
+ /**
120
+ * @generated from field: string created_at = 6;
121
+ */
122
+ createdAt = '';
123
+ /**
124
+ * @generated from field: bytes block_hash = 7;
125
+ */
126
+ blockHash = new Uint8Array(0);
127
+ /**
128
+ * @generated from field: string block_number = 8;
129
+ */
130
+ blockNumber = '';
131
+ /**
132
+ * @generated from field: bytes transaction_hash = 9;
133
+ */
134
+ transactionHash = new Uint8Array(0);
135
+ constructor(data) {
136
+ super();
137
+ proto3.util.initPartial(data, this);
138
+ }
139
+ static runtime = proto3;
140
+ static typeName = 'grc20.ImportEdit';
141
+ static fields = proto3.util.newFieldList(() => [
142
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
143
+ { no: 2, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
144
+ { no: 3, name: 'ops', kind: 'message', T: Op, repeated: true },
145
+ { no: 4, name: 'authors', kind: 'scalar', T: 12 /* ScalarType.BYTES */, repeated: true },
146
+ { no: 5, name: 'created_by', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
147
+ { no: 6, name: 'created_at', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
148
+ { no: 7, name: 'block_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
149
+ { no: 8, name: 'block_number', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
150
+ { no: 9, name: 'transaction_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
151
+ ]);
152
+ static fromBinary(bytes, options) {
153
+ return new ImportEdit().fromBinary(bytes, options);
154
+ }
155
+ static fromJson(jsonValue, options) {
156
+ return new ImportEdit().fromJson(jsonValue, options);
157
+ }
158
+ static fromJsonString(jsonString, options) {
159
+ return new ImportEdit().fromJsonString(jsonString, options);
160
+ }
161
+ static equals(a, b) {
162
+ return proto3.util.equals(ImportEdit, a, b);
163
+ }
164
+ }
165
+ /**
166
+ * @generated from message grc20.Import
167
+ */
168
+ export class Import extends Message {
169
+ /**
170
+ * these strings are IPFS cids representing the import edit message
171
+ *
172
+ * @generated from field: repeated string edits = 1;
173
+ */
174
+ edits = [];
175
+ constructor(data) {
176
+ super();
177
+ proto3.util.initPartial(data, this);
178
+ }
179
+ static runtime = proto3;
180
+ static typeName = 'grc20.Import';
181
+ static fields = proto3.util.newFieldList(() => [
182
+ { no: 1, name: 'edits', kind: 'scalar', T: 9 /* ScalarType.STRING */, repeated: true },
183
+ ]);
184
+ static fromBinary(bytes, options) {
185
+ return new Import().fromBinary(bytes, options);
186
+ }
187
+ static fromJson(jsonValue, options) {
188
+ return new Import().fromJson(jsonValue, options);
189
+ }
190
+ static fromJsonString(jsonString, options) {
191
+ return new Import().fromJsonString(jsonString, options);
192
+ }
193
+ static equals(a, b) {
194
+ return proto3.util.equals(Import, a, b);
195
+ }
196
+ }
197
+ /**
198
+ * @generated from message grc20.File
199
+ */
200
+ export class File extends Message {
201
+ /**
202
+ * @generated from field: string version = 1;
203
+ */
204
+ version = '';
205
+ /**
206
+ * @generated from oneof grc20.File.payload
207
+ */
208
+ payload = { case: undefined };
209
+ constructor(data) {
210
+ super();
211
+ proto3.util.initPartial(data, this);
212
+ }
213
+ static runtime = proto3;
214
+ static typeName = 'grc20.File';
215
+ static fields = proto3.util.newFieldList(() => [
216
+ { no: 1, name: 'version', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
217
+ { no: 2, name: 'add_edit', kind: 'message', T: Edit, oneof: 'payload' },
218
+ { no: 3, name: 'import_space', kind: 'message', T: Import, oneof: 'payload' },
219
+ { no: 4, name: 'archive_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, oneof: 'payload' },
220
+ ]);
221
+ static fromBinary(bytes, options) {
222
+ return new File().fromBinary(bytes, options);
223
+ }
224
+ static fromJson(jsonValue, options) {
225
+ return new File().fromJson(jsonValue, options);
226
+ }
227
+ static fromJsonString(jsonString, options) {
228
+ return new File().fromJsonString(jsonString, options);
229
+ }
230
+ static equals(a, b) {
231
+ return proto3.util.equals(File, a, b);
232
+ }
233
+ }
234
+ /**
235
+ * @generated from message grc20.Op
236
+ */
237
+ export class Op extends Message {
238
+ /**
239
+ * @generated from oneof grc20.Op.payload
240
+ */
241
+ payload = { case: undefined };
242
+ constructor(data) {
243
+ super();
244
+ proto3.util.initPartial(data, this);
245
+ }
246
+ static runtime = proto3;
247
+ static typeName = 'grc20.Op';
248
+ static fields = proto3.util.newFieldList(() => [
249
+ { no: 1, name: 'update_entity', kind: 'message', T: Entity, oneof: 'payload' },
250
+ { no: 2, name: 'create_relation', kind: 'message', T: Relation, oneof: 'payload' },
251
+ { no: 3, name: 'update_relation', kind: 'message', T: RelationUpdate, oneof: 'payload' },
252
+ { no: 4, name: 'delete_relation', kind: 'scalar', T: 12 /* ScalarType.BYTES */, oneof: 'payload' },
253
+ { no: 5, name: 'create_property', kind: 'message', T: Property, oneof: 'payload' },
254
+ { no: 6, name: 'unset_entity_values', kind: 'message', T: UnsetEntityValues, oneof: 'payload' },
255
+ { no: 7, name: 'unset_relation_fields', kind: 'message', T: UnsetRelationFields, oneof: 'payload' },
256
+ ]);
257
+ static fromBinary(bytes, options) {
258
+ return new Op().fromBinary(bytes, options);
259
+ }
260
+ static fromJson(jsonValue, options) {
261
+ return new Op().fromJson(jsonValue, options);
262
+ }
263
+ static fromJsonString(jsonString, options) {
264
+ return new Op().fromJsonString(jsonString, options);
265
+ }
266
+ static equals(a, b) {
267
+ return proto3.util.equals(Op, a, b);
268
+ }
269
+ }
270
+ /**
271
+ * @generated from message grc20.Property
272
+ */
273
+ export class Property extends Message {
274
+ /**
275
+ * @generated from field: bytes id = 1;
276
+ */
277
+ id = new Uint8Array(0);
278
+ /**
279
+ * @generated from field: grc20.DataType data_type = 2;
280
+ */
281
+ dataType = DataType.STRING;
282
+ constructor(data) {
283
+ super();
284
+ proto3.util.initPartial(data, this);
285
+ }
286
+ static runtime = proto3;
287
+ static typeName = 'grc20.Property';
288
+ static fields = proto3.util.newFieldList(() => [
289
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
290
+ { no: 2, name: 'data_type', kind: 'enum', T: proto3.getEnumType(DataType) },
291
+ ]);
292
+ static fromBinary(bytes, options) {
293
+ return new Property().fromBinary(bytes, options);
294
+ }
295
+ static fromJson(jsonValue, options) {
296
+ return new Property().fromJson(jsonValue, options);
297
+ }
298
+ static fromJsonString(jsonString, options) {
299
+ return new Property().fromJsonString(jsonString, options);
300
+ }
301
+ static equals(a, b) {
302
+ return proto3.util.equals(Property, a, b);
303
+ }
304
+ }
305
+ /**
306
+ * @generated from message grc20.UnsetEntityValues
307
+ */
308
+ export class UnsetEntityValues extends Message {
309
+ /**
310
+ * @generated from field: bytes id = 1;
311
+ */
312
+ id = new Uint8Array(0);
313
+ /**
314
+ * @generated from field: repeated bytes properties = 2;
315
+ */
316
+ properties = [];
317
+ constructor(data) {
318
+ super();
319
+ proto3.util.initPartial(data, this);
320
+ }
321
+ static runtime = proto3;
322
+ static typeName = 'grc20.UnsetEntityValues';
323
+ static fields = proto3.util.newFieldList(() => [
324
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
325
+ { no: 2, name: 'properties', kind: 'scalar', T: 12 /* ScalarType.BYTES */, repeated: true },
326
+ ]);
327
+ static fromBinary(bytes, options) {
328
+ return new UnsetEntityValues().fromBinary(bytes, options);
329
+ }
330
+ static fromJson(jsonValue, options) {
331
+ return new UnsetEntityValues().fromJson(jsonValue, options);
332
+ }
333
+ static fromJsonString(jsonString, options) {
334
+ return new UnsetEntityValues().fromJsonString(jsonString, options);
335
+ }
336
+ static equals(a, b) {
337
+ return proto3.util.equals(UnsetEntityValues, a, b);
338
+ }
339
+ }
340
+ /**
341
+ * @generated from message grc20.Relation
342
+ */
343
+ export class Relation extends Message {
344
+ /**
345
+ * @generated from field: bytes id = 1;
346
+ */
347
+ id = new Uint8Array(0);
348
+ /**
349
+ * @generated from field: bytes type = 2;
350
+ */
351
+ type = new Uint8Array(0);
352
+ /**
353
+ * @generated from field: bytes from_entity = 3;
354
+ */
355
+ fromEntity = new Uint8Array(0);
356
+ /**
357
+ * @generated from field: optional bytes from_space = 4;
358
+ */
359
+ fromSpace;
360
+ /**
361
+ * @generated from field: optional bytes from_version = 5;
362
+ */
363
+ fromVersion;
364
+ /**
365
+ * @generated from field: bytes to_entity = 6;
366
+ */
367
+ toEntity = new Uint8Array(0);
368
+ /**
369
+ * @generated from field: optional bytes to_space = 7;
370
+ */
371
+ toSpace;
372
+ /**
373
+ * @generated from field: optional bytes to_version = 8;
374
+ */
375
+ toVersion;
376
+ /**
377
+ * @generated from field: bytes entity = 9;
378
+ */
379
+ entity = new Uint8Array(0);
380
+ /**
381
+ * @generated from field: optional string position = 10;
382
+ */
383
+ position;
384
+ /**
385
+ * @generated from field: optional bool verified = 11;
386
+ */
387
+ verified;
388
+ constructor(data) {
389
+ super();
390
+ proto3.util.initPartial(data, this);
391
+ }
392
+ static runtime = proto3;
393
+ static typeName = 'grc20.Relation';
394
+ static fields = proto3.util.newFieldList(() => [
395
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
396
+ { no: 2, name: 'type', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
397
+ { no: 3, name: 'from_entity', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
398
+ { no: 4, name: 'from_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
399
+ { no: 5, name: 'from_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
400
+ { no: 6, name: 'to_entity', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
401
+ { no: 7, name: 'to_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
402
+ { no: 8, name: 'to_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
403
+ { no: 9, name: 'entity', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
404
+ { no: 10, name: 'position', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
405
+ { no: 11, name: 'verified', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
406
+ ]);
407
+ static fromBinary(bytes, options) {
408
+ return new Relation().fromBinary(bytes, options);
409
+ }
410
+ static fromJson(jsonValue, options) {
411
+ return new Relation().fromJson(jsonValue, options);
412
+ }
413
+ static fromJsonString(jsonString, options) {
414
+ return new Relation().fromJsonString(jsonString, options);
415
+ }
416
+ static equals(a, b) {
417
+ return proto3.util.equals(Relation, a, b);
418
+ }
419
+ }
420
+ /**
421
+ * @generated from message grc20.RelationUpdate
422
+ */
423
+ export class RelationUpdate extends Message {
424
+ /**
425
+ * @generated from field: bytes id = 1;
426
+ */
427
+ id = new Uint8Array(0);
428
+ /**
429
+ * @generated from field: optional bytes from_space = 2;
430
+ */
431
+ fromSpace;
432
+ /**
433
+ * @generated from field: optional bytes from_version = 3;
434
+ */
435
+ fromVersion;
436
+ /**
437
+ * @generated from field: optional bytes to_space = 4;
438
+ */
439
+ toSpace;
440
+ /**
441
+ * @generated from field: optional bytes to_version = 5;
442
+ */
443
+ toVersion;
444
+ /**
445
+ * @generated from field: optional string position = 6;
446
+ */
447
+ position;
448
+ /**
449
+ * @generated from field: optional bool verified = 7;
450
+ */
451
+ verified;
452
+ constructor(data) {
453
+ super();
454
+ proto3.util.initPartial(data, this);
455
+ }
456
+ static runtime = proto3;
457
+ static typeName = 'grc20.RelationUpdate';
458
+ static fields = proto3.util.newFieldList(() => [
459
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
460
+ { no: 2, name: 'from_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
461
+ { no: 3, name: 'from_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
462
+ { no: 4, name: 'to_space', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
463
+ { no: 5, name: 'to_version', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
464
+ { no: 6, name: 'position', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true },
465
+ { no: 7, name: 'verified', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
466
+ ]);
467
+ static fromBinary(bytes, options) {
468
+ return new RelationUpdate().fromBinary(bytes, options);
469
+ }
470
+ static fromJson(jsonValue, options) {
471
+ return new RelationUpdate().fromJson(jsonValue, options);
472
+ }
473
+ static fromJsonString(jsonString, options) {
474
+ return new RelationUpdate().fromJsonString(jsonString, options);
475
+ }
476
+ static equals(a, b) {
477
+ return proto3.util.equals(RelationUpdate, a, b);
478
+ }
479
+ }
480
+ /**
481
+ * @generated from message grc20.UnsetRelationFields
482
+ */
483
+ export class UnsetRelationFields extends Message {
484
+ /**
485
+ * @generated from field: bytes id = 1;
486
+ */
487
+ id = new Uint8Array(0);
488
+ /**
489
+ * @generated from field: optional bool from_space = 2;
490
+ */
491
+ fromSpace;
492
+ /**
493
+ * @generated from field: optional bool from_version = 3;
494
+ */
495
+ fromVersion;
496
+ /**
497
+ * @generated from field: optional bool to_space = 4;
498
+ */
499
+ toSpace;
500
+ /**
501
+ * @generated from field: optional bool to_version = 5;
502
+ */
503
+ toVersion;
504
+ /**
505
+ * @generated from field: optional bool position = 6;
506
+ */
507
+ position;
508
+ /**
509
+ * @generated from field: optional bool verified = 7;
510
+ */
511
+ verified;
512
+ constructor(data) {
513
+ super();
514
+ proto3.util.initPartial(data, this);
515
+ }
516
+ static runtime = proto3;
517
+ static typeName = 'grc20.UnsetRelationFields';
518
+ static fields = proto3.util.newFieldList(() => [
519
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
520
+ { no: 2, name: 'from_space', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
521
+ { no: 3, name: 'from_version', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
522
+ { no: 4, name: 'to_space', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
523
+ { no: 5, name: 'to_version', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
524
+ { no: 6, name: 'position', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
525
+ { no: 7, name: 'verified', kind: 'scalar', T: 8 /* ScalarType.BOOL */, opt: true },
526
+ ]);
527
+ static fromBinary(bytes, options) {
528
+ return new UnsetRelationFields().fromBinary(bytes, options);
529
+ }
530
+ static fromJson(jsonValue, options) {
531
+ return new UnsetRelationFields().fromJson(jsonValue, options);
532
+ }
533
+ static fromJsonString(jsonString, options) {
534
+ return new UnsetRelationFields().fromJsonString(jsonString, options);
535
+ }
536
+ static equals(a, b) {
537
+ return proto3.util.equals(UnsetRelationFields, a, b);
538
+ }
539
+ }
540
+ /**
541
+ * @generated from message grc20.Entity
542
+ */
543
+ export class Entity extends Message {
544
+ /**
545
+ * @generated from field: bytes id = 1;
546
+ */
547
+ id = new Uint8Array(0);
548
+ /**
549
+ * @generated from field: repeated grc20.Value values = 2;
550
+ */
551
+ values = [];
552
+ constructor(data) {
553
+ super();
554
+ proto3.util.initPartial(data, this);
555
+ }
556
+ static runtime = proto3;
557
+ static typeName = 'grc20.Entity';
558
+ static fields = proto3.util.newFieldList(() => [
559
+ { no: 1, name: 'id', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
560
+ { no: 2, name: 'values', kind: 'message', T: Value, repeated: true },
561
+ ]);
562
+ static fromBinary(bytes, options) {
563
+ return new Entity().fromBinary(bytes, options);
564
+ }
565
+ static fromJson(jsonValue, options) {
566
+ return new Entity().fromJson(jsonValue, options);
567
+ }
568
+ static fromJsonString(jsonString, options) {
569
+ return new Entity().fromJsonString(jsonString, options);
570
+ }
571
+ static equals(a, b) {
572
+ return proto3.util.equals(Entity, a, b);
573
+ }
574
+ }
575
+ /**
576
+ * @generated from message grc20.Options
577
+ */
578
+ export class Options extends Message {
579
+ /**
580
+ * @generated from oneof grc20.Options.value
581
+ */
582
+ value = { case: undefined };
583
+ constructor(data) {
584
+ super();
585
+ proto3.util.initPartial(data, this);
586
+ }
587
+ static runtime = proto3;
588
+ static typeName = 'grc20.Options';
589
+ static fields = proto3.util.newFieldList(() => [
590
+ { no: 1, name: 'text', kind: 'message', T: TextOptions, oneof: 'value' },
591
+ { no: 2, name: 'number', kind: 'message', T: NumberOptions, oneof: 'value' },
592
+ ]);
593
+ static fromBinary(bytes, options) {
594
+ return new Options().fromBinary(bytes, options);
595
+ }
596
+ static fromJson(jsonValue, options) {
597
+ return new Options().fromJson(jsonValue, options);
598
+ }
599
+ static fromJsonString(jsonString, options) {
600
+ return new Options().fromJsonString(jsonString, options);
601
+ }
602
+ static equals(a, b) {
603
+ return proto3.util.equals(Options, a, b);
604
+ }
605
+ }
606
+ /**
607
+ * @generated from message grc20.Value
608
+ */
609
+ export class Value extends Message {
610
+ /**
611
+ * @generated from field: bytes property = 1;
612
+ */
613
+ property = new Uint8Array(0);
614
+ /**
615
+ * @generated from field: string value = 2;
616
+ */
617
+ value = '';
618
+ /**
619
+ * @generated from field: optional grc20.Options options = 3;
620
+ */
621
+ options;
622
+ constructor(data) {
623
+ super();
624
+ proto3.util.initPartial(data, this);
625
+ }
626
+ static runtime = proto3;
627
+ static typeName = 'grc20.Value';
628
+ static fields = proto3.util.newFieldList(() => [
629
+ { no: 1, name: 'property', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
630
+ { no: 2, name: 'value', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
631
+ { no: 3, name: 'options', kind: 'message', T: Options, opt: true },
632
+ ]);
633
+ static fromBinary(bytes, options) {
634
+ return new Value().fromBinary(bytes, options);
635
+ }
636
+ static fromJson(jsonValue, options) {
637
+ return new Value().fromJson(jsonValue, options);
638
+ }
639
+ static fromJsonString(jsonString, options) {
640
+ return new Value().fromJsonString(jsonString, options);
641
+ }
642
+ static equals(a, b) {
643
+ return proto3.util.equals(Value, a, b);
644
+ }
645
+ }
646
+ /**
647
+ * @generated from message grc20.TextOptions
648
+ */
649
+ export class TextOptions extends Message {
650
+ /**
651
+ * @generated from field: optional bytes language = 1;
652
+ */
653
+ language;
654
+ constructor(data) {
655
+ super();
656
+ proto3.util.initPartial(data, this);
657
+ }
658
+ static runtime = proto3;
659
+ static typeName = 'grc20.TextOptions';
660
+ static fields = proto3.util.newFieldList(() => [
661
+ { no: 1, name: 'language', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
662
+ ]);
663
+ static fromBinary(bytes, options) {
664
+ return new TextOptions().fromBinary(bytes, options);
665
+ }
666
+ static fromJson(jsonValue, options) {
667
+ return new TextOptions().fromJson(jsonValue, options);
668
+ }
669
+ static fromJsonString(jsonString, options) {
670
+ return new TextOptions().fromJsonString(jsonString, options);
671
+ }
672
+ static equals(a, b) {
673
+ return proto3.util.equals(TextOptions, a, b);
674
+ }
675
+ }
676
+ /**
677
+ * @generated from message grc20.NumberOptions
678
+ */
679
+ export class NumberOptions extends Message {
680
+ /**
681
+ * @generated from field: optional bytes unit = 1;
682
+ */
683
+ unit;
684
+ constructor(data) {
685
+ super();
686
+ proto3.util.initPartial(data, this);
687
+ }
688
+ static runtime = proto3;
689
+ static typeName = 'grc20.NumberOptions';
690
+ static fields = proto3.util.newFieldList(() => [
691
+ { no: 1, name: 'unit', kind: 'scalar', T: 12 /* ScalarType.BYTES */, opt: true },
692
+ ]);
693
+ static fromBinary(bytes, options) {
694
+ return new NumberOptions().fromBinary(bytes, options);
695
+ }
696
+ static fromJson(jsonValue, options) {
697
+ return new NumberOptions().fromJson(jsonValue, options);
698
+ }
699
+ static fromJsonString(jsonString, options) {
700
+ return new NumberOptions().fromJsonString(jsonString, options);
701
+ }
702
+ static equals(a, b) {
703
+ return proto3.util.equals(NumberOptions, a, b);
704
+ }
705
+ }
706
+ //# sourceMappingURL=ipfs_pb.js.map