@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.
- package/.github/workflows/clarinet.yaml +33 -0
- package/README.md +444 -0
- package/docs/ARCHITECTURE.md +69 -0
- package/docs/CONTRACT_REGISTRY.md +11 -0
- package/docs/MODULE_OVERVIEW.md +38 -0
- package/docs/ROADMAP_Q1_2026.md +21 -0
- package/docs/SECURITY.md +47 -0
- package/docs/devlog.md +925 -0
- package/docs/notes.md +5 -0
- package/eslint.config.js +29 -0
- package/index.html +24 -0
- package/nonce.txt +1 -0
- package/nonce_store/nonce_1.txt +1 -0
- package/nonce_store/nonce_10.txt +1 -0
- package/nonce_store/nonce_2.txt +1 -0
- package/nonce_store/nonce_3.txt +1 -0
- package/nonce_store/nonce_4.txt +1 -0
- package/nonce_store/nonce_5.txt +1 -0
- package/nonce_store/nonce_6.txt +1 -0
- package/nonce_store/nonce_7.txt +1 -0
- package/nonce_store/nonce_8.txt +1 -0
- package/nonce_store/nonce_9.txt +1 -0
- package/package.json +62 -0
- package/package.json.save +60 -0
- package/postcss.config.js +6 -0
- package/public/logo.png +0 -0
- package/public/vite.svg +1 -0
- package/smart-contracts/.gitattributes +3 -0
- package/smart-contracts/.vscode/settings.json +4 -0
- package/smart-contracts/.vscode/tasks.json +19 -0
- package/smart-contracts/Clarinet.toml +11 -0
- package/smart-contracts/Mainnet.toml +5 -0
- package/smart-contracts/contracts/chaintap.clar +200 -0
- package/smart-contracts/contracts/contract-0.clar +35 -0
- package/smart-contracts/contracts/contract-1.clar +26 -0
- package/smart-contracts/contracts/contract-10.clar +31 -0
- package/smart-contracts/contracts/contract-12.clar +50 -0
- package/smart-contracts/contracts/contract-13.clar +25 -0
- package/smart-contracts/contracts/contract-14.clar +14 -0
- package/smart-contracts/contracts/contract-15.clar +20 -0
- package/smart-contracts/contracts/contract-16.clar +22 -0
- package/smart-contracts/contracts/contract-17.clar +23 -0
- package/smart-contracts/contracts/contract-18.clar +30 -0
- package/smart-contracts/contracts/contract-19.clar +49 -0
- package/smart-contracts/contracts/contract-2.clar +34 -0
- package/smart-contracts/contracts/contract-20.clar +7 -0
- package/smart-contracts/contracts/contract-21.clar +17 -0
- package/smart-contracts/contracts/contract-22.clar +23 -0
- package/smart-contracts/contracts/contract-23.clar +41 -0
- package/smart-contracts/contracts/contract-24.clar +30 -0
- package/smart-contracts/contracts/contract-28.clar +34 -0
- package/smart-contracts/contracts/contract-3.clar +36 -0
- package/smart-contracts/contracts/contract-30.clar +21 -0
- package/smart-contracts/contracts/contract-32.clar +26 -0
- package/smart-contracts/contracts/contract-33.clar +43 -0
- package/smart-contracts/contracts/contract-34.clar +29 -0
- package/smart-contracts/contracts/contract-35.clar +17 -0
- package/smart-contracts/contracts/contract-36.clar +47 -0
- package/smart-contracts/contracts/contract-37.clar +33 -0
- package/smart-contracts/contracts/contract-38.clar +26 -0
- package/smart-contracts/contracts/contract-4.clar +16 -0
- package/smart-contracts/contracts/contract-40.clar +19 -0
- package/smart-contracts/contracts/contract-42.clar +26 -0
- package/smart-contracts/contracts/contract-43.clar +23 -0
- package/smart-contracts/contracts/contract-44.clar +47 -0
- package/smart-contracts/contracts/contract-45.clar +32 -0
- package/smart-contracts/contracts/contract-46.clar +31 -0
- package/smart-contracts/contracts/contract-47.clar +33 -0
- package/smart-contracts/contracts/contract-48.clar +16 -0
- package/smart-contracts/contracts/contract-49.clar +36 -0
- package/smart-contracts/contracts/contract-5.clar +17 -0
- package/smart-contracts/contracts/contract-6.clar +52 -0
- package/smart-contracts/contracts/contract-7.clar +6 -0
- package/smart-contracts/contracts/contract-8.clar +27 -0
- package/smart-contracts/contracts/faucet-distributor-v2.clar +133 -0
- package/smart-contracts/contracts/faucet-distributor-v3.clar +129 -0
- package/smart-contracts/contracts/faucet-distributor-v4.clar +86 -0
- package/smart-contracts/contracts/faucet-distributor-v5.clar +90 -0
- package/smart-contracts/contracts/faucet-distributor-v6.clar +123 -0
- package/smart-contracts/contracts/faucet-distributor-v7.clar +88 -0
- package/smart-contracts/contracts/faucet-distributor.clar +64 -0
- package/smart-contracts/contracts/genesis-0.clar +297 -0
- package/smart-contracts/contracts/genesis-1.clar +342 -0
- package/smart-contracts/contracts/genesis-2.clar +297 -0
- package/smart-contracts/contracts/genesis-3.clar +282 -0
- package/smart-contracts/contracts/genesis-4.clar +291 -0
- package/smart-contracts/contracts/genesis-5.clar +276 -0
- package/smart-contracts/contracts/genesis-6.clar +273 -0
- package/smart-contracts/contracts/genesis-7.clar +261 -0
- package/smart-contracts/contracts/genesis-8.clar +279 -0
- package/smart-contracts/contracts/genesis-9.clar +288 -0
- package/smart-contracts/contracts/genesis-ascension-v1.clar +54 -0
- package/smart-contracts/contracts/genesis-badges-v10.clar +72 -0
- package/smart-contracts/contracts/genesis-badges-v4.clar +66 -0
- package/smart-contracts/contracts/genesis-badges-v5.clar +66 -0
- package/smart-contracts/contracts/genesis-badges-v8.clar +88 -0
- package/smart-contracts/contracts/genesis-badges-v9.clar +66 -0
- package/smart-contracts/contracts/genesis-badges.clar +73 -0
- package/smart-contracts/contracts/genesis-boost-v1.clar +58 -0
- package/smart-contracts/contracts/genesis-core-v10.clar +87 -0
- package/smart-contracts/contracts/genesis-core-v2.clar +86 -0
- package/smart-contracts/contracts/genesis-core-v4.clar +80 -0
- package/smart-contracts/contracts/genesis-core-v5.clar +86 -0
- package/smart-contracts/contracts/genesis-core-v6.clar +98 -0
- package/smart-contracts/contracts/genesis-core-v8.clar +106 -0
- package/smart-contracts/contracts/genesis-core-v9.clar +80 -0
- package/smart-contracts/contracts/genesis-core.clar +93 -0
- package/smart-contracts/contracts/genesis-missions-v4.clar +104 -0
- package/smart-contracts/contracts/genesis-missions-v5.clar +86 -0
- package/smart-contracts/contracts/genesis-missions-v6.clar +80 -0
- package/smart-contracts/contracts/genesis-missions-v8.clar +81 -0
- package/smart-contracts/contracts/genesis-missions-v9.clar +73 -0
- package/smart-contracts/contracts/genesis-missions.clar +68 -0
- package/smart-contracts/contracts/mission-mini-001.clar +32 -0
- package/smart-contracts/contracts/mission-mini-002.clar +42 -0
- package/smart-contracts/contracts/mission-mini-003.clar +39 -0
- package/smart-contracts/contracts/mission-mini-004.clar +39 -0
- package/smart-contracts/contracts/mission-mini-005.clar +36 -0
- package/smart-contracts/contracts/modules/genesis-badge-lite-v1.clar +17 -0
- package/smart-contracts/contracts/modules/genesis-counter-v1.clar +21 -0
- package/smart-contracts/contracts/modules/genesis-duel-v1.clar +16 -0
- package/smart-contracts/contracts/modules/genesis-flag-v1.clar +21 -0
- package/smart-contracts/contracts/modules/genesis-leaderboard-v1.clar +88 -0
- package/smart-contracts/contracts/modules/genesis-lucky-v1.clar +16 -0
- package/smart-contracts/contracts/modules/genesis-points-v1.clar +21 -0
- package/smart-contracts/contracts/modules/genesis-predict-v1.clar +14 -0
- package/smart-contracts/contracts/modules/genesis-score-lite-v1.clar +21 -0
- package/smart-contracts/contracts/modules/module-1.clar +2 -0
- package/smart-contracts/contracts/modules/module-10.clar +2 -0
- package/smart-contracts/contracts/modules/module-100.clar +2 -0
- package/smart-contracts/contracts/modules/module-101.clar +2 -0
- package/smart-contracts/contracts/modules/module-102.clar +2 -0
- package/smart-contracts/contracts/modules/module-103.clar +2 -0
- package/smart-contracts/contracts/modules/module-104.clar +2 -0
- package/smart-contracts/contracts/modules/module-105.clar +2 -0
- package/smart-contracts/contracts/modules/module-106.clar +2 -0
- package/smart-contracts/contracts/modules/module-107.clar +2 -0
- package/smart-contracts/contracts/modules/module-108.clar +2 -0
- package/smart-contracts/contracts/modules/module-109.clar +2 -0
- package/smart-contracts/contracts/modules/module-11.clar +2 -0
- package/smart-contracts/contracts/modules/module-110.clar +2 -0
- package/smart-contracts/contracts/modules/module-111.clar +2 -0
- package/smart-contracts/contracts/modules/module-112.clar +2 -0
- package/smart-contracts/contracts/modules/module-113.clar +2 -0
- package/smart-contracts/contracts/modules/module-114.clar +2 -0
- package/smart-contracts/contracts/modules/module-115.clar +2 -0
- package/smart-contracts/contracts/modules/module-116.clar +2 -0
- package/smart-contracts/contracts/modules/module-117.clar +2 -0
- package/smart-contracts/contracts/modules/module-118.clar +2 -0
- package/smart-contracts/contracts/modules/module-119.clar +2 -0
- package/smart-contracts/contracts/modules/module-12.clar +2 -0
- package/smart-contracts/contracts/modules/module-120.clar +2 -0
- package/smart-contracts/contracts/modules/module-121.clar +2 -0
- package/smart-contracts/contracts/modules/module-122.clar +2 -0
- package/smart-contracts/contracts/modules/module-123.clar +2 -0
- package/smart-contracts/contracts/modules/module-124.clar +2 -0
- package/smart-contracts/contracts/modules/module-125.clar +2 -0
- package/smart-contracts/contracts/modules/module-126.clar +2 -0
- package/smart-contracts/contracts/modules/module-127.clar +2 -0
- package/smart-contracts/contracts/modules/module-128.clar +2 -0
- package/smart-contracts/contracts/modules/module-129.clar +2 -0
- package/smart-contracts/contracts/modules/module-13.clar +2 -0
- package/smart-contracts/contracts/modules/module-130.clar +2 -0
- package/smart-contracts/contracts/modules/module-131.clar +2 -0
- package/smart-contracts/contracts/modules/module-132.clar +2 -0
- package/smart-contracts/contracts/modules/module-133.clar +2 -0
- package/smart-contracts/contracts/modules/module-134.clar +2 -0
- package/smart-contracts/contracts/modules/module-135.clar +2 -0
- package/smart-contracts/contracts/modules/module-136.clar +2 -0
- package/smart-contracts/contracts/modules/module-137.clar +2 -0
- package/smart-contracts/contracts/modules/module-138.clar +2 -0
- package/smart-contracts/contracts/modules/module-14.clar +2 -0
- package/smart-contracts/contracts/modules/module-140.clar +2 -0
- package/smart-contracts/contracts/modules/module-141.clar +2 -0
- package/smart-contracts/contracts/modules/module-142.clar +2 -0
- package/smart-contracts/contracts/modules/module-143.clar +2 -0
- package/smart-contracts/contracts/modules/module-144.clar +2 -0
- package/smart-contracts/contracts/modules/module-145.clar +2 -0
- package/smart-contracts/contracts/modules/module-146.clar +2 -0
- package/smart-contracts/contracts/modules/module-147.clar +2 -0
- package/smart-contracts/contracts/modules/module-148.clar +2 -0
- package/smart-contracts/contracts/modules/module-149.clar +2 -0
- package/smart-contracts/contracts/modules/module-15.clar +2 -0
- package/smart-contracts/contracts/modules/module-150.clar +2 -0
- package/smart-contracts/contracts/modules/module-152.clar +2 -0
- package/smart-contracts/contracts/modules/module-153.clar +2 -0
- package/smart-contracts/contracts/modules/module-154.clar +2 -0
- package/smart-contracts/contracts/modules/module-156.clar +2 -0
- package/smart-contracts/contracts/modules/module-157.clar +2 -0
- package/smart-contracts/contracts/modules/module-158.clar +2 -0
- package/smart-contracts/contracts/modules/module-159.clar +2 -0
- package/smart-contracts/contracts/modules/module-16.clar +2 -0
- package/smart-contracts/contracts/modules/module-160.clar +2 -0
- package/smart-contracts/contracts/modules/module-161.clar +2 -0
- package/smart-contracts/contracts/modules/module-162.clar +2 -0
- package/smart-contracts/contracts/modules/module-163.clar +2 -0
- package/smart-contracts/contracts/modules/module-164.clar +2 -0
- package/smart-contracts/contracts/modules/module-165.clar +2 -0
- package/smart-contracts/contracts/modules/module-166.clar +2 -0
- package/smart-contracts/contracts/modules/module-167.clar +2 -0
- package/smart-contracts/contracts/modules/module-168.clar +2 -0
- package/smart-contracts/contracts/modules/module-169.clar +2 -0
- package/smart-contracts/contracts/modules/module-17.clar +2 -0
- package/smart-contracts/contracts/modules/module-171.clar +2 -0
- package/smart-contracts/contracts/modules/module-172.clar +2 -0
- package/smart-contracts/contracts/modules/module-173.clar +2 -0
- package/smart-contracts/contracts/modules/module-174.clar +2 -0
- package/smart-contracts/contracts/modules/module-175.clar +2 -0
- package/smart-contracts/contracts/modules/module-176.clar +2 -0
- package/smart-contracts/contracts/modules/module-178.clar +2 -0
- package/smart-contracts/contracts/modules/module-179.clar +2 -0
- package/smart-contracts/contracts/modules/module-18.clar +2 -0
- package/smart-contracts/contracts/modules/module-180.clar +2 -0
- package/smart-contracts/contracts/modules/module-181.clar +2 -0
- package/smart-contracts/contracts/modules/module-182.clar +2 -0
- package/smart-contracts/contracts/modules/module-183.clar +2 -0
- package/smart-contracts/contracts/modules/module-184.clar +2 -0
- package/smart-contracts/contracts/modules/module-186.clar +2 -0
- package/smart-contracts/contracts/modules/module-188.clar +2 -0
- package/smart-contracts/contracts/modules/module-189.clar +2 -0
- package/smart-contracts/contracts/modules/module-19.clar +2 -0
- package/smart-contracts/contracts/modules/module-190.clar +2 -0
- package/smart-contracts/contracts/modules/module-191.clar +2 -0
- package/smart-contracts/contracts/modules/module-192.clar +2 -0
- package/smart-contracts/contracts/modules/module-193.clar +2 -0
- package/smart-contracts/contracts/modules/module-195.clar +2 -0
- package/smart-contracts/contracts/modules/module-196.clar +2 -0
- package/smart-contracts/contracts/modules/module-197.clar +2 -0
- package/smart-contracts/contracts/modules/module-198.clar +2 -0
- package/smart-contracts/contracts/modules/module-199.clar +2 -0
- package/smart-contracts/contracts/modules/module-2.clar +2 -0
- package/smart-contracts/contracts/modules/module-20.clar +2 -0
- package/smart-contracts/contracts/modules/module-200.clar +2 -0
- package/smart-contracts/contracts/modules/module-201.clar +2 -0
- package/smart-contracts/contracts/modules/module-202.clar +2 -0
- package/smart-contracts/contracts/modules/module-203.clar +2 -0
- package/smart-contracts/contracts/modules/module-204.clar +2 -0
- package/smart-contracts/contracts/modules/module-205.clar +2 -0
- package/smart-contracts/contracts/modules/module-207.clar +2 -0
- package/smart-contracts/contracts/modules/module-209.clar +2 -0
- package/smart-contracts/contracts/modules/module-21.clar +2 -0
- package/smart-contracts/contracts/modules/module-210.clar +2 -0
- package/smart-contracts/contracts/modules/module-212.clar +2 -0
- package/smart-contracts/contracts/modules/module-213.clar +2 -0
- package/smart-contracts/contracts/modules/module-215.clar +2 -0
- package/smart-contracts/contracts/modules/module-216.clar +2 -0
- package/smart-contracts/contracts/modules/module-218.clar +2 -0
- package/smart-contracts/contracts/modules/module-219.clar +2 -0
- package/smart-contracts/contracts/modules/module-22.clar +2 -0
- package/smart-contracts/contracts/modules/module-222.clar +2 -0
- package/smart-contracts/contracts/modules/module-223.clar +2 -0
- package/smart-contracts/contracts/modules/module-224.clar +2 -0
- package/smart-contracts/contracts/modules/module-226.clar +2 -0
- package/smart-contracts/contracts/modules/module-227.clar +2 -0
- package/smart-contracts/contracts/modules/module-228.clar +2 -0
- package/smart-contracts/contracts/modules/module-23.clar +2 -0
- package/smart-contracts/contracts/modules/module-230.clar +2 -0
- package/smart-contracts/contracts/modules/module-231.clar +2 -0
- package/smart-contracts/contracts/modules/module-232.clar +2 -0
- package/smart-contracts/contracts/modules/module-234.clar +2 -0
- package/smart-contracts/contracts/modules/module-235.clar +2 -0
- package/smart-contracts/contracts/modules/module-24.clar +2 -0
- package/smart-contracts/contracts/modules/module-241.clar +2 -0
- package/smart-contracts/contracts/modules/module-243.clar +2 -0
- package/smart-contracts/contracts/modules/module-244.clar +2 -0
- package/smart-contracts/contracts/modules/module-245.clar +2 -0
- package/smart-contracts/contracts/modules/module-246.clar +2 -0
- package/smart-contracts/contracts/modules/module-247.clar +2 -0
- package/smart-contracts/contracts/modules/module-25.clar +2 -0
- package/smart-contracts/contracts/modules/module-251.clar +2 -0
- package/smart-contracts/contracts/modules/module-252.clar +2 -0
- package/smart-contracts/contracts/modules/module-253.clar +2 -0
- package/smart-contracts/contracts/modules/module-254.clar +2 -0
- package/smart-contracts/contracts/modules/module-256.clar +2 -0
- package/smart-contracts/contracts/modules/module-257.clar +2 -0
- package/smart-contracts/contracts/modules/module-258.clar +2 -0
- package/smart-contracts/contracts/modules/module-26.clar +2 -0
- package/smart-contracts/contracts/modules/module-260.clar +2 -0
- package/smart-contracts/contracts/modules/module-262.clar +2 -0
- package/smart-contracts/contracts/modules/module-266.clar +2 -0
- package/smart-contracts/contracts/modules/module-267.clar +2 -0
- package/smart-contracts/contracts/modules/module-269.clar +2 -0
- package/smart-contracts/contracts/modules/module-27.clar +2 -0
- package/smart-contracts/contracts/modules/module-272.clar +2 -0
- package/smart-contracts/contracts/modules/module-275.clar +2 -0
- package/smart-contracts/contracts/modules/module-276.clar +2 -0
- package/smart-contracts/contracts/modules/module-277.clar +2 -0
- package/smart-contracts/contracts/modules/module-279.clar +2 -0
- package/smart-contracts/contracts/modules/module-28.clar +2 -0
- package/smart-contracts/contracts/modules/module-280.clar +2 -0
- package/smart-contracts/contracts/modules/module-282.clar +2 -0
- package/smart-contracts/contracts/modules/module-283.clar +2 -0
- package/smart-contracts/contracts/modules/module-286.clar +2 -0
- package/smart-contracts/contracts/modules/module-29.clar +2 -0
- package/smart-contracts/contracts/modules/module-291.clar +2 -0
- package/smart-contracts/contracts/modules/module-295.clar +2 -0
- package/smart-contracts/contracts/modules/module-296.clar +2 -0
- package/smart-contracts/contracts/modules/module-3.clar +2 -0
- package/smart-contracts/contracts/modules/module-30.clar +2 -0
- package/smart-contracts/contracts/modules/module-31.clar +2 -0
- package/smart-contracts/contracts/modules/module-32.clar +2 -0
- package/smart-contracts/contracts/modules/module-33.clar +2 -0
- package/smart-contracts/contracts/modules/module-34.clar +2 -0
- package/smart-contracts/contracts/modules/module-35.clar +2 -0
- package/smart-contracts/contracts/modules/module-36.clar +2 -0
- package/smart-contracts/contracts/modules/module-37.clar +2 -0
- package/smart-contracts/contracts/modules/module-38.clar +2 -0
- package/smart-contracts/contracts/modules/module-39.clar +2 -0
- package/smart-contracts/contracts/modules/module-4.clar +2 -0
- package/smart-contracts/contracts/modules/module-40.clar +2 -0
- package/smart-contracts/contracts/modules/module-41.clar +2 -0
- package/smart-contracts/contracts/modules/module-42.clar +2 -0
- package/smart-contracts/contracts/modules/module-43.clar +2 -0
- package/smart-contracts/contracts/modules/module-44.clar +2 -0
- package/smart-contracts/contracts/modules/module-45.clar +2 -0
- package/smart-contracts/contracts/modules/module-46.clar +2 -0
- package/smart-contracts/contracts/modules/module-47.clar +2 -0
- package/smart-contracts/contracts/modules/module-48.clar +2 -0
- package/smart-contracts/contracts/modules/module-49.clar +2 -0
- package/smart-contracts/contracts/modules/module-5.clar +2 -0
- package/smart-contracts/contracts/modules/module-50.clar +2 -0
- package/smart-contracts/contracts/modules/module-51.clar +2 -0
- package/smart-contracts/contracts/modules/module-52.clar +2 -0
- package/smart-contracts/contracts/modules/module-53.clar +2 -0
- package/smart-contracts/contracts/modules/module-54.clar +2 -0
- package/smart-contracts/contracts/modules/module-55.clar +2 -0
- package/smart-contracts/contracts/modules/module-56.clar +2 -0
- package/smart-contracts/contracts/modules/module-57.clar +2 -0
- package/smart-contracts/contracts/modules/module-58.clar +2 -0
- package/smart-contracts/contracts/modules/module-59.clar +2 -0
- package/smart-contracts/contracts/modules/module-6.clar +2 -0
- package/smart-contracts/contracts/modules/module-60.clar +2 -0
- package/smart-contracts/contracts/modules/module-61.clar +2 -0
- package/smart-contracts/contracts/modules/module-62.clar +2 -0
- package/smart-contracts/contracts/modules/module-63.clar +2 -0
- package/smart-contracts/contracts/modules/module-64.clar +2 -0
- package/smart-contracts/contracts/modules/module-65.clar +2 -0
- package/smart-contracts/contracts/modules/module-66.clar +2 -0
- package/smart-contracts/contracts/modules/module-67.clar +2 -0
- package/smart-contracts/contracts/modules/module-68.clar +2 -0
- package/smart-contracts/contracts/modules/module-69.clar +2 -0
- package/smart-contracts/contracts/modules/module-7.clar +2 -0
- package/smart-contracts/contracts/modules/module-70.clar +2 -0
- package/smart-contracts/contracts/modules/module-71.clar +2 -0
- package/smart-contracts/contracts/modules/module-72.clar +2 -0
- package/smart-contracts/contracts/modules/module-73.clar +2 -0
- package/smart-contracts/contracts/modules/module-74.clar +2 -0
- package/smart-contracts/contracts/modules/module-75.clar +2 -0
- package/smart-contracts/contracts/modules/module-76.clar +2 -0
- package/smart-contracts/contracts/modules/module-77.clar +2 -0
- package/smart-contracts/contracts/modules/module-78.clar +2 -0
- package/smart-contracts/contracts/modules/module-79.clar +2 -0
- package/smart-contracts/contracts/modules/module-8.clar +2 -0
- package/smart-contracts/contracts/modules/module-80.clar +2 -0
- package/smart-contracts/contracts/modules/module-81.clar +2 -0
- package/smart-contracts/contracts/modules/module-82.clar +2 -0
- package/smart-contracts/contracts/modules/module-83.clar +2 -0
- package/smart-contracts/contracts/modules/module-84.clar +2 -0
- package/smart-contracts/contracts/modules/module-85.clar +2 -0
- package/smart-contracts/contracts/modules/module-86.clar +2 -0
- package/smart-contracts/contracts/modules/module-87.clar +2 -0
- package/smart-contracts/contracts/modules/module-88.clar +2 -0
- package/smart-contracts/contracts/modules/module-89.clar +2 -0
- package/smart-contracts/contracts/modules/module-9.clar +2 -0
- package/smart-contracts/contracts/modules/module-90.clar +2 -0
- package/smart-contracts/contracts/modules/module-91.clar +2 -0
- package/smart-contracts/contracts/modules/module-92.clar +2 -0
- package/smart-contracts/contracts/modules/module-93.clar +2 -0
- package/smart-contracts/contracts/modules/module-94.clar +2 -0
- package/smart-contracts/contracts/modules/module-95.clar +2 -0
- package/smart-contracts/contracts/modules/module-96.clar +2 -0
- package/smart-contracts/contracts/modules/module-97.clar +2 -0
- package/smart-contracts/contracts/modules/module-98.clar +2 -0
- package/smart-contracts/contracts/modules/module-99.clar +2 -0
- package/smart-contracts/contracts/reputation-engine.clar +131 -0
- package/smart-contracts/contracts/sip-010-trait.clar +38 -0
- package/smart-contracts/contracts/staking-refinery-v3.clar +138 -0
- package/smart-contracts/contracts/staking-refinery-v4.clar +125 -0
- package/smart-contracts/contracts/staking-refinery-v5.clar +153 -0
- package/smart-contracts/contracts/staking-refinery-v6.clar +122 -0
- package/smart-contracts/contracts/staking-refinery-v7.clar +144 -0
- package/smart-contracts/contracts/staking-refinery.clar +80 -0
- package/smart-contracts/contracts/token-one-v3.clar +74 -0
- package/smart-contracts/contracts/token-one-v4.clar +51 -0
- package/smart-contracts/contracts/token-one-v5.clar +78 -0
- package/smart-contracts/contracts/token-one-v6.clar +91 -0
- package/smart-contracts/contracts/token-one-v7.clar +79 -0
- package/smart-contracts/contracts/token-one.clar +86 -0
- package/smart-contracts/contracts/token-poin-trait.clar +35 -0
- package/smart-contracts/contracts/token-poin-v3.clar +87 -0
- package/smart-contracts/contracts/token-poin-v4.clar +72 -0
- package/smart-contracts/contracts/token-poin-v5.clar +68 -0
- package/smart-contracts/contracts/token-poin-v6.clar +61 -0
- package/smart-contracts/contracts/token-poin-v7.clar +55 -0
- package/smart-contracts/contracts/token-poin.clar +85 -0
- package/smart-contracts/contracts/utility-gacha.clar +69 -0
- package/smart-contracts/deployments/default.mainnet-plan.yaml +18 -0
- package/smart-contracts/mission-mini-001.clar +0 -0
- package/smart-contracts/mission-mini-002.clar +0 -0
- package/smart-contracts/mission-mini-003.clar +0 -0
- package/smart-contracts/mission-mini-004.clar +0 -0
- package/smart-contracts/mission-mini-005.clar +0 -0
- package/smart-contracts/package-lock.json +2990 -0
- package/smart-contracts/package.json +24 -0
- package/smart-contracts/scripts/interact-modules.ts +1 -0
- package/smart-contracts/settings/Devnet.toml +155 -0
- package/smart-contracts/tests/genesis-badges.test.ts +21 -0
- package/smart-contracts/tests/genesis-core.test.ts +21 -0
- package/smart-contracts/tests/genesis-missions.test.ts +21 -0
- package/smart-contracts/tests/interact-reputation.ts +8 -0
- package/smart-contracts/tests/reputation-engine.test.ts +41 -0
- package/smart-contracts/tests/reputation.test.ts +15 -0
- package/smart-contracts/tests/token-one.test.ts +102 -0
- package/smart-contracts/tsconfig.json +26 -0
- package/smart-contracts/vitest.config.js +42 -0
- package/src/App.css +42 -0
- package/src/App.jsx +357 -0
- package/src/assets/react.svg +1 -0
- package/src/components/Layout.jsx +114 -0
- package/src/helper.js +153 -0
- package/src/index.css +21 -0
- package/src/main.jsx +160 -0
- package/src/pages/Gaming.jsx +177 -0
- package/src/pages/Home.jsx +153 -0
- package/src/pages/LeaderboardCard.tsx +93 -0
- package/src/pages/Profile.jsx +299 -0
- package/src/pages/Tasks.jsx +128 -0
- package/src/pages/Vault.jsx +524 -0
- package/src/polyfills.js +126 -0
- package/src/supabaseClient.js +141 -0
- package/src/utils.js +166 -0
- package/tailwind.config.js +42 -0
- package/temp-log.txt +4 -0
- package/vercel.json +8 -0
- package/vite.config.js +34 -0
package/docs/notes.md
ADDED
package/eslint.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
6
|
+
|
|
7
|
+
export default defineConfig([
|
|
8
|
+
globalIgnores(['dist']),
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.{js,jsx}'],
|
|
11
|
+
extends: [
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
reactHooks.configs.flat.recommended,
|
|
14
|
+
reactRefresh.configs.vite,
|
|
15
|
+
],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
ecmaVersion: 2020,
|
|
18
|
+
globals: globals.browser,
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 'latest',
|
|
21
|
+
ecmaFeatures: { jsx: true },
|
|
22
|
+
sourceType: 'module',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
rules: {
|
|
26
|
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
])
|
package/index.html
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/png" href="/logo.png" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
|
|
8
|
+
<!-- Talent Protocol Verification -->
|
|
9
|
+
<meta
|
|
10
|
+
name="talentapp:project_verification"
|
|
11
|
+
content="52e65cf5638f22a95fbe23a77b09ace8f2edbd843a8a4cbb8be64932acbc3d01823eeeef2738b9782ef653d5d6573d31fa71ceadf26afff175d4b833ebd7e4fc"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<title>Stacks Tool | Secure Mint</title>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
window.global = window;
|
|
18
|
+
</script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<div id="root"></div>
|
|
22
|
+
<script type="module" src="/src/main.jsx"></script>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
package/nonce.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
490
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
387
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
27
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
352
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
341
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
329
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
27
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
28
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
27
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
27
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
27
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bayybays/stacksone-sdk",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "The official high-performance SDK for StacksOne ecosystem. Tools and utilities for Clarity smart contracts and Web3 integration.",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/bayyubenjamin/stacksone.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/bayyubenjamin/stacksone/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/bayyubenjamin/stacksone#readme",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"preview": "vite preview"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"stacks",
|
|
23
|
+
"clarity",
|
|
24
|
+
"stacks-blockchain",
|
|
25
|
+
"stacksone",
|
|
26
|
+
"web3",
|
|
27
|
+
"smart-contract",
|
|
28
|
+
"sdk"
|
|
29
|
+
],
|
|
30
|
+
"author": "bayybays",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@stacks/auth": "^6.13.0",
|
|
34
|
+
"@stacks/common": "^6.13.0",
|
|
35
|
+
"@stacks/connect": "^7.2.0",
|
|
36
|
+
"@stacks/encryption": "^6.13.0",
|
|
37
|
+
"@stacks/network": "^6.13.0",
|
|
38
|
+
"@stacks/transactions": "^6.13.0",
|
|
39
|
+
"@supabase/supabase-js": "^2.39.0",
|
|
40
|
+
"buffer": "^6.0.3",
|
|
41
|
+
"lucide-react": "^0.468.0",
|
|
42
|
+
"react": "^18.3.1",
|
|
43
|
+
"react-dom": "^18.3.1",
|
|
44
|
+
"react-router-dom": "^6.28.1",
|
|
45
|
+
"stream-browserify": "^3.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.17.0",
|
|
49
|
+
"@types/react": "^18.3.12",
|
|
50
|
+
"@types/react-dom": "^18.3.1",
|
|
51
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
52
|
+
"autoprefixer": "^10.4.20",
|
|
53
|
+
"eslint": "^9.17.0",
|
|
54
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
55
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
56
|
+
"globals": "^15.14.0",
|
|
57
|
+
"postcss": "^8.4.49",
|
|
58
|
+
"tailwindcss": "^3.4.16",
|
|
59
|
+
"vite": "^6.0.5",
|
|
60
|
+
"vite-plugin-node-polyfills": "^0.22.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{@bayybays/stacksone-sdk
|
|
2
|
+
"name": "@bayybays/stacks-tool",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Stacks smart contract tools and utilities",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/bayyubenjamin/stacksone.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/bayyubenjamin/stacksone/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/bayyubenjamin/stacksone#readme",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"preview": "vite preview"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"stacks",
|
|
23
|
+
"clarity",
|
|
24
|
+
"stacks-blockchain",
|
|
25
|
+
"web3",
|
|
26
|
+
"smart-contract"
|
|
27
|
+
],
|
|
28
|
+
"author": "bayybays",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@stacks/auth": "^6.13.0",
|
|
32
|
+
"@stacks/common": "^6.13.0",
|
|
33
|
+
"@stacks/connect": "^7.2.0",
|
|
34
|
+
"@stacks/encryption": "^6.13.0",
|
|
35
|
+
"@stacks/network": "^6.13.0",
|
|
36
|
+
"@stacks/transactions": "^6.13.0",
|
|
37
|
+
"@supabase/supabase-js": "^2.95.3",
|
|
38
|
+
"buffer": "^6.0.3",
|
|
39
|
+
"lucide-react": "^0.568.0",
|
|
40
|
+
"react": "^19.2.0",
|
|
41
|
+
"react-dom": "^19.2.0",
|
|
42
|
+
"react-router-dom": "^7.13.1",
|
|
43
|
+
"stream-browserify": "^3.0.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@eslint/js": "^9.39.1",
|
|
47
|
+
"@types/react": "^19.2.7",
|
|
48
|
+
"@types/react-dom": "^19.2.3",
|
|
49
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
50
|
+
"autoprefixer": "^10.4.24",
|
|
51
|
+
"eslint": "^9.39.1",
|
|
52
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
53
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
54
|
+
"globals": "^16.5.0",
|
|
55
|
+
"postcss": "^8.5.6",
|
|
56
|
+
"tailwindcss": "^3.4.17",
|
|
57
|
+
"vite": "^5.4.11",
|
|
58
|
+
"vite-plugin-node-polyfills": "^0.22.0"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/public/logo.png
ADDED
|
Binary file
|
package/public/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"label": "check contracts",
|
|
7
|
+
"group": "test",
|
|
8
|
+
"type": "shell",
|
|
9
|
+
"command": "clarinet check"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "npm",
|
|
13
|
+
"script": "test",
|
|
14
|
+
"group": "test",
|
|
15
|
+
"problemMatcher": [],
|
|
16
|
+
"label": "npm test"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
;; ChainTap - on-chain tapping game
|
|
2
|
+
;; Unlimited taps, all recorded on-chain
|
|
3
|
+
|
|
4
|
+
;; Global total taps
|
|
5
|
+
(define-data-var total-taps uint u0)
|
|
6
|
+
|
|
7
|
+
;; Per-user tap count
|
|
8
|
+
(define-map user-taps principal uint)
|
|
9
|
+
|
|
10
|
+
;; Top 10 leaderboard storage
|
|
11
|
+
(define-data-var top-1 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
12
|
+
(define-data-var top-2 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
13
|
+
(define-data-var top-3 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
14
|
+
(define-data-var top-4 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
15
|
+
(define-data-var top-5 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
16
|
+
(define-data-var top-6 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
17
|
+
(define-data-var top-7 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
18
|
+
(define-data-var top-8 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
19
|
+
(define-data-var top-9 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
20
|
+
(define-data-var top-10 {who: principal, taps: uint} {who: tx-sender, taps: u0})
|
|
21
|
+
|
|
22
|
+
;; Main tap function
|
|
23
|
+
(define-public (tap)
|
|
24
|
+
(let
|
|
25
|
+
(
|
|
26
|
+
(caller tx-sender)
|
|
27
|
+
(current (default-to u0 (map-get? user-taps caller)))
|
|
28
|
+
(new-count (+ current u1))
|
|
29
|
+
)
|
|
30
|
+
;; Update user taps
|
|
31
|
+
(map-set user-taps caller new-count)
|
|
32
|
+
;; Update global counter
|
|
33
|
+
(var-set total-taps (+ (var-get total-taps) u1))
|
|
34
|
+
;; Update leaderboard
|
|
35
|
+
(update-leaderboard caller new-count)
|
|
36
|
+
(ok new-count)
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
;; Leaderboard update - bubble insert
|
|
41
|
+
(define-private (update-leaderboard (who principal) (taps uint))
|
|
42
|
+
(begin
|
|
43
|
+
(if (>= taps (get taps (var-get top-10)))
|
|
44
|
+
(begin
|
|
45
|
+
(var-set top-10 {who: who, taps: taps})
|
|
46
|
+
(bubble-up-9)
|
|
47
|
+
)
|
|
48
|
+
true
|
|
49
|
+
)
|
|
50
|
+
true
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
(define-private (bubble-up-9)
|
|
55
|
+
(if (>= (get taps (var-get top-10)) (get taps (var-get top-9)))
|
|
56
|
+
(let ((tmp (var-get top-9)))
|
|
57
|
+
(var-set top-9 (var-get top-10))
|
|
58
|
+
(var-set top-10 tmp)
|
|
59
|
+
(bubble-up-8)
|
|
60
|
+
)
|
|
61
|
+
true
|
|
62
|
+
)
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
(define-private (bubble-up-8)
|
|
66
|
+
(if (>= (get taps (var-get top-9)) (get taps (var-get top-8)))
|
|
67
|
+
(let ((tmp (var-get top-8)))
|
|
68
|
+
(var-set top-8 (var-get top-9))
|
|
69
|
+
(var-set top-9 tmp)
|
|
70
|
+
(bubble-up-7)
|
|
71
|
+
)
|
|
72
|
+
true
|
|
73
|
+
)
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
(define-private (bubble-up-7)
|
|
77
|
+
(if (>= (get taps (var-get top-8)) (get taps (var-get top-7)))
|
|
78
|
+
(let ((tmp (var-get top-7)))
|
|
79
|
+
(var-set top-7 (var-get top-8))
|
|
80
|
+
(var-set top-8 tmp)
|
|
81
|
+
(bubble-up-6)
|
|
82
|
+
)
|
|
83
|
+
true
|
|
84
|
+
)
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
(define-private (bubble-up-6)
|
|
88
|
+
(if (>= (get taps (var-get top-7)) (get taps (var-get top-6)))
|
|
89
|
+
(let ((tmp (var-get top-6)))
|
|
90
|
+
(var-set top-6 (var-get top-7))
|
|
91
|
+
(var-set top-7 tmp)
|
|
92
|
+
(bubble-up-5)
|
|
93
|
+
)
|
|
94
|
+
true
|
|
95
|
+
)
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
(define-private (bubble-up-5)
|
|
99
|
+
(if (>= (get taps (var-get top-6)) (get taps (var-get top-5)))
|
|
100
|
+
(let ((tmp (var-get top-5)))
|
|
101
|
+
(var-set top-5 (var-get top-6))
|
|
102
|
+
(var-set top-6 tmp)
|
|
103
|
+
(bubble-up-4)
|
|
104
|
+
)
|
|
105
|
+
true
|
|
106
|
+
)
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
(define-private (bubble-up-4)
|
|
110
|
+
(if (>= (get taps (var-get top-5)) (get taps (var-get top-4)))
|
|
111
|
+
(let ((tmp (var-get top-4)))
|
|
112
|
+
(var-set top-4 (var-get top-5))
|
|
113
|
+
(var-set top-5 tmp)
|
|
114
|
+
(bubble-up-3)
|
|
115
|
+
)
|
|
116
|
+
true
|
|
117
|
+
)
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
(define-private (bubble-up-3)
|
|
121
|
+
(if (>= (get taps (var-get top-4)) (get taps (var-get top-3)))
|
|
122
|
+
(let ((tmp (var-get top-3)))
|
|
123
|
+
(var-set top-3 (var-get top-4))
|
|
124
|
+
(var-set top-4 tmp)
|
|
125
|
+
(bubble-up-2)
|
|
126
|
+
)
|
|
127
|
+
true
|
|
128
|
+
)
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
(define-private (bubble-up-2)
|
|
132
|
+
(if (>= (get taps (var-get top-3)) (get taps (var-get top-2)))
|
|
133
|
+
(let ((tmp (var-get top-2)))
|
|
134
|
+
(var-set top-2 (var-get top-3))
|
|
135
|
+
(var-set top-3 tmp)
|
|
136
|
+
(bubble-up-1)
|
|
137
|
+
)
|
|
138
|
+
true
|
|
139
|
+
)
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
(define-private (bubble-up-1)
|
|
143
|
+
(if (>= (get taps (var-get top-2)) (get taps (var-get top-1)))
|
|
144
|
+
(let ((tmp (var-get top-1)))
|
|
145
|
+
(var-set top-1 (var-get top-2))
|
|
146
|
+
(var-set top-2 tmp)
|
|
147
|
+
true
|
|
148
|
+
)
|
|
149
|
+
true
|
|
150
|
+
)
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
;; Read-only functions
|
|
154
|
+
|
|
155
|
+
(define-read-only (get-total-taps)
|
|
156
|
+
(var-get total-taps)
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
(define-read-only (get-user-taps (user principal))
|
|
160
|
+
(default-to u0 (map-get? user-taps user))
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
(define-read-only (get-leaderboard)
|
|
164
|
+
(list
|
|
165
|
+
(var-get top-1)
|
|
166
|
+
(var-get top-2)
|
|
167
|
+
(var-get top-3)
|
|
168
|
+
(var-get top-4)
|
|
169
|
+
(var-get top-5)
|
|
170
|
+
(var-get top-6)
|
|
171
|
+
(var-get top-7)
|
|
172
|
+
(var-get top-8)
|
|
173
|
+
(var-get top-9)
|
|
174
|
+
(var-get top-10)
|
|
175
|
+
)
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
(define-public (ping-13)
|
|
179
|
+
(ok true))
|
|
180
|
+
|
|
181
|
+
(define-public (ping-251)
|
|
182
|
+
(ok true))
|
|
183
|
+
|
|
184
|
+
(define-public (ping-83)
|
|
185
|
+
(ok true))
|
|
186
|
+
|
|
187
|
+
(define-public (ping-224)
|
|
188
|
+
(ok true))
|
|
189
|
+
|
|
190
|
+
(define-public (ping-48)
|
|
191
|
+
(ok true))
|
|
192
|
+
|
|
193
|
+
(define-public (ping-75)
|
|
194
|
+
(ok true))
|
|
195
|
+
|
|
196
|
+
(define-public (ping-30)
|
|
197
|
+
(ok true))
|
|
198
|
+
|
|
199
|
+
(define-public (ping-146)
|
|
200
|
+
(ok true))
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
(define-read-only (get-value-62)
|
|
2
|
+
(ok u62))
|
|
3
|
+
|
|
4
|
+
(define-public (ping-43)
|
|
5
|
+
(ok true))
|
|
6
|
+
|
|
7
|
+
(define-public (ping-115)
|
|
8
|
+
(ok true))
|
|
9
|
+
|
|
10
|
+
(define-public (ping-188)
|
|
11
|
+
(ok true))
|
|
12
|
+
|
|
13
|
+
(define-public (ping-87)
|
|
14
|
+
(ok true))
|
|
15
|
+
|
|
16
|
+
(define-public (ping-38)
|
|
17
|
+
(ok true))
|
|
18
|
+
|
|
19
|
+
(define-public (ping-67)
|
|
20
|
+
(ok true))
|
|
21
|
+
|
|
22
|
+
(define-public (ping-36)
|
|
23
|
+
(ok true))
|
|
24
|
+
|
|
25
|
+
(define-public (ping-127)
|
|
26
|
+
(ok true))
|
|
27
|
+
|
|
28
|
+
(define-public (ping-6)
|
|
29
|
+
(ok true))
|
|
30
|
+
|
|
31
|
+
(define-public (ping-119)
|
|
32
|
+
(ok true))
|
|
33
|
+
|
|
34
|
+
(define-public (ping-10)
|
|
35
|
+
(ok true))
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(define-public (hello-19)
|
|
2
|
+
(ok true))
|
|
3
|
+
|
|
4
|
+
(define-public (ping-102)
|
|
5
|
+
(ok true))
|
|
6
|
+
|
|
7
|
+
(define-public (ping-21)
|
|
8
|
+
(ok true))
|
|
9
|
+
|
|
10
|
+
(define-public (ping-63)
|
|
11
|
+
(ok true))
|
|
12
|
+
|
|
13
|
+
(define-public (ping-55)
|
|
14
|
+
(ok true))
|
|
15
|
+
|
|
16
|
+
(define-public (ping-55)
|
|
17
|
+
(ok true))
|
|
18
|
+
|
|
19
|
+
(define-public (ping-5)
|
|
20
|
+
(ok true))
|
|
21
|
+
|
|
22
|
+
(define-public (ping-59)
|
|
23
|
+
(ok true))
|
|
24
|
+
|
|
25
|
+
(define-public (ping-158)
|
|
26
|
+
(ok true))
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(define-public (hello-32)
|
|
2
|
+
(ok true))
|
|
3
|
+
(define-public (hello-142)
|
|
4
|
+
(ok true))
|
|
5
|
+
|
|
6
|
+
(define-public (ping-3)
|
|
7
|
+
(ok true))
|
|
8
|
+
|
|
9
|
+
(define-public (ping-13)
|
|
10
|
+
(ok true))
|
|
11
|
+
|
|
12
|
+
(define-public (ping-38)
|
|
13
|
+
(ok true))
|
|
14
|
+
|
|
15
|
+
(define-public (ping-123)
|
|
16
|
+
(ok true))
|
|
17
|
+
|
|
18
|
+
(define-public (ping-137)
|
|
19
|
+
(ok true))
|
|
20
|
+
|
|
21
|
+
(define-public (ping-41)
|
|
22
|
+
(ok true))
|
|
23
|
+
|
|
24
|
+
(define-public (ping-134)
|
|
25
|
+
(ok true))
|
|
26
|
+
|
|
27
|
+
(define-public (ping-249)
|
|
28
|
+
(ok true))
|
|
29
|
+
|
|
30
|
+
(define-public (ping-99)
|
|
31
|
+
(ok true))
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
(define-public (hello-106)
|
|
2
|
+
(ok true))
|
|
3
|
+
(define-public (hello-130)
|
|
4
|
+
(ok true))
|
|
5
|
+
(define-public (hello-9)
|
|
6
|
+
(ok true))
|
|
7
|
+
(define-public (hello-27)
|
|
8
|
+
(ok true))
|
|
9
|
+
|
|
10
|
+
(define-public (ping-46)
|
|
11
|
+
(ok true))
|
|
12
|
+
|
|
13
|
+
(define-public (ping-55)
|
|
14
|
+
(ok true))
|
|
15
|
+
|
|
16
|
+
(define-public (ping-131)
|
|
17
|
+
(ok true))
|
|
18
|
+
|
|
19
|
+
(define-public (ping-127)
|
|
20
|
+
(ok true))
|
|
21
|
+
|
|
22
|
+
(define-public (ping-56)
|
|
23
|
+
(ok true))
|
|
24
|
+
|
|
25
|
+
(define-public (ping-95)
|
|
26
|
+
(ok true))
|
|
27
|
+
|
|
28
|
+
(define-public (ping-51)
|
|
29
|
+
(ok true))
|
|
30
|
+
|
|
31
|
+
(define-public (ping-86)
|
|
32
|
+
(ok true))
|
|
33
|
+
|
|
34
|
+
(define-public (ping-112)
|
|
35
|
+
(ok true))
|
|
36
|
+
|
|
37
|
+
(define-public (ping-182)
|
|
38
|
+
(ok true))
|
|
39
|
+
|
|
40
|
+
(define-public (ping-225)
|
|
41
|
+
(ok true))
|
|
42
|
+
|
|
43
|
+
(define-public (ping-29)
|
|
44
|
+
(ok true))
|
|
45
|
+
|
|
46
|
+
(define-public (ping-57)
|
|
47
|
+
(ok true))
|
|
48
|
+
|
|
49
|
+
(define-public (ping-187)
|
|
50
|
+
(ok true))
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
(define-public (hello-94)
|
|
2
|
+
(ok true))
|
|
3
|
+
(define-public (hello-33)
|
|
4
|
+
(ok true))
|
|
5
|
+
|
|
6
|
+
(define-public (ping-4)
|
|
7
|
+
(ok true))
|
|
8
|
+
|
|
9
|
+
(define-public (ping-31)
|
|
10
|
+
(ok true))
|
|
11
|
+
|
|
12
|
+
(define-public (ping-107)
|
|
13
|
+
(ok true))
|
|
14
|
+
|
|
15
|
+
(define-public (ping-237)
|
|
16
|
+
(ok true))
|
|
17
|
+
|
|
18
|
+
(define-public (ping-260)
|
|
19
|
+
(ok true))
|
|
20
|
+
|
|
21
|
+
(define-public (ping-78)
|
|
22
|
+
(ok true))
|
|
23
|
+
|
|
24
|
+
(define-public (ping-84)
|
|
25
|
+
(ok true))
|