@graphprotocol/grc-20 0.0.4

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 (295) hide show
  1. package/README.md +153 -0
  2. package/dist/abis.d.ts +2 -0
  3. package/dist/abis.d.ts.map +1 -0
  4. package/dist/abis.js +2 -0
  5. package/dist/abis.js.map +1 -0
  6. package/dist/constants.d.ts +2 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/constants.js +3 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/contracts.d.ts +7 -0
  11. package/dist/contracts.d.ts.map +1 -0
  12. package/dist/contracts.js +10 -0
  13. package/dist/contracts.js.map +1 -0
  14. package/dist/error.d.ts +2 -0
  15. package/dist/error.d.ts.map +1 -0
  16. package/dist/error.js +8 -0
  17. package/dist/error.js.map +1 -0
  18. package/dist/example.d.ts +2 -0
  19. package/dist/example.d.ts.map +1 -0
  20. package/dist/example.js +27 -0
  21. package/dist/example.js.map +1 -0
  22. package/dist/index.d.ts +14 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +14 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/proto.d.ts +3 -0
  27. package/dist/proto.d.ts.map +1 -0
  28. package/dist/proto.js +3 -0
  29. package/dist/proto.js.map +1 -0
  30. package/dist/run.d.ts +2 -0
  31. package/dist/run.d.ts.map +1 -0
  32. package/dist/run.js +4 -0
  33. package/dist/run.js.map +1 -0
  34. package/dist/src/abis/dao.d.ts +899 -0
  35. package/dist/src/abis/dao.d.ts.map +1 -0
  36. package/dist/src/abis/dao.js +1159 -0
  37. package/dist/src/abis/dao.js.map +1 -0
  38. package/dist/src/abis/governance-setup.d.ts +351 -0
  39. package/dist/src/abis/governance-setup.d.ts.map +1 -0
  40. package/dist/src/abis/governance-setup.js +461 -0
  41. package/dist/src/abis/governance-setup.js.map +1 -0
  42. package/dist/src/abis/index.d.ts +10 -0
  43. package/dist/src/abis/index.d.ts.map +1 -0
  44. package/dist/src/abis/index.js +10 -0
  45. package/dist/src/abis/index.js.map +1 -0
  46. package/dist/src/abis/main-voting.d.ts +1443 -0
  47. package/dist/src/abis/main-voting.d.ts.map +1 -0
  48. package/dist/src/abis/main-voting.js +1866 -0
  49. package/dist/src/abis/main-voting.js.map +1 -0
  50. package/dist/src/abis/member-access.d.ts +567 -0
  51. package/dist/src/abis/member-access.d.ts.map +1 -0
  52. package/dist/src/abis/member-access.js +735 -0
  53. package/dist/src/abis/member-access.js.map +1 -0
  54. package/dist/src/abis/personal-space-admin-setup.d.ts +259 -0
  55. package/dist/src/abis/personal-space-admin-setup.d.ts.map +1 -0
  56. package/dist/src/abis/personal-space-admin-setup.js +340 -0
  57. package/dist/src/abis/personal-space-admin-setup.js.map +1 -0
  58. package/dist/src/abis/personal-space-admin.d.ts +408 -0
  59. package/dist/src/abis/personal-space-admin.d.ts.map +1 -0
  60. package/dist/src/abis/personal-space-admin.js +526 -0
  61. package/dist/src/abis/personal-space-admin.js.map +1 -0
  62. package/dist/src/abis/plugin-setup-processor.d.ts +998 -0
  63. package/dist/src/abis/plugin-setup-processor.d.ts.map +1 -0
  64. package/dist/src/abis/plugin-setup-processor.js +1293 -0
  65. package/dist/src/abis/plugin-setup-processor.js.map +1 -0
  66. package/dist/src/abis/space-setup.d.ts +294 -0
  67. package/dist/src/abis/space-setup.d.ts.map +1 -0
  68. package/dist/src/abis/space-setup.js +387 -0
  69. package/dist/src/abis/space-setup.js.map +1 -0
  70. package/dist/src/abis/space.d.ts +263 -0
  71. package/dist/src/abis/space.d.ts.map +1 -0
  72. package/dist/src/abis/space.js +340 -0
  73. package/dist/src/abis/space.js.map +1 -0
  74. package/dist/src/account.d.ts +2 -0
  75. package/dist/src/account.d.ts.map +1 -0
  76. package/dist/src/account.js +2 -0
  77. package/dist/src/account.js.map +1 -0
  78. package/dist/src/base58.d.ts +36 -0
  79. package/dist/src/base58.d.ts.map +1 -0
  80. package/dist/src/base58.js +62 -0
  81. package/dist/src/base58.js.map +1 -0
  82. package/dist/src/base58.test.d.ts +2 -0
  83. package/dist/src/base58.test.d.ts.map +1 -0
  84. package/dist/src/base58.test.js +2 -0
  85. package/dist/src/base58.test.js.map +1 -0
  86. package/dist/src/blocks.d.ts +4 -0
  87. package/dist/src/blocks.d.ts.map +1 -0
  88. package/dist/src/blocks.js +4 -0
  89. package/dist/src/blocks.js.map +1 -0
  90. package/dist/src/core/account.d.ts +8 -0
  91. package/dist/src/core/account.d.ts.map +1 -0
  92. package/dist/src/core/account.js +50 -0
  93. package/dist/src/core/account.js.map +1 -0
  94. package/dist/src/core/base58.d.ts +37 -0
  95. package/dist/src/core/base58.d.ts.map +1 -0
  96. package/dist/src/core/base58.js +62 -0
  97. package/dist/src/core/base58.js.map +1 -0
  98. package/dist/src/core/base58.test.d.ts +2 -0
  99. package/dist/src/core/base58.test.d.ts.map +1 -0
  100. package/dist/src/core/base58.test.js +15 -0
  101. package/dist/src/core/base58.test.js.map +1 -0
  102. package/dist/src/core/blocks/data.d.ts +11 -0
  103. package/dist/src/core/blocks/data.d.ts.map +1 -0
  104. package/dist/src/core/blocks/data.js +48 -0
  105. package/dist/src/core/blocks/data.js.map +1 -0
  106. package/dist/src/core/blocks/image.d.ts +9 -0
  107. package/dist/src/core/blocks/image.d.ts.map +1 -0
  108. package/dist/src/core/blocks/image.js +9 -0
  109. package/dist/src/core/blocks/image.js.map +1 -0
  110. package/dist/src/core/blocks/text.d.ts +9 -0
  111. package/dist/src/core/blocks/text.d.ts.map +1 -0
  112. package/dist/src/core/blocks/text.js +30 -0
  113. package/dist/src/core/blocks/text.js.map +1 -0
  114. package/dist/src/core/get-checksum-address.d.ts +10 -0
  115. package/dist/src/core/get-checksum-address.d.ts.map +1 -0
  116. package/dist/src/core/get-checksum-address.js +20 -0
  117. package/dist/src/core/get-checksum-address.js.map +1 -0
  118. package/dist/src/core/ids/content.d.ts +59 -0
  119. package/dist/src/core/ids/content.d.ts.map +1 -0
  120. package/dist/src/core/ids/content.js +59 -0
  121. package/dist/src/core/ids/content.js.map +1 -0
  122. package/dist/src/core/ids/generate.d.ts +2 -0
  123. package/dist/src/core/ids/generate.d.ts.map +1 -0
  124. package/dist/src/core/ids/generate.js +4 -0
  125. package/dist/src/core/ids/generate.js.map +1 -0
  126. package/dist/src/core/ids/network.d.ts +4 -0
  127. package/dist/src/core/ids/network.d.ts.map +1 -0
  128. package/dist/src/core/ids/network.js +4 -0
  129. package/dist/src/core/ids/network.js.map +1 -0
  130. package/dist/src/core/ids/system.d.ts +212 -0
  131. package/dist/src/core/ids/system.d.ts.map +1 -0
  132. package/dist/src/core/ids/system.js +220 -0
  133. package/dist/src/core/ids/system.js.map +1 -0
  134. package/dist/src/core/image.d.ts +13 -0
  135. package/dist/src/core/image.d.ts.map +1 -0
  136. package/dist/src/core/image.js +33 -0
  137. package/dist/src/core/image.js.map +1 -0
  138. package/dist/src/core/position-strings/cursors.d.ts +56 -0
  139. package/dist/src/core/position-strings/cursors.d.ts.map +1 -0
  140. package/dist/src/core/position-strings/cursors.js +69 -0
  141. package/dist/src/core/position-strings/cursors.js.map +1 -0
  142. package/dist/src/core/position-strings/find-position.d.ts +24 -0
  143. package/dist/src/core/position-strings/find-position.d.ts.map +1 -0
  144. package/dist/src/core/position-strings/find-position.js +38 -0
  145. package/dist/src/core/position-strings/find-position.js.map +1 -0
  146. package/dist/src/core/position-strings/ids.d.ts +37 -0
  147. package/dist/src/core/position-strings/ids.d.ts.map +1 -0
  148. package/dist/src/core/position-strings/ids.js +79 -0
  149. package/dist/src/core/position-strings/ids.js.map +1 -0
  150. package/dist/src/core/position-strings/index.d.ts +5 -0
  151. package/dist/src/core/position-strings/index.d.ts.map +1 -0
  152. package/dist/src/core/position-strings/index.js +6 -0
  153. package/dist/src/core/position-strings/index.js.map +1 -0
  154. package/dist/src/core/position-strings/position-source.d.ts +128 -0
  155. package/dist/src/core/position-strings/position-source.d.ts.map +1 -0
  156. package/dist/src/core/position-strings/position-source.js +314 -0
  157. package/dist/src/core/position-strings/position-source.js.map +1 -0
  158. package/dist/src/core/position-strings/test/cursors.test.d.ts +2 -0
  159. package/dist/src/core/position-strings/test/cursors.test.d.ts.map +1 -0
  160. package/dist/src/core/position-strings/test/cursors.test.js +104 -0
  161. package/dist/src/core/position-strings/test/cursors.test.js.map +1 -0
  162. package/dist/src/core/position-strings/test/find-position.test.d.ts +2 -0
  163. package/dist/src/core/position-strings/test/find-position.test.d.ts.map +1 -0
  164. package/dist/src/core/position-strings/test/find-position.test.js +48 -0
  165. package/dist/src/core/position-strings/test/find-position.test.js.map +1 -0
  166. package/dist/src/core/position-strings/test/fuzz.test.d.ts +2 -0
  167. package/dist/src/core/position-strings/test/fuzz.test.d.ts.map +1 -0
  168. package/dist/src/core/position-strings/test/fuzz.test.js +78 -0
  169. package/dist/src/core/position-strings/test/fuzz.test.js.map +1 -0
  170. package/dist/src/core/position-strings/test/ids.test.d.ts +2 -0
  171. package/dist/src/core/position-strings/test/ids.test.d.ts.map +1 -0
  172. package/dist/src/core/position-strings/test/ids.test.js +17 -0
  173. package/dist/src/core/position-strings/test/ids.test.js.map +1 -0
  174. package/dist/src/core/position-strings/test/manual.test.d.ts +2 -0
  175. package/dist/src/core/position-strings/test/manual.test.d.ts.map +1 -0
  176. package/dist/src/core/position-strings/test/manual.test.js +307 -0
  177. package/dist/src/core/position-strings/test/manual.test.js.map +1 -0
  178. package/dist/src/core/position-strings/test/util.d.ts +6 -0
  179. package/dist/src/core/position-strings/test/util.d.ts.map +1 -0
  180. package/dist/src/core/position-strings/test/util.js +26 -0
  181. package/dist/src/core/position-strings/test/util.js.map +1 -0
  182. package/dist/src/core/position-strings/util.d.ts +8 -0
  183. package/dist/src/core/position-strings/util.d.ts.map +1 -0
  184. package/dist/src/core/position-strings/util.js +26 -0
  185. package/dist/src/core/position-strings/util.js.map +1 -0
  186. package/dist/src/core/position.d.ts +7 -0
  187. package/dist/src/core/position.d.ts.map +1 -0
  188. package/dist/src/core/position.js +7 -0
  189. package/dist/src/core/position.js.map +1 -0
  190. package/dist/src/core/relation.d.ts +30 -0
  191. package/dist/src/core/relation.d.ts.map +1 -0
  192. package/dist/src/core/relation.js +40 -0
  193. package/dist/src/core/relation.js.map +1 -0
  194. package/dist/src/core/scheme.d.ts +10 -0
  195. package/dist/src/core/scheme.d.ts.map +1 -0
  196. package/dist/src/core/scheme.js +21 -0
  197. package/dist/src/core/scheme.js.map +1 -0
  198. package/dist/src/core/triple.d.ts +14 -0
  199. package/dist/src/core/triple.d.ts.map +1 -0
  200. package/dist/src/core/triple.js +20 -0
  201. package/dist/src/core/triple.js.map +1 -0
  202. package/dist/src/encodings/get-accept-editor-arguments.d.ts +11 -0
  203. package/dist/src/encodings/get-accept-editor-arguments.d.ts.map +1 -0
  204. package/dist/src/encodings/get-accept-editor-arguments.js +23 -0
  205. package/dist/src/encodings/get-accept-editor-arguments.js.map +1 -0
  206. package/dist/src/encodings/get-accept-subspace-arguments.d.ts +11 -0
  207. package/dist/src/encodings/get-accept-subspace-arguments.d.ts.map +1 -0
  208. package/dist/src/encodings/get-accept-subspace-arguments.js +23 -0
  209. package/dist/src/encodings/get-accept-subspace-arguments.js.map +1 -0
  210. package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts +8 -0
  211. package/dist/src/encodings/get-calldata-for-space-governance-type.d.ts.map +1 -0
  212. package/dist/src/encodings/get-calldata-for-space-governance-type.js +19 -0
  213. package/dist/src/encodings/get-calldata-for-space-governance-type.js.map +1 -0
  214. package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts +7 -0
  215. package/dist/src/encodings/get-process-geo-proposal-arguments.d.ts.map +1 -0
  216. package/dist/src/encodings/get-process-geo-proposal-arguments.js +23 -0
  217. package/dist/src/encodings/get-process-geo-proposal-arguments.js.map +1 -0
  218. package/dist/src/encodings/get-remove-editor-arguments.d.ts +11 -0
  219. package/dist/src/encodings/get-remove-editor-arguments.d.ts.map +1 -0
  220. package/dist/src/encodings/get-remove-editor-arguments.js +23 -0
  221. package/dist/src/encodings/get-remove-editor-arguments.js.map +1 -0
  222. package/dist/src/encodings/get-remove-subspace-arguments.d.ts +11 -0
  223. package/dist/src/encodings/get-remove-subspace-arguments.d.ts.map +1 -0
  224. package/dist/src/encodings/get-remove-subspace-arguments.js +23 -0
  225. package/dist/src/encodings/get-remove-subspace-arguments.js.map +1 -0
  226. package/dist/src/encodings/index.d.ts +7 -0
  227. package/dist/src/encodings/index.d.ts.map +1 -0
  228. package/dist/src/encodings/index.js +7 -0
  229. package/dist/src/encodings/index.js.map +1 -0
  230. package/dist/src/id.d.ts +15 -0
  231. package/dist/src/id.d.ts.map +1 -0
  232. package/dist/src/id.js +21 -0
  233. package/dist/src/id.js.map +1 -0
  234. package/dist/src/image.d.ts +2 -0
  235. package/dist/src/image.d.ts.map +1 -0
  236. package/dist/src/image.js +2 -0
  237. package/dist/src/image.js.map +1 -0
  238. package/dist/src/position.d.ts +2 -0
  239. package/dist/src/position.d.ts.map +1 -0
  240. package/dist/src/position.js +2 -0
  241. package/dist/src/position.js.map +1 -0
  242. package/dist/src/proto/create-edit-proposal.d.ts +9 -0
  243. package/dist/src/proto/create-edit-proposal.d.ts.map +1 -0
  244. package/dist/src/proto/create-edit-proposal.js +54 -0
  245. package/dist/src/proto/create-edit-proposal.js.map +1 -0
  246. package/dist/src/proto/create-edit-proposal.test.d.ts +2 -0
  247. package/dist/src/proto/create-edit-proposal.test.d.ts.map +1 -0
  248. package/dist/src/proto/create-edit-proposal.test.js +140 -0
  249. package/dist/src/proto/create-edit-proposal.test.js.map +1 -0
  250. package/dist/src/proto/create-membership-proposal.d.ts +7 -0
  251. package/dist/src/proto/create-membership-proposal.d.ts.map +1 -0
  252. package/dist/src/proto/create-membership-proposal.js +26 -0
  253. package/dist/src/proto/create-membership-proposal.js.map +1 -0
  254. package/dist/src/proto/create-subspace-proposal.d.ts +7 -0
  255. package/dist/src/proto/create-subspace-proposal.d.ts.map +1 -0
  256. package/dist/src/proto/create-subspace-proposal.js +12 -0
  257. package/dist/src/proto/create-subspace-proposal.js.map +1 -0
  258. package/dist/src/proto/edit.d.ts +9 -0
  259. package/dist/src/proto/edit.d.ts.map +1 -0
  260. package/dist/src/proto/edit.js +54 -0
  261. package/dist/src/proto/edit.js.map +1 -0
  262. package/dist/src/proto/edit.test.d.ts +2 -0
  263. package/dist/src/proto/edit.test.d.ts.map +1 -0
  264. package/dist/src/proto/edit.test.js +140 -0
  265. package/dist/src/proto/edit.test.js.map +1 -0
  266. package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts +404 -0
  267. package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts.map +1 -0
  268. package/dist/src/proto/gen/src/proto/ipfs_pb.js +602 -0
  269. package/dist/src/proto/gen/src/proto/ipfs_pb.js.map +1 -0
  270. package/dist/src/proto/index.d.ts +2 -0
  271. package/dist/src/proto/index.d.ts.map +1 -0
  272. package/dist/src/proto/index.js +2 -0
  273. package/dist/src/proto/index.js.map +1 -0
  274. package/dist/src/relation.d.ts +2 -0
  275. package/dist/src/relation.d.ts.map +1 -0
  276. package/dist/src/relation.js +2 -0
  277. package/dist/src/relation.js.map +1 -0
  278. package/dist/src/scheme.d.ts +2 -0
  279. package/dist/src/scheme.d.ts.map +1 -0
  280. package/dist/src/scheme.js +2 -0
  281. package/dist/src/scheme.js.map +1 -0
  282. package/dist/src/system-ids.d.ts +4 -0
  283. package/dist/src/system-ids.d.ts.map +1 -0
  284. package/dist/src/system-ids.js +4 -0
  285. package/dist/src/system-ids.js.map +1 -0
  286. package/dist/src/triple.d.ts +2 -0
  287. package/dist/src/triple.d.ts.map +1 -0
  288. package/dist/src/triple.js +2 -0
  289. package/dist/src/triple.js.map +1 -0
  290. package/dist/src/types.d.ts +86 -0
  291. package/dist/src/types.d.ts.map +1 -0
  292. package/dist/src/types.js +13 -0
  293. package/dist/src/types.js.map +1 -0
  294. package/dist/tsconfig.tsbuildinfo +1 -0
  295. package/package.json +47 -0
@@ -0,0 +1,62 @@
1
+ export const BASE58_ALLOWED_CHARS = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
2
+ /**
3
+ * Base58 encodes the given string value.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { v4 as uuidv4 } from "uuid";
8
+ *
9
+ * const uuid = uuidv4(); // 92539817-7989-4083-ab80-e9c2b2b66669
10
+ * const dashesRemoved = uuid.replaceAll(/-/g, ""); // 9253981779894083ab80e9c2b2b66669
11
+ * const encoded = encodeBase58(dashesRemoved)
12
+ * console.log(encoded) // K51CbDqxW35osbjPo5ZF77
13
+ * ```
14
+ *
15
+ * @param val string to encode as base58
16
+ * @returns the base58 encoded string
17
+ */
18
+ export function encodeBase58(val) {
19
+ const hex = BigInt(`0x${val}`);
20
+ let remainder = hex;
21
+ const result = []; // Use an array to store encoded characters
22
+ while (remainder > 0n) {
23
+ const mod = remainder % 58n;
24
+ const base58CharAtMod = BASE58_ALLOWED_CHARS[Number(mod)];
25
+ if (base58CharAtMod) {
26
+ result.push(base58CharAtMod);
27
+ }
28
+ remainder = remainder / 58n;
29
+ }
30
+ // Reverse and join the array to get the final Base58 encoded string
31
+ return result.reverse().join('');
32
+ }
33
+ /**
34
+ * Expand the base58 encoded UUID back to its original UUID format
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const uuid = 92539817-7989-4083-ab80-e9c2b2b66669;
39
+ * const encoded = encodeBase58(dashesRemoved); // K51CbDqxW35osbjPo5ZF77
40
+ * const decoded = decodeBase58ToUUID(encoded); // 92539817-7989-4083-ab80-e9c2b2b66669
41
+ *
42
+ * expect(decoded).toEqual(uuid);
43
+ * ```
44
+ *
45
+ * @param encoded base58 encoded UUID
46
+ * @returns the expanded UUID from the base58 encoded value
47
+ */
48
+ export function decodeBase58ToUUID(encoded) {
49
+ let decoded = 0n;
50
+ for (const char of encoded) {
51
+ const index = BASE58_ALLOWED_CHARS.indexOf(char);
52
+ if (index === -1) {
53
+ throw new Error('Invalid Base58 character');
54
+ }
55
+ decoded = decoded * 58n + BigInt(index);
56
+ }
57
+ // Convert the bigint to a hex string, padded to 32 characters
58
+ let hexStr = decoded.toString(16);
59
+ hexStr = hexStr.padStart(32, '0'); // Ensure it is 32 characters
60
+ return [hexStr.slice(0, 8), hexStr.slice(8, 12), hexStr.slice(12, 16), hexStr.slice(16, 20), hexStr.slice(20)].join('-');
61
+ }
62
+ //# sourceMappingURL=base58.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base58.js","sourceRoot":"","sources":["../../../src/core/base58.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,4DAA4D,CAAC;AAIjG;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;IAC/B,IAAI,SAAS,GAAG,GAAG,CAAC;IACpB,MAAM,MAAM,GAAa,EAAE,CAAC,CAAC,2CAA2C;IAExE,OAAO,SAAS,GAAG,EAAE,EAAE,CAAC;QACtB,MAAM,GAAG,GAAG,SAAS,GAAG,GAAG,CAAC;QAC5B,MAAM,eAAe,GAAG,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,IAAI,eAAe,EAAE,CAAC;YACpB,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC/B,CAAC;QACD,SAAS,GAAG,SAAS,GAAG,GAAG,CAAC;IAC9B,CAAC;IAED,oEAAoE;IACpE,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC;AAID;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,IAAI,OAAO,GAAG,EAAE,CAAC;IAEjB,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC3B,MAAM,KAAK,GAAG,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,GAAG,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,8DAA8D;IAC9D,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClC,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,6BAA6B;IAEhE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CACjH,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=base58.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base58.test.d.ts","sourceRoot":"","sources":["../../../src/core/base58.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { v4 } from 'uuid';
2
+ import { describe, expect, it } from 'vitest';
3
+ import { decodeBase58ToUUID, encodeBase58 } from './base58.js';
4
+ describe('base58', () => {
5
+ it('should be able to encoded a UUID to base58 and then decode it back to its original UUID', () => {
6
+ const expected = v4();
7
+ const given = expected.replaceAll(/-/g, '');
8
+ const encoded = encodeBase58(given);
9
+ expect(encoded).toHaveLength(22);
10
+ const decoded = decodeBase58ToUUID(encoded);
11
+ expect(decoded).toHaveLength(expected.length);
12
+ expect(decoded).toEqual(expected);
13
+ });
14
+ });
15
+ //# sourceMappingURL=base58.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base58.test.js","sourceRoot":"","sources":["../../../src/core/base58.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,yFAAyF,EAAE,GAAG,EAAE;QACjG,MAAM,QAAQ,GAAG,EAAE,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAE5C,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QACpC,MAAM,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QAEjC,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { CreateRelationOp, SetTripleOp } from '../../types.js';
2
+ type DataBlockSourceType = 'QUERY' | 'COLLECTION' | 'GEO';
3
+ type DataBlockArgs = {
4
+ fromId: string;
5
+ sourceType: DataBlockSourceType;
6
+ position?: string;
7
+ name?: string;
8
+ };
9
+ export declare function make({ fromId, sourceType, position, name }: DataBlockArgs): (SetTripleOp | CreateRelationOp)[];
10
+ export {};
11
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/core/blocks/data.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEpE,KAAK,mBAAmB,GAAG,OAAO,GAAG,YAAY,GAAG,KAAK,CAAC;AAa1D,KAAK,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3G,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,aAAa,GAAG,CAAC,WAAW,GAAG,gBAAgB,CAAC,EAAE,CAuC9G"}
@@ -0,0 +1,48 @@
1
+ import { make as makeId } from '../../id.js';
2
+ import { Relation } from '../../relation.js';
3
+ import { SYSTEM_IDS } from '../../system-ids.js';
4
+ function getSourceTypeId(sourceType) {
5
+ switch (sourceType) {
6
+ case 'COLLECTION':
7
+ return SYSTEM_IDS.COLLECTION_DATA_SOURCE;
8
+ case 'GEO':
9
+ return SYSTEM_IDS.ALL_OF_GEO_DATA_SOURCE;
10
+ case 'QUERY':
11
+ return SYSTEM_IDS.QUERY_DATA_SOURCE;
12
+ }
13
+ }
14
+ export function make({ fromId, sourceType, position, name }) {
15
+ const newBlockId = makeId();
16
+ const dataBlockType = Relation.make({
17
+ fromId: newBlockId,
18
+ relationTypeId: SYSTEM_IDS.TYPES_ATTRIBUTE,
19
+ toId: SYSTEM_IDS.DATA_BLOCK,
20
+ });
21
+ const dataBlockSourceType = Relation.make({
22
+ fromId: newBlockId,
23
+ relationTypeId: SYSTEM_IDS.DATA_SOURCE_TYPE_RELATION_TYPE,
24
+ toId: getSourceTypeId(sourceType),
25
+ });
26
+ const dataBlockRelation = Relation.make({
27
+ fromId,
28
+ relationTypeId: SYSTEM_IDS.BLOCKS,
29
+ toId: newBlockId,
30
+ position,
31
+ });
32
+ const ops = [dataBlockType, dataBlockSourceType, dataBlockRelation];
33
+ if (name) {
34
+ ops.push({
35
+ type: 'SET_TRIPLE',
36
+ triple: {
37
+ attribute: SYSTEM_IDS.NAME_ATTRIBUTE,
38
+ entity: newBlockId,
39
+ value: {
40
+ type: 'TEXT',
41
+ value: name,
42
+ },
43
+ },
44
+ });
45
+ }
46
+ return ops;
47
+ }
48
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/core/blocks/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKjD,SAAS,eAAe,CAAC,UAA+B;IACtD,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,YAAY;YACf,OAAO,UAAU,CAAC,sBAAsB,CAAC;QAC3C,KAAK,KAAK;YACR,OAAO,UAAU,CAAC,sBAAsB,CAAC;QAC3C,KAAK,OAAO;YACV,OAAO,UAAU,CAAC,iBAAiB,CAAC;IACxC,CAAC;AACH,CAAC;AAID,MAAM,UAAU,IAAI,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAiB;IACxE,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;IAE5B,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC;QAClC,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE,UAAU,CAAC,eAAe;QAC1C,IAAI,EAAE,UAAU,CAAC,UAAU;KAC5B,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC;QACxC,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE,UAAU,CAAC,8BAA8B;QACzD,IAAI,EAAE,eAAe,CAAC,UAAU,CAAC;KAClC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC;QACtC,MAAM;QACN,cAAc,EAAE,UAAU,CAAC,MAAM;QACjC,IAAI,EAAE,UAAU;QAChB,QAAQ;KACT,CAAC,CAAC;IAEH,MAAM,GAAG,GAAuC,CAAC,aAAa,EAAE,mBAAmB,EAAE,iBAAiB,CAAC,CAAC;IAExG,IAAI,IAAI,EAAE,CAAC;QACT,GAAG,CAAC,IAAI,CAAC;YACP,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE;gBACN,SAAS,EAAE,UAAU,CAAC,cAAc;gBACpC,MAAM,EAAE,UAAU;gBAClB,KAAK,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,IAAI;iBACZ;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Image entities and Image Blocks are functionally the same thing. The
3
+ * relation consuming the entity is what gives it contextual meaning. e.g.,
4
+ * if the Image is consumed by an Avatar relation, then we know the image
5
+ * is an avatar. If it's consumed by a Block relation, then we know the
6
+ * image is a block.
7
+ */
8
+ export { make } from '../image.js';
9
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/core/blocks/image.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Image entities and Image Blocks are functionally the same thing. The
3
+ * relation consuming the entity is what gives it contextual meaning. e.g.,
4
+ * if the Image is consumed by an Avatar relation, then we know the image
5
+ * is an avatar. If it's consumed by a Block relation, then we know the
6
+ * image is a block.
7
+ */
8
+ export { make } from '../image.js';
9
+ //# sourceMappingURL=image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.js","sourceRoot":"","sources":["../../../../src/core/blocks/image.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Op } from '../../types.js';
2
+ type TextBlockArgs = {
3
+ fromId: string;
4
+ text: string;
5
+ position?: string;
6
+ };
7
+ export declare function make({ fromId, text, position }: TextBlockArgs): Op[];
8
+ export {};
9
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/core/blocks/text.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEzC,KAAK,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,aAAa,GAAG,EAAE,EAAE,CA6BpE"}
@@ -0,0 +1,30 @@
1
+ import { make as makeId } from '../../id.js';
2
+ import { Relation } from '../../relation.js';
3
+ import { SYSTEM_IDS } from '../../system-ids.js';
4
+ export function make({ fromId, text, position }) {
5
+ const newBlockId = makeId();
6
+ const textBlockType = Relation.make({
7
+ fromId: newBlockId,
8
+ relationTypeId: SYSTEM_IDS.TYPES_ATTRIBUTE,
9
+ toId: SYSTEM_IDS.TEXT_BLOCK,
10
+ });
11
+ const textBlockMarkdownText = {
12
+ type: 'SET_TRIPLE',
13
+ triple: {
14
+ attribute: SYSTEM_IDS.MARKDOWN_CONTENT,
15
+ entity: newBlockId,
16
+ value: {
17
+ type: 'TEXT',
18
+ value: text,
19
+ },
20
+ },
21
+ };
22
+ const textBlockRelation = Relation.make({
23
+ fromId,
24
+ relationTypeId: SYSTEM_IDS.BLOCKS,
25
+ toId: newBlockId,
26
+ position,
27
+ });
28
+ return [textBlockType, textBlockMarkdownText, textBlockRelation];
29
+ }
30
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/core/blocks/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKjD,MAAM,UAAU,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAiB;IAC5D,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;IAE5B,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC;QAClC,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE,UAAU,CAAC,eAAe;QAC1C,IAAI,EAAE,UAAU,CAAC,UAAU;KAC5B,CAAC,CAAC;IAEH,MAAM,qBAAqB,GAAG;QAC5B,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE;YACN,SAAS,EAAE,UAAU,CAAC,gBAAgB;YACtC,MAAM,EAAE,UAAU;YAClB,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,IAAI;aACZ;SACF;KACO,CAAC;IAEX,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC;QACtC,MAAM;QACN,cAAc,EAAE,UAAU,CAAC,MAAM;QACjC,IAAI,EAAE,UAAU;QAChB,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,CAAC,aAAa,EAAE,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;AACnE,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Different implementations of the address across wallet libraries and
3
+ * ethereum clients don't always return the same address checksum.
4
+ *
5
+ * We map addresses in the sink to the checksum address. This ensures we
6
+ * have consistent addresses throughout the data service and also aligns
7
+ * with how addresses are represented on Polygonscan.
8
+ */
9
+ export declare function getChecksumAddress(address: string): `0x${string}`;
10
+ //# sourceMappingURL=get-checksum-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-checksum-address.d.ts","sourceRoot":"","sources":["../../../src/core/get-checksum-address.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CASjE"}
@@ -0,0 +1,20 @@
1
+ import { getAddress } from 'viem';
2
+ /**
3
+ * Different implementations of the address across wallet libraries and
4
+ * ethereum clients don't always return the same address checksum.
5
+ *
6
+ * We map addresses in the sink to the checksum address. This ensures we
7
+ * have consistent addresses throughout the data service and also aligns
8
+ * with how addresses are represented on Polygonscan.
9
+ */
10
+ export function getChecksumAddress(address) {
11
+ /**
12
+ * Using the polygon chain id (137) seems to checksum the address
13
+ * differently than what you get on polygonscan. If we don't specify
14
+ * the chain id, we get the correct polygonscan result :shrug:
15
+ *
16
+ * return getAddress(address, 137); // returns the wrong checksum
17
+ */
18
+ return getAddress(address);
19
+ }
20
+ //# sourceMappingURL=get-checksum-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-checksum-address.js","sourceRoot":"","sources":["../../../src/core/get-checksum-address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD;;;;;;OAMG;IACH,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,59 @@
1
+ export declare const ARTICLE_TYPE = "M5uDP7nCw3nvfQPUryn9gx";
2
+ export declare const CITY_TYPE = "D6Wy4bdtdoUrG3PDZceHr";
3
+ export declare const CLAIM_TYPE = "KeG9eTM8NUYFMAjnsvF4Dg";
4
+ export declare const CONTINENT_TYPE = "7Jw6Y3vd3SnMCXs2a9MYGu";
5
+ export declare const COUNTRY_TYPE = "9ECA63EvqWhaoPvbD13ebf";
6
+ export declare const GOAL_TYPE = "3zr6t9YRRjX7cgSmzgibf8";
7
+ export declare const JOB_TYPE = "CCiz2ejCzg5xZuskLD8vda";
8
+ export declare const NEWS_EVENT_TYPE = "QAdjgcq9nD7Gv98vn2vrDd";
9
+ export declare const NEWS_STORY_TYPE = "VKPGYGnFuaoAASiAukCVCX";
10
+ export declare const POLICY_TYPE = "GhaWkvDmMT6KiZTDxRLMXK";
11
+ export declare const PUBLISHER_TYPE = "BGCj2JLjDjqUmGW6iZaANK";
12
+ export declare const QUOTE_TYPE = "XGsAzMuCVXPtV8e6UfMLd";
13
+ export declare const REGION_TYPE = "Qu6vfQq68ecZ4PkihJ4nZN";
14
+ export declare const SKILL_TYPE = "LLx1gxshUy1TFKnSKVG9W6";
15
+ export declare const TAG_TYPE = "UnP1LtXV3EhrhvRADFcMZK";
16
+ export declare const TOPIC_TYPE = "Cj7JSjWKbcdgmUjcLWNR4V";
17
+ export declare const AVATAR_ATTRIBUTE = "399xP4sGWSoepxeEnp3UdR";
18
+ export declare const BROADER_GOALS_ATTRIBUTE = "EtNH2yJmrEK1Mcv7S5MjPN";
19
+ export declare const SUBGOALS_ATTRIBUTE = "WX9xtsWqFPmAXcTBF833cF";
20
+ export declare const DISCLAIMER_ATTRIBUTE = "5zqNJMuTTPzYqhFFQFKJZ4";
21
+ export declare const EVENT_DATE_ATTRIBUTE = "BBA1894NztMD9dWyhiwcsU";
22
+ export declare const RELATED_PEOPLE_ATTRIBUTE = "Cc3AZqRReWs3Zk2W5ALtyw";
23
+ export declare const SKILLS_ATTRIBUTE = "MCCkmuwQ7PY1GFYpgcmSHv";
24
+ export declare const ROLES_ATTRIBUTE = "JkzhbbrXFMfXN7sduMKQRp";
25
+ export declare const HIGHLIGHTED_RELATED_ENTIRIES_ATTRIBUTE = "2HNV2qhhCt314qp6fUDYsJ";
26
+ export declare const PUBLISHER_ATTRIBUTE = "Lc4JrkpMUPhNstqs7mvnc5";
27
+ export declare const AUTHORS_ATTRIBUTE = "JzFpgguvcCaKhbQYPHsrNT";
28
+ export declare const WEB_ARCHIVE_URL_ATTRIBUTE = "BTNv9aAFqAzDjQuf4u2fXK";
29
+ export declare const PUBLISH_DATE_ATTRIBUTE = "KPNjGaLx5dKofVhT6Dfw22";
30
+ export declare const OWNERS_ATTRIBUTE = "RwDfM3vUvyLwSNYv6sWhc9";
31
+ export declare const SOURCES_ATTRIBUTE = "A7NJF2WPh8VhmvbfVWiyLo";
32
+ export declare const QUOTES_THAT_SUPPORT_CLAIMS_ATTRIBUTE = "quotesThatSupportClaims";
33
+ export declare const OPPOSING_ARGUMENTS_ATTRIBUTE = "Agk2hbiBWsgHVXxpFAc7z5";
34
+ export declare const SUPPORTING_ARGUMENTS_ATTRIBUTE = "4gFz5SYHWkBJoAANfCt61v";
35
+ export declare const WEBSITE_ATTRIBUTE = "WVVjk5okbvLspwdY1iTmwp";
36
+ export declare const BROADER_PROJECTS_ATTRIBUTE = "62X1RkFCmH7vC7WR4JzRrk";
37
+ export declare const SUBPROJECTS_ATTRIBUTE = "HCF2yGBEqcS8chspMNmoPY";
38
+ export declare const TOPICS_ATTRIBUTE = "9bCuX6B9KZDSaY8xtghNZo";
39
+ export declare const RELATED_ENTITIES_ATTRIBUTE = "UcouYcgu8qhine1WCXkZEb";
40
+ export declare const TAGS_ATTRIBUTE = "5d9VVey3wusmk98Uv3v5LM";
41
+ export declare const X_ATTRIBUTE = "2eroVfdaXQEUw314r5hr35";
42
+ export declare const CITIES_ATTRIBUTE = "5GBCRqS8HYqiBubFPy5aXk";
43
+ export declare const LOCATION_ATTRIBUTE = "KWBLj9czHBBmYUT98rnxVM";
44
+ export declare const WEB_URL_ATTRIBUTE = "93stf6cgYvBsdPruRzq1KK";
45
+ export declare const SUBTOPICS_ATTRIBUTE = "89cuddDgriDAZJV6oy8zmt";
46
+ export declare const RELATED_TOPICS_ATTRIBUTE = "GrojMdwbutDvrciUgcL2e4";
47
+ export declare const COUNTRIES_ATTRIBUTE = "RJNy4SeZSHMnpqXt3Jj5iM";
48
+ export declare const BROADER_TOPICS_ATTRIBUTE = "P9apCagMDXQVdjgAZftxU5";
49
+ export declare const RELATED_PROJECTS_ATTRIBUTE = "EcK9J1zwDzSQPTnBRcUg2A";
50
+ export declare const CONTINENTS_ATTRIBUTE = "4W6gL14KsToDLy5yUEdawU";
51
+ export declare const PERSON_ATTRIBUTE = "W2aFZPy5nnU3DgdkWJCNVn";
52
+ export declare const PROJECT_ATTRIBUTE = "V7XvcnLXtbj7T2rvdNtKid";
53
+ export declare const RELATED_SPACES_ATTRIBUTE = "CHwmK8bk4KMCqBNiV2waL9";
54
+ /**
55
+ * Migration 1
56
+ */
57
+ export declare const VALUE_TYPE = "Y1HG66QvvthrmL3dredT53";
58
+ export declare const PRINCIPLE_TYPE = "2tjghBgapq2CNRsUPMhZ5b";
59
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/core/ids/content.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,0BAA0B,CAAC;AACjD,eAAO,MAAM,UAAU,2BAA2B,CAAC;AACnD,eAAO,MAAM,cAAc,2BAA2B,CAAC;AACvD,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,2BAA2B,CAAC;AAClD,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AACjD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,WAAW,2BAA2B,CAAC;AACpD,eAAO,MAAM,cAAc,2BAA2B,CAAC;AACvD,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAClD,eAAO,MAAM,WAAW,2BAA2B,CAAC;AACpD,eAAO,MAAM,UAAU,2BAA2B,CAAC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;AAC1D,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AACjE,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AACjE,eAAO,MAAM,0BAA0B,2BAA2B,CAAC;AACnE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,eAAO,MAAM,iBAAiB,2BAA2B,CAAC;AAC1D,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,UAAU,2BAA2B,CAAC;AACnD,eAAO,MAAM,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,59 @@
1
+ export const ARTICLE_TYPE = 'M5uDP7nCw3nvfQPUryn9gx';
2
+ export const CITY_TYPE = 'D6Wy4bdtdoUrG3PDZceHr';
3
+ export const CLAIM_TYPE = 'KeG9eTM8NUYFMAjnsvF4Dg';
4
+ export const CONTINENT_TYPE = '7Jw6Y3vd3SnMCXs2a9MYGu';
5
+ export const COUNTRY_TYPE = '9ECA63EvqWhaoPvbD13ebf';
6
+ export const GOAL_TYPE = '3zr6t9YRRjX7cgSmzgibf8';
7
+ export const JOB_TYPE = 'CCiz2ejCzg5xZuskLD8vda';
8
+ export const NEWS_EVENT_TYPE = 'QAdjgcq9nD7Gv98vn2vrDd';
9
+ export const NEWS_STORY_TYPE = 'VKPGYGnFuaoAASiAukCVCX';
10
+ export const POLICY_TYPE = 'GhaWkvDmMT6KiZTDxRLMXK';
11
+ export const PUBLISHER_TYPE = 'BGCj2JLjDjqUmGW6iZaANK';
12
+ export const QUOTE_TYPE = 'XGsAzMuCVXPtV8e6UfMLd';
13
+ export const REGION_TYPE = 'Qu6vfQq68ecZ4PkihJ4nZN';
14
+ export const SKILL_TYPE = 'LLx1gxshUy1TFKnSKVG9W6';
15
+ export const TAG_TYPE = 'UnP1LtXV3EhrhvRADFcMZK';
16
+ export const TOPIC_TYPE = 'Cj7JSjWKbcdgmUjcLWNR4V';
17
+ export const AVATAR_ATTRIBUTE = '399xP4sGWSoepxeEnp3UdR';
18
+ export const BROADER_GOALS_ATTRIBUTE = 'EtNH2yJmrEK1Mcv7S5MjPN';
19
+ export const SUBGOALS_ATTRIBUTE = 'WX9xtsWqFPmAXcTBF833cF';
20
+ export const DISCLAIMER_ATTRIBUTE = '5zqNJMuTTPzYqhFFQFKJZ4';
21
+ export const EVENT_DATE_ATTRIBUTE = 'BBA1894NztMD9dWyhiwcsU';
22
+ export const RELATED_PEOPLE_ATTRIBUTE = 'Cc3AZqRReWs3Zk2W5ALtyw';
23
+ export const SKILLS_ATTRIBUTE = 'MCCkmuwQ7PY1GFYpgcmSHv';
24
+ export const ROLES_ATTRIBUTE = 'JkzhbbrXFMfXN7sduMKQRp';
25
+ export const HIGHLIGHTED_RELATED_ENTIRIES_ATTRIBUTE = '2HNV2qhhCt314qp6fUDYsJ';
26
+ export const PUBLISHER_ATTRIBUTE = 'Lc4JrkpMUPhNstqs7mvnc5';
27
+ export const AUTHORS_ATTRIBUTE = 'JzFpgguvcCaKhbQYPHsrNT';
28
+ export const WEB_ARCHIVE_URL_ATTRIBUTE = 'BTNv9aAFqAzDjQuf4u2fXK';
29
+ export const PUBLISH_DATE_ATTRIBUTE = 'KPNjGaLx5dKofVhT6Dfw22';
30
+ export const OWNERS_ATTRIBUTE = 'RwDfM3vUvyLwSNYv6sWhc9';
31
+ export const SOURCES_ATTRIBUTE = 'A7NJF2WPh8VhmvbfVWiyLo';
32
+ export const QUOTES_THAT_SUPPORT_CLAIMS_ATTRIBUTE = 'quotesThatSupportClaims';
33
+ export const OPPOSING_ARGUMENTS_ATTRIBUTE = 'Agk2hbiBWsgHVXxpFAc7z5';
34
+ export const SUPPORTING_ARGUMENTS_ATTRIBUTE = '4gFz5SYHWkBJoAANfCt61v';
35
+ export const WEBSITE_ATTRIBUTE = 'WVVjk5okbvLspwdY1iTmwp';
36
+ export const BROADER_PROJECTS_ATTRIBUTE = '62X1RkFCmH7vC7WR4JzRrk';
37
+ export const SUBPROJECTS_ATTRIBUTE = 'HCF2yGBEqcS8chspMNmoPY';
38
+ export const TOPICS_ATTRIBUTE = '9bCuX6B9KZDSaY8xtghNZo';
39
+ export const RELATED_ENTITIES_ATTRIBUTE = 'UcouYcgu8qhine1WCXkZEb';
40
+ export const TAGS_ATTRIBUTE = '5d9VVey3wusmk98Uv3v5LM';
41
+ export const X_ATTRIBUTE = '2eroVfdaXQEUw314r5hr35';
42
+ export const CITIES_ATTRIBUTE = '5GBCRqS8HYqiBubFPy5aXk';
43
+ export const LOCATION_ATTRIBUTE = 'KWBLj9czHBBmYUT98rnxVM';
44
+ export const WEB_URL_ATTRIBUTE = '93stf6cgYvBsdPruRzq1KK';
45
+ export const SUBTOPICS_ATTRIBUTE = '89cuddDgriDAZJV6oy8zmt';
46
+ export const RELATED_TOPICS_ATTRIBUTE = 'GrojMdwbutDvrciUgcL2e4';
47
+ export const COUNTRIES_ATTRIBUTE = 'RJNy4SeZSHMnpqXt3Jj5iM';
48
+ export const BROADER_TOPICS_ATTRIBUTE = 'P9apCagMDXQVdjgAZftxU5';
49
+ export const RELATED_PROJECTS_ATTRIBUTE = 'EcK9J1zwDzSQPTnBRcUg2A';
50
+ export const CONTINENTS_ATTRIBUTE = '4W6gL14KsToDLy5yUEdawU';
51
+ export const PERSON_ATTRIBUTE = 'W2aFZPy5nnU3DgdkWJCNVn';
52
+ export const PROJECT_ATTRIBUTE = 'V7XvcnLXtbj7T2rvdNtKid';
53
+ export const RELATED_SPACES_ATTRIBUTE = 'CHwmK8bk4KMCqBNiV2waL9';
54
+ /**
55
+ * Migration 1
56
+ */
57
+ export const VALUE_TYPE = 'Y1HG66QvvthrmL3dredT53';
58
+ export const PRINCIPLE_TYPE = '2tjghBgapq2CNRsUPMhZ5b';
59
+ //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,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AAC;AACjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAC5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AACjE,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AACnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAC7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AACzD,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAC1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AAEjE;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,CAAC;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/core/ids/generate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { createGeoId } from '~/src/id.js';
2
+ console.log('generating new id');
3
+ console.log(createGeoId());
4
+ //# sourceMappingURL=generate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/core/ids/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AACjC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const POLYGON = "ReFDxuVQ674gHd2kFjsFL";
2
+ export declare const ETHEREUM = "JnWfsCw2gqoPWFT1NXmFWW";
3
+ export declare const GEO = "KJjKetFsGVSbw9qFpRzRSy";
4
+ //# sourceMappingURL=network.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../../src/core/ids/network.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,0BAA0B,CAAC;AAC/C,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AACjD,eAAO,MAAM,GAAG,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export const POLYGON = 'ReFDxuVQ674gHd2kFjsFL';
2
+ export const ETHEREUM = 'JnWfsCw2gqoPWFT1NXmFWW';
3
+ export const GEO = 'KJjKetFsGVSbw9qFpRzRSy';
4
+ //# sourceMappingURL=network.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.js","sourceRoot":"","sources":["../../../../src/core/ids/network.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAC/C,MAAM,CAAC,MAAM,QAAQ,GAAG,wBAAwB,CAAC;AACjD,MAAM,CAAC,MAAM,GAAG,GAAG,wBAAwB,CAAC"}