@bayybays/stacksone-sdk 1.0.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 (435) hide show
  1. package/.github/workflows/clarinet.yaml +33 -0
  2. package/README.md +444 -0
  3. package/docs/ARCHITECTURE.md +69 -0
  4. package/docs/CONTRACT_REGISTRY.md +11 -0
  5. package/docs/MODULE_OVERVIEW.md +38 -0
  6. package/docs/ROADMAP_Q1_2026.md +21 -0
  7. package/docs/SECURITY.md +47 -0
  8. package/docs/devlog.md +925 -0
  9. package/docs/notes.md +5 -0
  10. package/eslint.config.js +29 -0
  11. package/index.html +24 -0
  12. package/nonce.txt +1 -0
  13. package/nonce_store/nonce_1.txt +1 -0
  14. package/nonce_store/nonce_10.txt +1 -0
  15. package/nonce_store/nonce_2.txt +1 -0
  16. package/nonce_store/nonce_3.txt +1 -0
  17. package/nonce_store/nonce_4.txt +1 -0
  18. package/nonce_store/nonce_5.txt +1 -0
  19. package/nonce_store/nonce_6.txt +1 -0
  20. package/nonce_store/nonce_7.txt +1 -0
  21. package/nonce_store/nonce_8.txt +1 -0
  22. package/nonce_store/nonce_9.txt +1 -0
  23. package/package.json +62 -0
  24. package/package.json.save +60 -0
  25. package/postcss.config.js +6 -0
  26. package/public/logo.png +0 -0
  27. package/public/vite.svg +1 -0
  28. package/smart-contracts/.gitattributes +3 -0
  29. package/smart-contracts/.vscode/settings.json +4 -0
  30. package/smart-contracts/.vscode/tasks.json +19 -0
  31. package/smart-contracts/Clarinet.toml +11 -0
  32. package/smart-contracts/Mainnet.toml +5 -0
  33. package/smart-contracts/contracts/chaintap.clar +200 -0
  34. package/smart-contracts/contracts/contract-0.clar +35 -0
  35. package/smart-contracts/contracts/contract-1.clar +26 -0
  36. package/smart-contracts/contracts/contract-10.clar +31 -0
  37. package/smart-contracts/contracts/contract-12.clar +50 -0
  38. package/smart-contracts/contracts/contract-13.clar +25 -0
  39. package/smart-contracts/contracts/contract-14.clar +14 -0
  40. package/smart-contracts/contracts/contract-15.clar +20 -0
  41. package/smart-contracts/contracts/contract-16.clar +22 -0
  42. package/smart-contracts/contracts/contract-17.clar +23 -0
  43. package/smart-contracts/contracts/contract-18.clar +30 -0
  44. package/smart-contracts/contracts/contract-19.clar +49 -0
  45. package/smart-contracts/contracts/contract-2.clar +34 -0
  46. package/smart-contracts/contracts/contract-20.clar +7 -0
  47. package/smart-contracts/contracts/contract-21.clar +17 -0
  48. package/smart-contracts/contracts/contract-22.clar +23 -0
  49. package/smart-contracts/contracts/contract-23.clar +41 -0
  50. package/smart-contracts/contracts/contract-24.clar +30 -0
  51. package/smart-contracts/contracts/contract-28.clar +34 -0
  52. package/smart-contracts/contracts/contract-3.clar +36 -0
  53. package/smart-contracts/contracts/contract-30.clar +21 -0
  54. package/smart-contracts/contracts/contract-32.clar +26 -0
  55. package/smart-contracts/contracts/contract-33.clar +43 -0
  56. package/smart-contracts/contracts/contract-34.clar +29 -0
  57. package/smart-contracts/contracts/contract-35.clar +17 -0
  58. package/smart-contracts/contracts/contract-36.clar +47 -0
  59. package/smart-contracts/contracts/contract-37.clar +33 -0
  60. package/smart-contracts/contracts/contract-38.clar +26 -0
  61. package/smart-contracts/contracts/contract-4.clar +16 -0
  62. package/smart-contracts/contracts/contract-40.clar +19 -0
  63. package/smart-contracts/contracts/contract-42.clar +26 -0
  64. package/smart-contracts/contracts/contract-43.clar +23 -0
  65. package/smart-contracts/contracts/contract-44.clar +47 -0
  66. package/smart-contracts/contracts/contract-45.clar +32 -0
  67. package/smart-contracts/contracts/contract-46.clar +31 -0
  68. package/smart-contracts/contracts/contract-47.clar +33 -0
  69. package/smart-contracts/contracts/contract-48.clar +16 -0
  70. package/smart-contracts/contracts/contract-49.clar +36 -0
  71. package/smart-contracts/contracts/contract-5.clar +17 -0
  72. package/smart-contracts/contracts/contract-6.clar +52 -0
  73. package/smart-contracts/contracts/contract-7.clar +6 -0
  74. package/smart-contracts/contracts/contract-8.clar +27 -0
  75. package/smart-contracts/contracts/faucet-distributor-v2.clar +133 -0
  76. package/smart-contracts/contracts/faucet-distributor-v3.clar +129 -0
  77. package/smart-contracts/contracts/faucet-distributor-v4.clar +86 -0
  78. package/smart-contracts/contracts/faucet-distributor-v5.clar +90 -0
  79. package/smart-contracts/contracts/faucet-distributor-v6.clar +123 -0
  80. package/smart-contracts/contracts/faucet-distributor-v7.clar +88 -0
  81. package/smart-contracts/contracts/faucet-distributor.clar +64 -0
  82. package/smart-contracts/contracts/genesis-0.clar +297 -0
  83. package/smart-contracts/contracts/genesis-1.clar +342 -0
  84. package/smart-contracts/contracts/genesis-2.clar +297 -0
  85. package/smart-contracts/contracts/genesis-3.clar +282 -0
  86. package/smart-contracts/contracts/genesis-4.clar +291 -0
  87. package/smart-contracts/contracts/genesis-5.clar +276 -0
  88. package/smart-contracts/contracts/genesis-6.clar +273 -0
  89. package/smart-contracts/contracts/genesis-7.clar +261 -0
  90. package/smart-contracts/contracts/genesis-8.clar +279 -0
  91. package/smart-contracts/contracts/genesis-9.clar +288 -0
  92. package/smart-contracts/contracts/genesis-ascension-v1.clar +54 -0
  93. package/smart-contracts/contracts/genesis-badges-v10.clar +72 -0
  94. package/smart-contracts/contracts/genesis-badges-v4.clar +66 -0
  95. package/smart-contracts/contracts/genesis-badges-v5.clar +66 -0
  96. package/smart-contracts/contracts/genesis-badges-v8.clar +88 -0
  97. package/smart-contracts/contracts/genesis-badges-v9.clar +66 -0
  98. package/smart-contracts/contracts/genesis-badges.clar +73 -0
  99. package/smart-contracts/contracts/genesis-boost-v1.clar +58 -0
  100. package/smart-contracts/contracts/genesis-core-v10.clar +87 -0
  101. package/smart-contracts/contracts/genesis-core-v2.clar +86 -0
  102. package/smart-contracts/contracts/genesis-core-v4.clar +80 -0
  103. package/smart-contracts/contracts/genesis-core-v5.clar +86 -0
  104. package/smart-contracts/contracts/genesis-core-v6.clar +98 -0
  105. package/smart-contracts/contracts/genesis-core-v8.clar +106 -0
  106. package/smart-contracts/contracts/genesis-core-v9.clar +80 -0
  107. package/smart-contracts/contracts/genesis-core.clar +93 -0
  108. package/smart-contracts/contracts/genesis-missions-v4.clar +104 -0
  109. package/smart-contracts/contracts/genesis-missions-v5.clar +86 -0
  110. package/smart-contracts/contracts/genesis-missions-v6.clar +80 -0
  111. package/smart-contracts/contracts/genesis-missions-v8.clar +81 -0
  112. package/smart-contracts/contracts/genesis-missions-v9.clar +73 -0
  113. package/smart-contracts/contracts/genesis-missions.clar +68 -0
  114. package/smart-contracts/contracts/mission-mini-001.clar +32 -0
  115. package/smart-contracts/contracts/mission-mini-002.clar +42 -0
  116. package/smart-contracts/contracts/mission-mini-003.clar +39 -0
  117. package/smart-contracts/contracts/mission-mini-004.clar +39 -0
  118. package/smart-contracts/contracts/mission-mini-005.clar +36 -0
  119. package/smart-contracts/contracts/modules/genesis-badge-lite-v1.clar +17 -0
  120. package/smart-contracts/contracts/modules/genesis-counter-v1.clar +21 -0
  121. package/smart-contracts/contracts/modules/genesis-duel-v1.clar +16 -0
  122. package/smart-contracts/contracts/modules/genesis-flag-v1.clar +21 -0
  123. package/smart-contracts/contracts/modules/genesis-leaderboard-v1.clar +88 -0
  124. package/smart-contracts/contracts/modules/genesis-lucky-v1.clar +16 -0
  125. package/smart-contracts/contracts/modules/genesis-points-v1.clar +21 -0
  126. package/smart-contracts/contracts/modules/genesis-predict-v1.clar +14 -0
  127. package/smart-contracts/contracts/modules/genesis-score-lite-v1.clar +21 -0
  128. package/smart-contracts/contracts/modules/module-1.clar +2 -0
  129. package/smart-contracts/contracts/modules/module-10.clar +2 -0
  130. package/smart-contracts/contracts/modules/module-100.clar +2 -0
  131. package/smart-contracts/contracts/modules/module-101.clar +2 -0
  132. package/smart-contracts/contracts/modules/module-102.clar +2 -0
  133. package/smart-contracts/contracts/modules/module-103.clar +2 -0
  134. package/smart-contracts/contracts/modules/module-104.clar +2 -0
  135. package/smart-contracts/contracts/modules/module-105.clar +2 -0
  136. package/smart-contracts/contracts/modules/module-106.clar +2 -0
  137. package/smart-contracts/contracts/modules/module-107.clar +2 -0
  138. package/smart-contracts/contracts/modules/module-108.clar +2 -0
  139. package/smart-contracts/contracts/modules/module-109.clar +2 -0
  140. package/smart-contracts/contracts/modules/module-11.clar +2 -0
  141. package/smart-contracts/contracts/modules/module-110.clar +2 -0
  142. package/smart-contracts/contracts/modules/module-111.clar +2 -0
  143. package/smart-contracts/contracts/modules/module-112.clar +2 -0
  144. package/smart-contracts/contracts/modules/module-113.clar +2 -0
  145. package/smart-contracts/contracts/modules/module-114.clar +2 -0
  146. package/smart-contracts/contracts/modules/module-115.clar +2 -0
  147. package/smart-contracts/contracts/modules/module-116.clar +2 -0
  148. package/smart-contracts/contracts/modules/module-117.clar +2 -0
  149. package/smart-contracts/contracts/modules/module-118.clar +2 -0
  150. package/smart-contracts/contracts/modules/module-119.clar +2 -0
  151. package/smart-contracts/contracts/modules/module-12.clar +2 -0
  152. package/smart-contracts/contracts/modules/module-120.clar +2 -0
  153. package/smart-contracts/contracts/modules/module-121.clar +2 -0
  154. package/smart-contracts/contracts/modules/module-122.clar +2 -0
  155. package/smart-contracts/contracts/modules/module-123.clar +2 -0
  156. package/smart-contracts/contracts/modules/module-124.clar +2 -0
  157. package/smart-contracts/contracts/modules/module-125.clar +2 -0
  158. package/smart-contracts/contracts/modules/module-126.clar +2 -0
  159. package/smart-contracts/contracts/modules/module-127.clar +2 -0
  160. package/smart-contracts/contracts/modules/module-128.clar +2 -0
  161. package/smart-contracts/contracts/modules/module-129.clar +2 -0
  162. package/smart-contracts/contracts/modules/module-13.clar +2 -0
  163. package/smart-contracts/contracts/modules/module-130.clar +2 -0
  164. package/smart-contracts/contracts/modules/module-131.clar +2 -0
  165. package/smart-contracts/contracts/modules/module-132.clar +2 -0
  166. package/smart-contracts/contracts/modules/module-133.clar +2 -0
  167. package/smart-contracts/contracts/modules/module-134.clar +2 -0
  168. package/smart-contracts/contracts/modules/module-135.clar +2 -0
  169. package/smart-contracts/contracts/modules/module-136.clar +2 -0
  170. package/smart-contracts/contracts/modules/module-137.clar +2 -0
  171. package/smart-contracts/contracts/modules/module-138.clar +2 -0
  172. package/smart-contracts/contracts/modules/module-14.clar +2 -0
  173. package/smart-contracts/contracts/modules/module-140.clar +2 -0
  174. package/smart-contracts/contracts/modules/module-141.clar +2 -0
  175. package/smart-contracts/contracts/modules/module-142.clar +2 -0
  176. package/smart-contracts/contracts/modules/module-143.clar +2 -0
  177. package/smart-contracts/contracts/modules/module-144.clar +2 -0
  178. package/smart-contracts/contracts/modules/module-145.clar +2 -0
  179. package/smart-contracts/contracts/modules/module-146.clar +2 -0
  180. package/smart-contracts/contracts/modules/module-147.clar +2 -0
  181. package/smart-contracts/contracts/modules/module-148.clar +2 -0
  182. package/smart-contracts/contracts/modules/module-149.clar +2 -0
  183. package/smart-contracts/contracts/modules/module-15.clar +2 -0
  184. package/smart-contracts/contracts/modules/module-150.clar +2 -0
  185. package/smart-contracts/contracts/modules/module-152.clar +2 -0
  186. package/smart-contracts/contracts/modules/module-153.clar +2 -0
  187. package/smart-contracts/contracts/modules/module-154.clar +2 -0
  188. package/smart-contracts/contracts/modules/module-156.clar +2 -0
  189. package/smart-contracts/contracts/modules/module-157.clar +2 -0
  190. package/smart-contracts/contracts/modules/module-158.clar +2 -0
  191. package/smart-contracts/contracts/modules/module-159.clar +2 -0
  192. package/smart-contracts/contracts/modules/module-16.clar +2 -0
  193. package/smart-contracts/contracts/modules/module-160.clar +2 -0
  194. package/smart-contracts/contracts/modules/module-161.clar +2 -0
  195. package/smart-contracts/contracts/modules/module-162.clar +2 -0
  196. package/smart-contracts/contracts/modules/module-163.clar +2 -0
  197. package/smart-contracts/contracts/modules/module-164.clar +2 -0
  198. package/smart-contracts/contracts/modules/module-165.clar +2 -0
  199. package/smart-contracts/contracts/modules/module-166.clar +2 -0
  200. package/smart-contracts/contracts/modules/module-167.clar +2 -0
  201. package/smart-contracts/contracts/modules/module-168.clar +2 -0
  202. package/smart-contracts/contracts/modules/module-169.clar +2 -0
  203. package/smart-contracts/contracts/modules/module-17.clar +2 -0
  204. package/smart-contracts/contracts/modules/module-171.clar +2 -0
  205. package/smart-contracts/contracts/modules/module-172.clar +2 -0
  206. package/smart-contracts/contracts/modules/module-173.clar +2 -0
  207. package/smart-contracts/contracts/modules/module-174.clar +2 -0
  208. package/smart-contracts/contracts/modules/module-175.clar +2 -0
  209. package/smart-contracts/contracts/modules/module-176.clar +2 -0
  210. package/smart-contracts/contracts/modules/module-178.clar +2 -0
  211. package/smart-contracts/contracts/modules/module-179.clar +2 -0
  212. package/smart-contracts/contracts/modules/module-18.clar +2 -0
  213. package/smart-contracts/contracts/modules/module-180.clar +2 -0
  214. package/smart-contracts/contracts/modules/module-181.clar +2 -0
  215. package/smart-contracts/contracts/modules/module-182.clar +2 -0
  216. package/smart-contracts/contracts/modules/module-183.clar +2 -0
  217. package/smart-contracts/contracts/modules/module-184.clar +2 -0
  218. package/smart-contracts/contracts/modules/module-186.clar +2 -0
  219. package/smart-contracts/contracts/modules/module-188.clar +2 -0
  220. package/smart-contracts/contracts/modules/module-189.clar +2 -0
  221. package/smart-contracts/contracts/modules/module-19.clar +2 -0
  222. package/smart-contracts/contracts/modules/module-190.clar +2 -0
  223. package/smart-contracts/contracts/modules/module-191.clar +2 -0
  224. package/smart-contracts/contracts/modules/module-192.clar +2 -0
  225. package/smart-contracts/contracts/modules/module-193.clar +2 -0
  226. package/smart-contracts/contracts/modules/module-195.clar +2 -0
  227. package/smart-contracts/contracts/modules/module-196.clar +2 -0
  228. package/smart-contracts/contracts/modules/module-197.clar +2 -0
  229. package/smart-contracts/contracts/modules/module-198.clar +2 -0
  230. package/smart-contracts/contracts/modules/module-199.clar +2 -0
  231. package/smart-contracts/contracts/modules/module-2.clar +2 -0
  232. package/smart-contracts/contracts/modules/module-20.clar +2 -0
  233. package/smart-contracts/contracts/modules/module-200.clar +2 -0
  234. package/smart-contracts/contracts/modules/module-201.clar +2 -0
  235. package/smart-contracts/contracts/modules/module-202.clar +2 -0
  236. package/smart-contracts/contracts/modules/module-203.clar +2 -0
  237. package/smart-contracts/contracts/modules/module-204.clar +2 -0
  238. package/smart-contracts/contracts/modules/module-205.clar +2 -0
  239. package/smart-contracts/contracts/modules/module-207.clar +2 -0
  240. package/smart-contracts/contracts/modules/module-209.clar +2 -0
  241. package/smart-contracts/contracts/modules/module-21.clar +2 -0
  242. package/smart-contracts/contracts/modules/module-210.clar +2 -0
  243. package/smart-contracts/contracts/modules/module-212.clar +2 -0
  244. package/smart-contracts/contracts/modules/module-213.clar +2 -0
  245. package/smart-contracts/contracts/modules/module-215.clar +2 -0
  246. package/smart-contracts/contracts/modules/module-216.clar +2 -0
  247. package/smart-contracts/contracts/modules/module-218.clar +2 -0
  248. package/smart-contracts/contracts/modules/module-219.clar +2 -0
  249. package/smart-contracts/contracts/modules/module-22.clar +2 -0
  250. package/smart-contracts/contracts/modules/module-222.clar +2 -0
  251. package/smart-contracts/contracts/modules/module-223.clar +2 -0
  252. package/smart-contracts/contracts/modules/module-224.clar +2 -0
  253. package/smart-contracts/contracts/modules/module-226.clar +2 -0
  254. package/smart-contracts/contracts/modules/module-227.clar +2 -0
  255. package/smart-contracts/contracts/modules/module-228.clar +2 -0
  256. package/smart-contracts/contracts/modules/module-23.clar +2 -0
  257. package/smart-contracts/contracts/modules/module-230.clar +2 -0
  258. package/smart-contracts/contracts/modules/module-231.clar +2 -0
  259. package/smart-contracts/contracts/modules/module-232.clar +2 -0
  260. package/smart-contracts/contracts/modules/module-234.clar +2 -0
  261. package/smart-contracts/contracts/modules/module-235.clar +2 -0
  262. package/smart-contracts/contracts/modules/module-24.clar +2 -0
  263. package/smart-contracts/contracts/modules/module-241.clar +2 -0
  264. package/smart-contracts/contracts/modules/module-243.clar +2 -0
  265. package/smart-contracts/contracts/modules/module-244.clar +2 -0
  266. package/smart-contracts/contracts/modules/module-245.clar +2 -0
  267. package/smart-contracts/contracts/modules/module-246.clar +2 -0
  268. package/smart-contracts/contracts/modules/module-247.clar +2 -0
  269. package/smart-contracts/contracts/modules/module-25.clar +2 -0
  270. package/smart-contracts/contracts/modules/module-251.clar +2 -0
  271. package/smart-contracts/contracts/modules/module-252.clar +2 -0
  272. package/smart-contracts/contracts/modules/module-253.clar +2 -0
  273. package/smart-contracts/contracts/modules/module-254.clar +2 -0
  274. package/smart-contracts/contracts/modules/module-256.clar +2 -0
  275. package/smart-contracts/contracts/modules/module-257.clar +2 -0
  276. package/smart-contracts/contracts/modules/module-258.clar +2 -0
  277. package/smart-contracts/contracts/modules/module-26.clar +2 -0
  278. package/smart-contracts/contracts/modules/module-260.clar +2 -0
  279. package/smart-contracts/contracts/modules/module-262.clar +2 -0
  280. package/smart-contracts/contracts/modules/module-266.clar +2 -0
  281. package/smart-contracts/contracts/modules/module-267.clar +2 -0
  282. package/smart-contracts/contracts/modules/module-269.clar +2 -0
  283. package/smart-contracts/contracts/modules/module-27.clar +2 -0
  284. package/smart-contracts/contracts/modules/module-272.clar +2 -0
  285. package/smart-contracts/contracts/modules/module-275.clar +2 -0
  286. package/smart-contracts/contracts/modules/module-276.clar +2 -0
  287. package/smart-contracts/contracts/modules/module-277.clar +2 -0
  288. package/smart-contracts/contracts/modules/module-279.clar +2 -0
  289. package/smart-contracts/contracts/modules/module-28.clar +2 -0
  290. package/smart-contracts/contracts/modules/module-280.clar +2 -0
  291. package/smart-contracts/contracts/modules/module-282.clar +2 -0
  292. package/smart-contracts/contracts/modules/module-283.clar +2 -0
  293. package/smart-contracts/contracts/modules/module-286.clar +2 -0
  294. package/smart-contracts/contracts/modules/module-29.clar +2 -0
  295. package/smart-contracts/contracts/modules/module-291.clar +2 -0
  296. package/smart-contracts/contracts/modules/module-295.clar +2 -0
  297. package/smart-contracts/contracts/modules/module-296.clar +2 -0
  298. package/smart-contracts/contracts/modules/module-3.clar +2 -0
  299. package/smart-contracts/contracts/modules/module-30.clar +2 -0
  300. package/smart-contracts/contracts/modules/module-31.clar +2 -0
  301. package/smart-contracts/contracts/modules/module-32.clar +2 -0
  302. package/smart-contracts/contracts/modules/module-33.clar +2 -0
  303. package/smart-contracts/contracts/modules/module-34.clar +2 -0
  304. package/smart-contracts/contracts/modules/module-35.clar +2 -0
  305. package/smart-contracts/contracts/modules/module-36.clar +2 -0
  306. package/smart-contracts/contracts/modules/module-37.clar +2 -0
  307. package/smart-contracts/contracts/modules/module-38.clar +2 -0
  308. package/smart-contracts/contracts/modules/module-39.clar +2 -0
  309. package/smart-contracts/contracts/modules/module-4.clar +2 -0
  310. package/smart-contracts/contracts/modules/module-40.clar +2 -0
  311. package/smart-contracts/contracts/modules/module-41.clar +2 -0
  312. package/smart-contracts/contracts/modules/module-42.clar +2 -0
  313. package/smart-contracts/contracts/modules/module-43.clar +2 -0
  314. package/smart-contracts/contracts/modules/module-44.clar +2 -0
  315. package/smart-contracts/contracts/modules/module-45.clar +2 -0
  316. package/smart-contracts/contracts/modules/module-46.clar +2 -0
  317. package/smart-contracts/contracts/modules/module-47.clar +2 -0
  318. package/smart-contracts/contracts/modules/module-48.clar +2 -0
  319. package/smart-contracts/contracts/modules/module-49.clar +2 -0
  320. package/smart-contracts/contracts/modules/module-5.clar +2 -0
  321. package/smart-contracts/contracts/modules/module-50.clar +2 -0
  322. package/smart-contracts/contracts/modules/module-51.clar +2 -0
  323. package/smart-contracts/contracts/modules/module-52.clar +2 -0
  324. package/smart-contracts/contracts/modules/module-53.clar +2 -0
  325. package/smart-contracts/contracts/modules/module-54.clar +2 -0
  326. package/smart-contracts/contracts/modules/module-55.clar +2 -0
  327. package/smart-contracts/contracts/modules/module-56.clar +2 -0
  328. package/smart-contracts/contracts/modules/module-57.clar +2 -0
  329. package/smart-contracts/contracts/modules/module-58.clar +2 -0
  330. package/smart-contracts/contracts/modules/module-59.clar +2 -0
  331. package/smart-contracts/contracts/modules/module-6.clar +2 -0
  332. package/smart-contracts/contracts/modules/module-60.clar +2 -0
  333. package/smart-contracts/contracts/modules/module-61.clar +2 -0
  334. package/smart-contracts/contracts/modules/module-62.clar +2 -0
  335. package/smart-contracts/contracts/modules/module-63.clar +2 -0
  336. package/smart-contracts/contracts/modules/module-64.clar +2 -0
  337. package/smart-contracts/contracts/modules/module-65.clar +2 -0
  338. package/smart-contracts/contracts/modules/module-66.clar +2 -0
  339. package/smart-contracts/contracts/modules/module-67.clar +2 -0
  340. package/smart-contracts/contracts/modules/module-68.clar +2 -0
  341. package/smart-contracts/contracts/modules/module-69.clar +2 -0
  342. package/smart-contracts/contracts/modules/module-7.clar +2 -0
  343. package/smart-contracts/contracts/modules/module-70.clar +2 -0
  344. package/smart-contracts/contracts/modules/module-71.clar +2 -0
  345. package/smart-contracts/contracts/modules/module-72.clar +2 -0
  346. package/smart-contracts/contracts/modules/module-73.clar +2 -0
  347. package/smart-contracts/contracts/modules/module-74.clar +2 -0
  348. package/smart-contracts/contracts/modules/module-75.clar +2 -0
  349. package/smart-contracts/contracts/modules/module-76.clar +2 -0
  350. package/smart-contracts/contracts/modules/module-77.clar +2 -0
  351. package/smart-contracts/contracts/modules/module-78.clar +2 -0
  352. package/smart-contracts/contracts/modules/module-79.clar +2 -0
  353. package/smart-contracts/contracts/modules/module-8.clar +2 -0
  354. package/smart-contracts/contracts/modules/module-80.clar +2 -0
  355. package/smart-contracts/contracts/modules/module-81.clar +2 -0
  356. package/smart-contracts/contracts/modules/module-82.clar +2 -0
  357. package/smart-contracts/contracts/modules/module-83.clar +2 -0
  358. package/smart-contracts/contracts/modules/module-84.clar +2 -0
  359. package/smart-contracts/contracts/modules/module-85.clar +2 -0
  360. package/smart-contracts/contracts/modules/module-86.clar +2 -0
  361. package/smart-contracts/contracts/modules/module-87.clar +2 -0
  362. package/smart-contracts/contracts/modules/module-88.clar +2 -0
  363. package/smart-contracts/contracts/modules/module-89.clar +2 -0
  364. package/smart-contracts/contracts/modules/module-9.clar +2 -0
  365. package/smart-contracts/contracts/modules/module-90.clar +2 -0
  366. package/smart-contracts/contracts/modules/module-91.clar +2 -0
  367. package/smart-contracts/contracts/modules/module-92.clar +2 -0
  368. package/smart-contracts/contracts/modules/module-93.clar +2 -0
  369. package/smart-contracts/contracts/modules/module-94.clar +2 -0
  370. package/smart-contracts/contracts/modules/module-95.clar +2 -0
  371. package/smart-contracts/contracts/modules/module-96.clar +2 -0
  372. package/smart-contracts/contracts/modules/module-97.clar +2 -0
  373. package/smart-contracts/contracts/modules/module-98.clar +2 -0
  374. package/smart-contracts/contracts/modules/module-99.clar +2 -0
  375. package/smart-contracts/contracts/reputation-engine.clar +131 -0
  376. package/smart-contracts/contracts/sip-010-trait.clar +38 -0
  377. package/smart-contracts/contracts/staking-refinery-v3.clar +138 -0
  378. package/smart-contracts/contracts/staking-refinery-v4.clar +125 -0
  379. package/smart-contracts/contracts/staking-refinery-v5.clar +153 -0
  380. package/smart-contracts/contracts/staking-refinery-v6.clar +122 -0
  381. package/smart-contracts/contracts/staking-refinery-v7.clar +144 -0
  382. package/smart-contracts/contracts/staking-refinery.clar +80 -0
  383. package/smart-contracts/contracts/token-one-v3.clar +74 -0
  384. package/smart-contracts/contracts/token-one-v4.clar +51 -0
  385. package/smart-contracts/contracts/token-one-v5.clar +78 -0
  386. package/smart-contracts/contracts/token-one-v6.clar +91 -0
  387. package/smart-contracts/contracts/token-one-v7.clar +79 -0
  388. package/smart-contracts/contracts/token-one.clar +86 -0
  389. package/smart-contracts/contracts/token-poin-trait.clar +35 -0
  390. package/smart-contracts/contracts/token-poin-v3.clar +87 -0
  391. package/smart-contracts/contracts/token-poin-v4.clar +72 -0
  392. package/smart-contracts/contracts/token-poin-v5.clar +68 -0
  393. package/smart-contracts/contracts/token-poin-v6.clar +61 -0
  394. package/smart-contracts/contracts/token-poin-v7.clar +55 -0
  395. package/smart-contracts/contracts/token-poin.clar +85 -0
  396. package/smart-contracts/contracts/utility-gacha.clar +69 -0
  397. package/smart-contracts/deployments/default.mainnet-plan.yaml +18 -0
  398. package/smart-contracts/mission-mini-001.clar +0 -0
  399. package/smart-contracts/mission-mini-002.clar +0 -0
  400. package/smart-contracts/mission-mini-003.clar +0 -0
  401. package/smart-contracts/mission-mini-004.clar +0 -0
  402. package/smart-contracts/mission-mini-005.clar +0 -0
  403. package/smart-contracts/package-lock.json +2990 -0
  404. package/smart-contracts/package.json +24 -0
  405. package/smart-contracts/scripts/interact-modules.ts +1 -0
  406. package/smart-contracts/settings/Devnet.toml +155 -0
  407. package/smart-contracts/tests/genesis-badges.test.ts +21 -0
  408. package/smart-contracts/tests/genesis-core.test.ts +21 -0
  409. package/smart-contracts/tests/genesis-missions.test.ts +21 -0
  410. package/smart-contracts/tests/interact-reputation.ts +8 -0
  411. package/smart-contracts/tests/reputation-engine.test.ts +41 -0
  412. package/smart-contracts/tests/reputation.test.ts +15 -0
  413. package/smart-contracts/tests/token-one.test.ts +102 -0
  414. package/smart-contracts/tsconfig.json +26 -0
  415. package/smart-contracts/vitest.config.js +42 -0
  416. package/src/App.css +42 -0
  417. package/src/App.jsx +357 -0
  418. package/src/assets/react.svg +1 -0
  419. package/src/components/Layout.jsx +114 -0
  420. package/src/helper.js +153 -0
  421. package/src/index.css +21 -0
  422. package/src/main.jsx +160 -0
  423. package/src/pages/Gaming.jsx +177 -0
  424. package/src/pages/Home.jsx +153 -0
  425. package/src/pages/LeaderboardCard.tsx +93 -0
  426. package/src/pages/Profile.jsx +299 -0
  427. package/src/pages/Tasks.jsx +128 -0
  428. package/src/pages/Vault.jsx +524 -0
  429. package/src/polyfills.js +126 -0
  430. package/src/supabaseClient.js +141 -0
  431. package/src/utils.js +166 -0
  432. package/tailwind.config.js +42 -0
  433. package/temp-log.txt +4 -0
  434. package/vercel.json +8 -0
  435. package/vite.config.js +34 -0
@@ -0,0 +1,2 @@
1
+ (define-public (module-50)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-51)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-52)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-53)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-54)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-55)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-56)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-57)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-58)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-59)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-6)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-60)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-61)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-62)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-63)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-64)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-65)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-66)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-67)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-68)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-69)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-7)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-70)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-71)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-72)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-73)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-74)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-75)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-76)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-77)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-78)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-79)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-8)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-80)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-81)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-82)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-83)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-84)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-85)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-86)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-87)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-88)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-89)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-9)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-90)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-91)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-92)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-93)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-94)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-95)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-96)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-97)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-98)
2
+ (ok true))
@@ -0,0 +1,2 @@
1
+ (define-public (module-99)
2
+ (ok true))
@@ -0,0 +1,131 @@
1
+ ;; ===============================
2
+ ;; StacksOne Reputation Engine
3
+ ;; NO BLOCK HEIGHT VERSION
4
+ ;; ===============================
5
+
6
+ (define-constant CONTRACT-OWNER tx-sender)
7
+
8
+ (define-constant ERR-NOT-AUTHORIZED (err u100))
9
+ (define-constant ERR-USER-NOT-FOUND (err u101))
10
+ (define-constant ERR-INVALID-AMOUNT (err u102))
11
+
12
+ ;; ===============================
13
+ ;; DATA MAPS
14
+ ;; ===============================
15
+
16
+ (define-map user-reputation
17
+ principal
18
+ {
19
+ score: uint,
20
+ multiplier: uint
21
+ }
22
+ )
23
+
24
+ (define-map admins
25
+ principal
26
+ bool
27
+ )
28
+
29
+ ;; ===============================
30
+ ;; INTERNAL CHECKS
31
+ ;; ===============================
32
+
33
+ (define-private (is-admin (user principal))
34
+ (or
35
+ (is-eq user CONTRACT-OWNER)
36
+ (default-to false (map-get? admins user))
37
+ )
38
+ )
39
+
40
+ (define-private (assert-admin)
41
+ (if (is-admin tx-sender)
42
+ (ok true)
43
+ ERR-NOT-AUTHORIZED
44
+ )
45
+ )
46
+
47
+ ;; ===============================
48
+ ;; READ
49
+ ;; ===============================
50
+
51
+ (define-read-only (get-user (user principal))
52
+ (map-get? user-reputation user)
53
+ )
54
+
55
+ ;; ===============================
56
+ ;; PUBLIC
57
+ ;; ===============================
58
+
59
+ (define-public (add-admin (new-admin principal))
60
+ (begin
61
+ (try! (assert-admin))
62
+ (map-set admins new-admin true)
63
+ (ok true)
64
+ )
65
+ )
66
+
67
+ (define-public (init-user (user principal))
68
+ (begin
69
+ (map-set user-reputation user {
70
+ score: u0,
71
+ multiplier: u1
72
+ })
73
+ (ok true)
74
+ )
75
+ )
76
+
77
+ (define-public (increase-score (user principal) (amount uint))
78
+ (begin
79
+ (try! (assert-admin))
80
+
81
+ (if (is-eq amount u0)
82
+ ERR-INVALID-AMOUNT
83
+ (match (map-get? user-reputation user)
84
+ user-data
85
+ (let (
86
+ (new-score (+ (get score user-data) amount))
87
+ (new-multiplier (+ u1 (/ new-score u100)))
88
+ )
89
+ (map-set user-reputation user {
90
+ score: new-score,
91
+ multiplier: new-multiplier
92
+ })
93
+ (ok true)
94
+ )
95
+ ERR-USER-NOT-FOUND
96
+ )
97
+ )
98
+ )
99
+ )
100
+
101
+ (define-public (decay (user principal))
102
+ (match (map-get? user-reputation user)
103
+ user-data
104
+ (let (
105
+ (score (get score user-data))
106
+ (decayed (/ score u20))
107
+ )
108
+ (map-set user-reputation user {
109
+ score: (- score decayed),
110
+ multiplier: (get multiplier user-data)
111
+ })
112
+ (ok true)
113
+ )
114
+ ERR-USER-NOT-FOUND
115
+ )
116
+ )
117
+
118
+ (define-public (ping-76)
119
+ (ok true))
120
+
121
+ (define-public (ping-111)
122
+ (ok true))
123
+
124
+ (define-public (ping-42)
125
+ (ok true))
126
+
127
+ (define-public (ping-108)
128
+ (ok true))
129
+
130
+ (define-public (ping-109)
131
+ (ok true))
@@ -0,0 +1,38 @@
1
+ (define-trait sip-010-trait
2
+ (
3
+ (transfer (uint principal principal (optional (buff 34))) (response bool uint))
4
+ (get-name () (response (string-ascii 32) uint))
5
+ (get-symbol () (response (string-ascii 32) uint))
6
+ (get-decimals () (response uint uint))
7
+ (get-balance (principal) (response uint uint))
8
+ (get-total-supply () (response uint uint))
9
+ (get-token-uri () (response (optional (string-utf8 256)) uint))
10
+ )
11
+ )
12
+
13
+ (define-public (ping-1)
14
+ (ok true))
15
+
16
+ (define-public (ping-42)
17
+ (ok true))
18
+
19
+ (define-public (ping-2)
20
+ (ok true))
21
+
22
+ (define-public (ping-126)
23
+ (ok true))
24
+
25
+ (define-public (ping-40)
26
+ (ok true))
27
+
28
+ (define-public (ping-23)
29
+ (ok true))
30
+
31
+ (define-public (ping-22)
32
+ (ok true))
33
+
34
+ (define-public (ping-79)
35
+ (ok true))
36
+
37
+ (define-public (ping-75)
38
+ (ok true))
@@ -0,0 +1,138 @@
1
+ ;; staking-refinery-v3.clar
2
+
3
+ (define-constant err-lock-period-not-finished (err u300))
4
+ (define-constant err-not-found (err u301))
5
+
6
+ (define-data-var lock-period-short uint u1008)
7
+ (define-constant exchange-rate u10)
8
+
9
+ (define-map stakes
10
+ { staker: principal, id: uint }
11
+ { amount-poin: uint, start-height: uint, end-height: uint, claimed: bool }
12
+ )
13
+
14
+ (define-data-var stake-nonce uint u0)
15
+
16
+ ;; =========================
17
+ ;; READ ONLY STATUS
18
+ ;; =========================
19
+
20
+ (define-read-only (get-stake-status (user principal) (stake-id uint))
21
+ (let
22
+ (
23
+ (stake-data (map-get? stakes { staker: user, id: stake-id }))
24
+ (current-height burn-block-height)
25
+ )
26
+ (match stake-data data
27
+ {
28
+ start-block: (get start-height data),
29
+ end-block: (get end-height data),
30
+ current-block: current-height,
31
+ blocks-left:
32
+ (if (>= current-height (get end-height data))
33
+ u0
34
+ (- (get end-height data) current-height)
35
+ ),
36
+ claimed: (get claimed data)
37
+ }
38
+ {
39
+ start-block: u0,
40
+ end-block: u0,
41
+ current-block: current-height,
42
+ blocks-left: u0,
43
+ claimed: false
44
+ }
45
+ )
46
+ )
47
+ )
48
+
49
+ ;; =========================
50
+ ;; STAKE
51
+ ;; =========================
52
+
53
+ (define-public (stake-tokens (amount-poin uint))
54
+ (let
55
+ (
56
+ (user tx-sender)
57
+ (current-id (var-get stake-nonce))
58
+ (end-block (+ burn-block-height (var-get lock-period-short)))
59
+ )
60
+
61
+ ;; transfer poin dari user ke kontrak
62
+ (try! (contract-call? .token-poin-v3 transfer amount-poin user (contract-of .staking-refinery-v3) none))
63
+
64
+ (map-set stakes { staker: user, id: current-id }
65
+ {
66
+ amount-poin: amount-poin,
67
+ start-height: burn-block-height,
68
+ end-height: end-block,
69
+ claimed: false
70
+ }
71
+ )
72
+
73
+ (var-set stake-nonce (+ current-id u1))
74
+ (ok current-id)
75
+ )
76
+ )
77
+
78
+ ;; =========================
79
+ ;; HARVEST
80
+ ;; =========================
81
+
82
+ (define-public (harvest (stake-id uint))
83
+ (let
84
+ (
85
+ (user tx-sender)
86
+ (stake-data (unwrap! (map-get? stakes { staker: user, id: stake-id }) err-not-found))
87
+ )
88
+
89
+ (asserts! (>= burn-block-height (get end-height stake-data)) err-lock-period-not-finished)
90
+ (asserts! (is-eq (get claimed stake-data) false) (err u302))
91
+
92
+ (let
93
+ (
94
+ (reward-amount (/ (get amount-poin stake-data) exchange-rate))
95
+ )
96
+
97
+ (map-set stakes { staker: user, id: stake-id }
98
+ (merge stake-data { claimed: true })
99
+ )
100
+
101
+ ;; kembalikan poin
102
+ (try! (contract-call? .token-poin-v3 transfer (get amount-poin stake-data) (contract-of .staking-refinery-v3) user none))
103
+
104
+ ;; mint ONE reward
105
+ (contract-call? .token-one-v3 mint reward-amount user)
106
+ )
107
+ )
108
+ )
109
+
110
+ (define-public (ping-125)
111
+ (ok true))
112
+
113
+ (define-public (ping-65)
114
+ (ok true))
115
+
116
+ (define-public (ping-12)
117
+ (ok true))
118
+
119
+ (define-public (ping-46)
120
+ (ok true))
121
+
122
+ (define-public (ping-40)
123
+ (ok true))
124
+
125
+ (define-public (ping-43)
126
+ (ok true))
127
+
128
+ (define-public (ping-147)
129
+ (ok true))
130
+
131
+ (define-public (ping-178)
132
+ (ok true))
133
+
134
+ (define-public (ping-162)
135
+ (ok true))
136
+
137
+ (define-public (ping-41)
138
+ (ok true))
@@ -0,0 +1,125 @@
1
+ ;; staking-refinery-v4.clar
2
+
3
+ (define-constant err-not-found (err u300))
4
+ (define-constant err-locked (err u301))
5
+
6
+ (define-data-var lock-period uint u1008)
7
+ (define-data-var nonce uint u0)
8
+
9
+ (define-map stakes
10
+ { user: principal, id: uint }
11
+ { amount: uint, start: uint, end: uint, claimed: bool }
12
+ )
13
+
14
+ ;; =========================
15
+ ;; READ ONLY STATUS
16
+ ;; =========================
17
+
18
+ (define-read-only (get-stake-status (user principal) (id uint))
19
+ (let
20
+ (
21
+ (data (map-get? stakes { user: user, id: id }))
22
+ (current burn-block-height)
23
+ )
24
+ (match data d
25
+ {
26
+ start: (get start d),
27
+ end: (get end d),
28
+ current: current,
29
+ blocks-left:
30
+ (if (>= current (get end d))
31
+ u0
32
+ (- (get end d) current)
33
+ ),
34
+ claimed: (get claimed d)
35
+ }
36
+ {
37
+ start: u0,
38
+ end: u0,
39
+ current: current,
40
+ blocks-left: u0,
41
+ claimed: false
42
+ }
43
+ )
44
+ )
45
+ )
46
+
47
+ ;; =========================
48
+ ;; STAKE
49
+ ;; =========================
50
+
51
+ (define-public (stake (amount uint))
52
+ (let
53
+ (
54
+ (user tx-sender)
55
+ (id (var-get nonce))
56
+ (end (+ burn-block-height (var-get lock-period)))
57
+ )
58
+
59
+ ;; transfer poin dari user ke kontrak staking
60
+ (try! (contract-call? .token-poin-v4 transfer amount user tx-sender))
61
+
62
+ (map-set stakes
63
+ { user: user, id: id }
64
+ {
65
+ amount: amount,
66
+ start: burn-block-height,
67
+ end: end,
68
+ claimed: false
69
+ }
70
+ )
71
+
72
+ (var-set nonce (+ id u1))
73
+ (ok id)
74
+ )
75
+ )
76
+
77
+ ;; =========================
78
+ ;; HARVEST
79
+ ;; =========================
80
+
81
+ (define-public (harvest (id uint))
82
+ (let
83
+ (
84
+ (user tx-sender)
85
+ (data (unwrap! (map-get? stakes { user: user, id: id }) err-not-found))
86
+ )
87
+
88
+ (asserts! (>= burn-block-height (get end data)) err-locked)
89
+
90
+ (let
91
+ (
92
+ (reward (/ (get amount data) u10))
93
+ )
94
+
95
+ ;; kembalikan poin ke user
96
+ (try! (contract-call? .token-poin-v4 transfer (get amount data) tx-sender user))
97
+
98
+ ;; mint reward ONE
99
+ (try! (contract-call? .token-one-v4 mint reward user))
100
+
101
+ (ok reward)
102
+ )
103
+ )
104
+ )
105
+
106
+ (define-public (ping-95)
107
+ (ok true))
108
+
109
+ (define-public (ping-42)
110
+ (ok true))
111
+
112
+ (define-public (ping-95)
113
+ (ok true))
114
+
115
+ (define-public (ping-72)
116
+ (ok true))
117
+
118
+ (define-public (ping-206)
119
+ (ok true))
120
+
121
+ (define-public (ping-289)
122
+ (ok true))
123
+
124
+ (define-public (ping-213)
125
+ (ok true))