create-dubhe 1.2.0-pre.98 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/package.json +16 -16
  4. package/templates/101/sui-template/docker-compose.testnet.yml +73 -0
  5. package/templates/101/sui-template/packages/client/src/app/page.tsx +545 -41
  6. package/templates/101/sui-template/packages/client/src/app/providers.tsx +12 -4
  7. package/templates/101/sui-template/packages/contracts/Pub.localnet.toml +4 -4
  8. package/templates/101/sui-template/packages/contracts/counter.lock.json +20 -0
  9. package/templates/101/sui-template/packages/contracts/deployment.ts +8 -3
  10. package/templates/101/sui-template/packages/contracts/dubhe.config.json +59 -13
  11. package/templates/101/sui-template/packages/contracts/dubhe.config.ts +1 -4
  12. package/templates/101/sui-template/packages/contracts/metadata.json +1015 -68
  13. package/templates/101/sui-template/packages/contracts/package.json +7 -4
  14. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/dapp_key.move +45 -31
  15. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/error.move +8 -0
  16. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/genesis.move +30 -13
  17. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/init_test.move +19 -14
  18. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/resources/counter2.move +198 -0
  19. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/resources/counter2withkey.move +90 -0
  20. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/resources/value.move +30 -20
  21. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/user_storage_init.move +26 -0
  22. package/templates/101/sui-template/packages/contracts/src/counter/sources/scripts/deploy_hook.move +6 -11
  23. package/templates/101/sui-template/packages/contracts/src/counter/sources/systems/counter.move +23 -11
  24. package/templates/101/sui-template/packages/contracts/src/counter/sources/tests/counter.move +15 -14
  25. package/templates/101/sui-template/packages/contracts/src/dubhe/Move.lock +33 -30
  26. package/templates/101/sui-template/packages/contracts/src/dubhe/Move.toml +8 -3
  27. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/dapp_key.move +45 -31
  28. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/error.move +170 -0
  29. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/genesis.move +16 -13
  30. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/init_test.move +8 -14
  31. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/core/account_key.move +1 -3
  32. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/core/dapp_service.move +1776 -137
  33. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/core/data_key.move +1 -20
  34. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/core/events.move +864 -25
  35. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/scripts/deploy_hook.move +15 -16
  36. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/scripts/migrate.move +0 -3
  37. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/systems/address_system.move +25 -17
  38. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/systems/dapp_system.move +2802 -343
  39. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/systems/utils.move +1 -1
  40. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/address.move +173 -55
  41. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/dapp_test.move +769 -0
  42. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/fee_test.move +2965 -0
  43. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/integration_test.move +303 -0
  44. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/listing_test.move +1422 -0
  45. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/scene_session_test.move +269 -0
  46. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/session_test.move +624 -0
  47. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/storage_test.move +700 -0
  48. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/typed_object_test.move +177 -0
  49. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/typed_scene_test.move +452 -0
  50. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/tests/user_storage_test.move +160 -0
  51. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/utils/math.move +4 -3
  52. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/utils/type_info.move +2 -2
  53. package/templates/contract/sui-template/dubhe.config.ts +0 -1
  54. package/templates/contract/sui-template/package.json +3 -3
  55. package/templates/contract/sui-template/src/dubhe/Move.lock +33 -30
  56. package/templates/contract/sui-template/src/dubhe/Move.toml +8 -3
  57. package/templates/contract/sui-template/src/dubhe/sources/codegen/dapp_key.move +45 -31
  58. package/templates/contract/sui-template/src/dubhe/sources/codegen/error.move +170 -0
  59. package/templates/contract/sui-template/src/dubhe/sources/codegen/genesis.move +16 -13
  60. package/templates/contract/sui-template/src/dubhe/sources/codegen/init_test.move +8 -14
  61. package/templates/contract/sui-template/src/dubhe/sources/core/account_key.move +1 -3
  62. package/templates/contract/sui-template/src/dubhe/sources/core/dapp_service.move +1776 -137
  63. package/templates/contract/sui-template/src/dubhe/sources/core/data_key.move +1 -20
  64. package/templates/contract/sui-template/src/dubhe/sources/core/events.move +864 -25
  65. package/templates/contract/sui-template/src/dubhe/sources/scripts/deploy_hook.move +15 -16
  66. package/templates/contract/sui-template/src/dubhe/sources/scripts/migrate.move +0 -3
  67. package/templates/contract/sui-template/src/dubhe/sources/systems/address_system.move +25 -17
  68. package/templates/contract/sui-template/src/dubhe/sources/systems/dapp_system.move +2802 -343
  69. package/templates/contract/sui-template/src/dubhe/sources/systems/utils.move +1 -1
  70. package/templates/contract/sui-template/src/dubhe/sources/tests/address.move +173 -55
  71. package/templates/contract/sui-template/src/dubhe/sources/tests/dapp_test.move +769 -0
  72. package/templates/contract/sui-template/src/dubhe/sources/tests/fee_test.move +2965 -0
  73. package/templates/contract/sui-template/src/dubhe/sources/tests/integration_test.move +303 -0
  74. package/templates/contract/sui-template/src/dubhe/sources/tests/listing_test.move +1422 -0
  75. package/templates/contract/sui-template/src/dubhe/sources/tests/scene_session_test.move +269 -0
  76. package/templates/contract/sui-template/src/dubhe/sources/tests/session_test.move +624 -0
  77. package/templates/contract/sui-template/src/dubhe/sources/tests/storage_test.move +700 -0
  78. package/templates/contract/sui-template/src/dubhe/sources/tests/typed_object_test.move +177 -0
  79. package/templates/contract/sui-template/src/dubhe/sources/tests/typed_scene_test.move +452 -0
  80. package/templates/contract/sui-template/src/dubhe/sources/tests/user_storage_test.move +160 -0
  81. package/templates/contract/sui-template/src/dubhe/sources/utils/math.move +4 -3
  82. package/templates/contract/sui-template/src/dubhe/sources/utils/type_info.move +2 -2
  83. package/templates/contract/sui-template/src/template/Move.toml +12 -0
  84. package/templates/contract/sui-template/src/template/sources/codegen/dapp_key.move +47 -0
  85. package/templates/contract/sui-template/src/template/sources/codegen/genesis.move +34 -0
  86. package/templates/contract/sui-template/src/template/sources/codegen/init_test.move +23 -0
  87. package/templates/contract/sui-template/src/template/sources/codegen/user_storage_init.move +27 -0
  88. package/templates/contract/sui-template/src/template/sources/scripts/deploy_hook.move +13 -0
  89. package/templates/contract/sui-template/src/template/sources/scripts/migrate.move +7 -0
  90. package/templates/nextjs/sui-card-duel/.gitignore_ +51 -0
  91. package/templates/nextjs/sui-card-duel/README.md +213 -0
  92. package/templates/nextjs/sui-card-duel/docker-compose.yml +34 -0
  93. package/templates/nextjs/sui-card-duel/mprocs.yaml +17 -0
  94. package/templates/nextjs/sui-card-duel/package.json +43 -0
  95. package/templates/nextjs/sui-card-duel/packages/client/.gitignore_ +48 -0
  96. package/templates/nextjs/sui-card-duel/packages/client/.prettierignore +1 -0
  97. package/templates/nextjs/sui-card-duel/packages/client/.prettierrc.json +8 -0
  98. package/templates/nextjs/sui-card-duel/packages/client/eslint.config.mjs +22 -0
  99. package/templates/nextjs/sui-card-duel/packages/client/next.config.mjs +8 -0
  100. package/templates/nextjs/sui-card-duel/packages/client/package.json +47 -0
  101. package/templates/nextjs/sui-card-duel/packages/client/postcss.config.mjs +8 -0
  102. package/templates/nextjs/sui-card-duel/packages/client/src/app/admin/ArenaPanel.tsx +307 -0
  103. package/templates/nextjs/sui-card-duel/packages/client/src/app/admin/page.tsx +622 -0
  104. package/templates/nextjs/sui-card-duel/packages/client/src/app/brawl/[id]/page.tsx +559 -0
  105. package/templates/nextjs/sui-card-duel/packages/client/src/app/collection/page.tsx +202 -0
  106. package/templates/nextjs/sui-card-duel/packages/client/src/app/components/CardView.tsx +66 -0
  107. package/templates/nextjs/sui-card-duel/packages/client/src/app/components/GameShell.tsx +294 -0
  108. package/templates/nextjs/sui-card-duel/packages/client/src/app/components/icons.tsx +101 -0
  109. package/templates/nextjs/sui-card-duel/packages/client/src/app/duel/[id]/page.tsx +477 -0
  110. package/templates/nextjs/sui-card-duel/packages/client/src/app/favicon.ico +0 -0
  111. package/templates/nextjs/sui-card-duel/packages/client/src/app/globals.css +85 -0
  112. package/templates/nextjs/sui-card-duel/packages/client/src/app/hooks/useGame.ts +313 -0
  113. package/templates/nextjs/sui-card-duel/packages/client/src/app/layout.tsx +24 -0
  114. package/templates/nextjs/sui-card-duel/packages/client/src/app/leaderboard/page.tsx +123 -0
  115. package/templates/nextjs/sui-card-duel/packages/client/src/app/lib/game.ts +77 -0
  116. package/templates/nextjs/sui-card-duel/packages/client/src/app/lib/scenes.ts +226 -0
  117. package/templates/nextjs/sui-card-duel/packages/client/src/app/market/page.tsx +418 -0
  118. package/templates/nextjs/sui-card-duel/packages/client/src/app/page.tsx +427 -0
  119. package/templates/nextjs/sui-card-duel/packages/client/src/app/providers.tsx +69 -0
  120. package/templates/nextjs/sui-card-duel/packages/client/tailwind.config.ts +21 -0
  121. package/templates/nextjs/sui-card-duel/packages/client/tsconfig.json +30 -0
  122. package/templates/nextjs/sui-card-duel/packages/contracts/.gitignore_ +51 -0
  123. package/templates/nextjs/sui-card-duel/packages/contracts/.prettierignore +1 -0
  124. package/templates/nextjs/sui-card-duel/packages/contracts/.prettierrc.json +8 -0
  125. package/templates/nextjs/sui-card-duel/packages/contracts/Dockerfile +5 -0
  126. package/templates/nextjs/sui-card-duel/packages/contracts/Pub.localnet.toml +13 -0
  127. package/templates/nextjs/sui-card-duel/packages/contracts/card_duel.lock.json +66 -0
  128. package/templates/nextjs/sui-card-duel/packages/contracts/docker-compose.yml +34 -0
  129. package/templates/nextjs/sui-card-duel/packages/contracts/dubhe.config.ts +150 -0
  130. package/templates/nextjs/sui-card-duel/packages/contracts/logs/combined.log +31383 -0
  131. package/templates/nextjs/sui-card-duel/packages/contracts/package.json +49 -0
  132. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/config.ts +17 -0
  133. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/e2e-brawl.ts +270 -0
  134. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/e2e-duel.ts +272 -0
  135. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/e2e-lobby.ts +177 -0
  136. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/e2e-market.ts +219 -0
  137. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/e2e-session.ts +342 -0
  138. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/query-dapp-revenue.ts +95 -0
  139. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/seed.ts +92 -0
  140. package/templates/nextjs/sui-card-duel/packages/contracts/scripts/withdraw-dapp-revenue.ts +56 -0
  141. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/Move.toml +15 -0
  142. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/dapp_key.move +46 -0
  143. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/enums/card_kind.move +47 -0
  144. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/enums/match_state.move +37 -0
  145. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/enums/rarity.move +37 -0
  146. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/error.move +126 -0
  147. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/genesis.move +33 -0
  148. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/init_test.move +23 -0
  149. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/objects/arena.move +137 -0
  150. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/permits/brawl_permit.move +125 -0
  151. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/permits/duel_permit.move +125 -0
  152. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/resources/battle_state.move +255 -0
  153. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/resources/card.move +282 -0
  154. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/resources/deck.move +64 -0
  155. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/resources/game_config.move +267 -0
  156. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/resources/gold.move +205 -0
  157. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/resources/profile.move +255 -0
  158. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/scenes/brawl.move +313 -0
  159. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/scenes/duel.move +313 -0
  160. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/codegen/user_storage_init.move +26 -0
  161. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/scripts/deploy_hook.move +32 -0
  162. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/scripts/migrate.move +7 -0
  163. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/systems/arena_system.move +57 -0
  164. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/systems/brawl_system.move +559 -0
  165. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/systems/card_system.move +146 -0
  166. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/systems/duel_system.move +515 -0
  167. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/systems/market_system.move +115 -0
  168. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/systems/player_system.move +37 -0
  169. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/tests/brawl_tests.move +385 -0
  170. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/tests/duel_tests.move +656 -0
  171. package/templates/nextjs/sui-card-duel/packages/contracts/src/card_duel/sources/tests/test_helpers.move +31 -0
  172. package/templates/nextjs/sui-card-duel/packages/contracts/sui-indexer-schema.graphql +5973 -0
  173. package/templates/nextjs/sui-card-duel/pnpm-workspace.yaml +2 -0
  174. package/templates/nextjs/sui-farm/.gitignore_ +51 -0
  175. package/templates/nextjs/sui-farm/README.md +15 -0
  176. package/templates/nextjs/sui-farm/UPGRADE_NOTES.md +97 -0
  177. package/templates/nextjs/sui-farm/docker-compose.yml +34 -0
  178. package/templates/nextjs/sui-farm/mprocs.yaml +17 -0
  179. package/templates/nextjs/sui-farm/package.json +43 -0
  180. package/templates/nextjs/sui-farm/packages/client/.gitignore_ +48 -0
  181. package/templates/nextjs/sui-farm/packages/client/.prettierignore +1 -0
  182. package/templates/nextjs/sui-farm/packages/client/.prettierrc.json +8 -0
  183. package/templates/nextjs/sui-farm/packages/client/eslint.config.mjs +22 -0
  184. package/templates/nextjs/sui-farm/packages/client/next.config.mjs +8 -0
  185. package/templates/nextjs/sui-farm/packages/client/package.json +47 -0
  186. package/templates/nextjs/sui-farm/packages/client/postcss.config.mjs +8 -0
  187. package/templates/nextjs/sui-farm/packages/client/src/app/admin/page.tsx +618 -0
  188. package/templates/nextjs/sui-farm/packages/client/src/app/components/FarmLand.tsx +526 -0
  189. package/templates/nextjs/sui-farm/packages/client/src/app/components/FarmPlotCard.tsx +215 -0
  190. package/templates/nextjs/sui-farm/packages/client/src/app/components/PetAvatar.tsx +868 -0
  191. package/templates/nextjs/sui-farm/packages/client/src/app/components/PetPanel.tsx +1360 -0
  192. package/templates/nextjs/sui-farm/packages/client/src/app/components/PlantModal.tsx +147 -0
  193. package/templates/nextjs/sui-farm/packages/client/src/app/components/ProxyCard.tsx +684 -0
  194. package/templates/nextjs/sui-farm/packages/client/src/app/components/RanchLand.tsx +822 -0
  195. package/templates/nextjs/sui-farm/packages/client/src/app/components/ResourceHUD.tsx +125 -0
  196. package/templates/nextjs/sui-farm/packages/client/src/app/components/ShopPanel.tsx +232 -0
  197. package/templates/nextjs/sui-farm/packages/client/src/app/components/icons/GameIcons.tsx +574 -0
  198. package/templates/nextjs/sui-farm/packages/client/src/app/favicon.ico +0 -0
  199. package/templates/nextjs/sui-farm/packages/client/src/app/globals.css +423 -0
  200. package/templates/nextjs/sui-farm/packages/client/src/app/hooks/useWorldPermitId.ts +66 -0
  201. package/templates/nextjs/sui-farm/packages/client/src/app/layout.tsx +23 -0
  202. package/templates/nextjs/sui-farm/packages/client/src/app/leaderboard/page.tsx +185 -0
  203. package/templates/nextjs/sui-farm/packages/client/src/app/lib/crops.ts +97 -0
  204. package/templates/nextjs/sui-farm/packages/client/src/app/market/page.tsx +763 -0
  205. package/templates/nextjs/sui-farm/packages/client/src/app/page.tsx +1173 -0
  206. package/templates/nextjs/sui-farm/packages/client/src/app/providers.tsx +69 -0
  207. package/templates/nextjs/sui-farm/packages/client/src/app/state/index.tsx +5 -0
  208. package/templates/nextjs/sui-farm/packages/client/tailwind.config.ts +25 -0
  209. package/templates/nextjs/sui-farm/packages/client/tsconfig.json +30 -0
  210. package/templates/nextjs/sui-farm/packages/contracts/.gitignore_ +51 -0
  211. package/templates/nextjs/sui-farm/packages/contracts/.prettierignore +1 -0
  212. package/templates/nextjs/sui-farm/packages/contracts/.prettierrc.json +8 -0
  213. package/templates/nextjs/sui-farm/packages/contracts/Dockerfile +5 -0
  214. package/templates/nextjs/sui-farm/packages/contracts/Pub.localnet.toml +13 -0
  215. package/templates/nextjs/sui-farm/packages/contracts/counter.lock.json +14 -0
  216. package/templates/nextjs/sui-farm/packages/contracts/docker-compose.yml +34 -0
  217. package/templates/nextjs/sui-farm/packages/contracts/dubhe.config.ts +178 -0
  218. package/templates/nextjs/sui-farm/packages/contracts/harvest.lock.json +120 -0
  219. package/templates/nextjs/sui-farm/packages/contracts/package.json +48 -0
  220. package/templates/nextjs/sui-farm/packages/contracts/scripts/config.ts +17 -0
  221. package/templates/nextjs/sui-farm/packages/contracts/scripts/query-dapp-revenue.ts +95 -0
  222. package/templates/nextjs/sui-farm/packages/contracts/scripts/read-permit.ts +72 -0
  223. package/templates/nextjs/sui-farm/packages/contracts/scripts/seed.ts +85 -0
  224. package/templates/nextjs/sui-farm/packages/contracts/scripts/withdraw-dapp-revenue.ts +56 -0
  225. package/templates/nextjs/sui-farm/packages/contracts/src/counter/Move.toml +14 -0
  226. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/dapp_key.move +31 -0
  227. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/error.move +10 -0
  228. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/genesis.move +33 -0
  229. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/init_test.move +23 -0
  230. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/resources/counter1.move +64 -0
  231. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/resources/counter2.move +70 -0
  232. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/codegen/user_storage_init.move +26 -0
  233. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/scripts/deploy_hook.move +8 -0
  234. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/scripts/migrate.move +8 -0
  235. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/systems/counter.move +13 -0
  236. package/templates/nextjs/sui-farm/packages/contracts/src/counter/sources/tests/counter.move +28 -0
  237. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/Move.toml +14 -0
  238. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/dapp_key.move +46 -0
  239. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/enums/crop_type.move +47 -0
  240. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/enums/egg_type.move +42 -0
  241. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/enums/pet_rarity.move +37 -0
  242. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/enums/pet_species.move +52 -0
  243. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/error.move +110 -0
  244. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/genesis.move +33 -0
  245. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/init_test.move +23 -0
  246. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/permits/world.move +125 -0
  247. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/carrot.move +136 -0
  248. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/carrot_seed.move +80 -0
  249. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/common_egg.move +136 -0
  250. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/corn.move +136 -0
  251. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/corn_seed.move +80 -0
  252. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/crow_charges.move +162 -0
  253. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/crow_damage.move +207 -0
  254. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/farm_plot.move +261 -0
  255. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/gold.move +80 -0
  256. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pet.move +467 -0
  257. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pet_config.move +372 -0
  258. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pet_hatch.move +162 -0
  259. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pet_slot_index.move +83 -0
  260. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pet_slots.move +64 -0
  261. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/profile.move +162 -0
  262. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pumpkin.move +136 -0
  263. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/pumpkin_seed.move +80 -0
  264. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/rare_egg.move +136 -0
  265. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/scarecrow.move +64 -0
  266. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/season_config.move +197 -0
  267. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/season_stats.move +64 -0
  268. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/seasonal_egg.move +136 -0
  269. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/shop_config.move +267 -0
  270. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/trophy.move +245 -0
  271. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/wheat.move +136 -0
  272. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/wheat_seed.move +80 -0
  273. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/resources/world_permit_id.move +64 -0
  274. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/codegen/user_storage_init.move +26 -0
  275. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/scripts/deploy_hook.move +45 -0
  276. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/scripts/migrate.move +7 -0
  277. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/crow_system.move +96 -0
  278. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/farm_system.move +182 -0
  279. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/market_system.move +172 -0
  280. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/pet_system.move +495 -0
  281. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/season_system.move +70 -0
  282. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/shop_system.move +112 -0
  283. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/systems/world_system.move +34 -0
  284. package/templates/nextjs/sui-farm/packages/contracts/src/harvest/sources/tests/farm_tests.move +1192 -0
  285. package/templates/nextjs/sui-farm/pnpm-workspace.yaml +2 -0
  286. package/templates/nextjs/sui-template/packages/client/src/app/components/ProxyCard.tsx +683 -0
  287. package/templates/nextjs/sui-template/packages/client/src/app/page.tsx +510 -5
  288. package/templates/nextjs/sui-template/packages/client/src/app/providers.tsx +13 -5
  289. package/templates/nextjs/sui-template/packages/contracts/Pub.localnet.toml +4 -4
  290. package/templates/nextjs/sui-template/packages/contracts/counter.lock.json +14 -0
  291. package/templates/nextjs/sui-template/packages/contracts/deployment.ts +8 -3
  292. package/templates/nextjs/sui-template/packages/contracts/dubhe.config.json +9 -9
  293. package/templates/nextjs/sui-template/packages/contracts/dubhe.config.ts +0 -4
  294. package/templates/nextjs/sui-template/packages/contracts/metadata.json +180 -124
  295. package/templates/nextjs/sui-template/packages/contracts/package.json +8 -4
  296. package/templates/nextjs/sui-template/packages/contracts/src/counter/Move.toml +4 -0
  297. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/dapp_key.move +45 -31
  298. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/error.move +10 -0
  299. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/genesis.move +30 -13
  300. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/init_test.move +19 -14
  301. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/resources/counter1.move +30 -20
  302. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/resources/counter2.move +35 -24
  303. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/user_storage_init.move +26 -0
  304. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/scripts/deploy_hook.move +6 -10
  305. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/systems/counter.move +7 -20
  306. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/tests/counter.move +14 -27
  307. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/Move.lock +33 -30
  308. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/Move.toml +8 -3
  309. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/dapp_key.move +45 -31
  310. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/error.move +170 -0
  311. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/genesis.move +16 -13
  312. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/init_test.move +8 -14
  313. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/core/account_key.move +1 -3
  314. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/core/dapp_service.move +1776 -137
  315. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/core/data_key.move +1 -20
  316. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/core/events.move +864 -25
  317. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/scripts/deploy_hook.move +15 -16
  318. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/scripts/migrate.move +0 -3
  319. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/systems/address_system.move +25 -17
  320. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/systems/dapp_system.move +2802 -343
  321. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/systems/utils.move +1 -1
  322. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/address.move +173 -55
  323. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/dapp_test.move +769 -0
  324. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/fee_test.move +2965 -0
  325. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/integration_test.move +303 -0
  326. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/listing_test.move +1422 -0
  327. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/scene_session_test.move +269 -0
  328. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/session_test.move +624 -0
  329. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/storage_test.move +700 -0
  330. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/typed_object_test.move +177 -0
  331. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/typed_scene_test.move +452 -0
  332. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/tests/user_storage_test.move +160 -0
  333. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/utils/math.move +4 -3
  334. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/utils/type_info.move +2 -2
  335. package/templates/101/sui-template/packages/contracts/src/counter/Move.lock +0 -41
  336. package/templates/101/sui-template/packages/contracts/src/counter/Published.toml +0 -9
  337. package/templates/101/sui-template/packages/contracts/src/counter/sources/codegen/errors.move +0 -12
  338. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/errors.move +0 -140
  339. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dapp_fee_config.move +0 -186
  340. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dapp_fee_state.move +0 -306
  341. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dapp_metadata.move +0 -396
  342. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dubhe_config.move +0 -246
  343. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/core/dapp_store.move +0 -29
  344. package/templates/101/sui-template/packages/contracts/src/dubhe/sources/systems/session_system.move +0 -44
  345. package/templates/contract/sui-template/src/dubhe/sources/codegen/errors.move +0 -140
  346. package/templates/contract/sui-template/src/dubhe/sources/codegen/resources/dapp_fee_config.move +0 -186
  347. package/templates/contract/sui-template/src/dubhe/sources/codegen/resources/dapp_fee_state.move +0 -306
  348. package/templates/contract/sui-template/src/dubhe/sources/codegen/resources/dapp_metadata.move +0 -396
  349. package/templates/contract/sui-template/src/dubhe/sources/codegen/resources/dubhe_config.move +0 -246
  350. package/templates/contract/sui-template/src/dubhe/sources/core/dapp_store.move +0 -29
  351. package/templates/contract/sui-template/src/dubhe/sources/systems/session_system.move +0 -44
  352. package/templates/nextjs/sui-template/packages/contracts/src/counter/Move.lock +0 -47
  353. package/templates/nextjs/sui-template/packages/contracts/src/counter/Published.toml +0 -9
  354. package/templates/nextjs/sui-template/packages/contracts/src/counter/sources/codegen/errors.move +0 -12
  355. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/errors.move +0 -140
  356. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dapp_fee_config.move +0 -186
  357. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dapp_fee_state.move +0 -306
  358. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dapp_metadata.move +0 -396
  359. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/codegen/resources/dubhe_config.move +0 -246
  360. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/core/dapp_store.move +0 -29
  361. package/templates/nextjs/sui-template/packages/contracts/src/dubhe/sources/systems/session_system.move +0 -44
@@ -1,7 +1,858 @@
1
1
  {
2
+ "counter2": {
3
+ "fileFormatVersion": 6,
4
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
5
+ "name": "counter2",
6
+ "friends": [],
7
+ "structs": {
8
+ "Counter2": {
9
+ "abilities": {
10
+ "abilities": [
11
+ "Copy",
12
+ "Drop",
13
+ "Store"
14
+ ]
15
+ },
16
+ "typeParameters": [],
17
+ "fields": [
18
+ {
19
+ "name": "value",
20
+ "type": "U32"
21
+ },
22
+ {
23
+ "name": "data",
24
+ "type": "U64"
25
+ },
26
+ {
27
+ "name": "key",
28
+ "type": {
29
+ "Struct": {
30
+ "address": "0x1",
31
+ "module": "ascii",
32
+ "name": "String",
33
+ "typeArguments": []
34
+ }
35
+ }
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ "exposedFunctions": {
41
+ "data": {
42
+ "visibility": "Public",
43
+ "isEntry": false,
44
+ "typeParameters": [],
45
+ "parameters": [
46
+ {
47
+ "Reference": {
48
+ "Struct": {
49
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
50
+ "module": "counter2",
51
+ "name": "Counter2",
52
+ "typeArguments": []
53
+ }
54
+ }
55
+ }
56
+ ],
57
+ "return": [
58
+ "U64"
59
+ ]
60
+ },
61
+ "decode": {
62
+ "visibility": "Public",
63
+ "isEntry": false,
64
+ "typeParameters": [],
65
+ "parameters": [
66
+ {
67
+ "Vector": "U8"
68
+ }
69
+ ],
70
+ "return": [
71
+ {
72
+ "Struct": {
73
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
74
+ "module": "counter2",
75
+ "name": "Counter2",
76
+ "typeArguments": []
77
+ }
78
+ }
79
+ ]
80
+ },
81
+ "delete": {
82
+ "visibility": "Friend",
83
+ "isEntry": false,
84
+ "typeParameters": [],
85
+ "parameters": [
86
+ {
87
+ "MutableReference": {
88
+ "Struct": {
89
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
90
+ "module": "dapp_service",
91
+ "name": "UserStorage",
92
+ "typeArguments": []
93
+ }
94
+ }
95
+ },
96
+ {
97
+ "Reference": {
98
+ "Struct": {
99
+ "address": "0x2",
100
+ "module": "tx_context",
101
+ "name": "TxContext",
102
+ "typeArguments": []
103
+ }
104
+ }
105
+ }
106
+ ],
107
+ "return": []
108
+ },
109
+ "encode": {
110
+ "visibility": "Public",
111
+ "isEntry": false,
112
+ "typeParameters": [],
113
+ "parameters": [
114
+ "U32",
115
+ "U64",
116
+ {
117
+ "Struct": {
118
+ "address": "0x1",
119
+ "module": "ascii",
120
+ "name": "String",
121
+ "typeArguments": []
122
+ }
123
+ }
124
+ ],
125
+ "return": [
126
+ {
127
+ "Vector": {
128
+ "Vector": "U8"
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ "encode_struct": {
134
+ "visibility": "Public",
135
+ "isEntry": false,
136
+ "typeParameters": [],
137
+ "parameters": [
138
+ {
139
+ "Struct": {
140
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
141
+ "module": "counter2",
142
+ "name": "Counter2",
143
+ "typeArguments": []
144
+ }
145
+ }
146
+ ],
147
+ "return": [
148
+ {
149
+ "Vector": {
150
+ "Vector": "U8"
151
+ }
152
+ }
153
+ ]
154
+ },
155
+ "ensure_has": {
156
+ "visibility": "Public",
157
+ "isEntry": false,
158
+ "typeParameters": [],
159
+ "parameters": [
160
+ {
161
+ "Reference": {
162
+ "Struct": {
163
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
164
+ "module": "dapp_service",
165
+ "name": "UserStorage",
166
+ "typeArguments": []
167
+ }
168
+ }
169
+ }
170
+ ],
171
+ "return": []
172
+ },
173
+ "ensure_has_not": {
174
+ "visibility": "Public",
175
+ "isEntry": false,
176
+ "typeParameters": [],
177
+ "parameters": [
178
+ {
179
+ "Reference": {
180
+ "Struct": {
181
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
182
+ "module": "dapp_service",
183
+ "name": "UserStorage",
184
+ "typeArguments": []
185
+ }
186
+ }
187
+ }
188
+ ],
189
+ "return": []
190
+ },
191
+ "get": {
192
+ "visibility": "Public",
193
+ "isEntry": false,
194
+ "typeParameters": [],
195
+ "parameters": [
196
+ {
197
+ "Reference": {
198
+ "Struct": {
199
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
200
+ "module": "dapp_service",
201
+ "name": "UserStorage",
202
+ "typeArguments": []
203
+ }
204
+ }
205
+ }
206
+ ],
207
+ "return": [
208
+ "U32",
209
+ "U64",
210
+ {
211
+ "Struct": {
212
+ "address": "0x1",
213
+ "module": "ascii",
214
+ "name": "String",
215
+ "typeArguments": []
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ "get_data": {
221
+ "visibility": "Public",
222
+ "isEntry": false,
223
+ "typeParameters": [],
224
+ "parameters": [
225
+ {
226
+ "Reference": {
227
+ "Struct": {
228
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
229
+ "module": "dapp_service",
230
+ "name": "UserStorage",
231
+ "typeArguments": []
232
+ }
233
+ }
234
+ }
235
+ ],
236
+ "return": [
237
+ "U64"
238
+ ]
239
+ },
240
+ "get_key": {
241
+ "visibility": "Public",
242
+ "isEntry": false,
243
+ "typeParameters": [],
244
+ "parameters": [
245
+ {
246
+ "Reference": {
247
+ "Struct": {
248
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
249
+ "module": "dapp_service",
250
+ "name": "UserStorage",
251
+ "typeArguments": []
252
+ }
253
+ }
254
+ }
255
+ ],
256
+ "return": [
257
+ {
258
+ "Struct": {
259
+ "address": "0x1",
260
+ "module": "ascii",
261
+ "name": "String",
262
+ "typeArguments": []
263
+ }
264
+ }
265
+ ]
266
+ },
267
+ "get_struct": {
268
+ "visibility": "Public",
269
+ "isEntry": false,
270
+ "typeParameters": [],
271
+ "parameters": [
272
+ {
273
+ "Reference": {
274
+ "Struct": {
275
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
276
+ "module": "dapp_service",
277
+ "name": "UserStorage",
278
+ "typeArguments": []
279
+ }
280
+ }
281
+ }
282
+ ],
283
+ "return": [
284
+ {
285
+ "Struct": {
286
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
287
+ "module": "counter2",
288
+ "name": "Counter2",
289
+ "typeArguments": []
290
+ }
291
+ }
292
+ ]
293
+ },
294
+ "get_value": {
295
+ "visibility": "Public",
296
+ "isEntry": false,
297
+ "typeParameters": [],
298
+ "parameters": [
299
+ {
300
+ "Reference": {
301
+ "Struct": {
302
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
303
+ "module": "dapp_service",
304
+ "name": "UserStorage",
305
+ "typeArguments": []
306
+ }
307
+ }
308
+ }
309
+ ],
310
+ "return": [
311
+ "U32"
312
+ ]
313
+ },
314
+ "has": {
315
+ "visibility": "Public",
316
+ "isEntry": false,
317
+ "typeParameters": [],
318
+ "parameters": [
319
+ {
320
+ "Reference": {
321
+ "Struct": {
322
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
323
+ "module": "dapp_service",
324
+ "name": "UserStorage",
325
+ "typeArguments": []
326
+ }
327
+ }
328
+ }
329
+ ],
330
+ "return": [
331
+ "Bool"
332
+ ]
333
+ },
334
+ "key": {
335
+ "visibility": "Public",
336
+ "isEntry": false,
337
+ "typeParameters": [],
338
+ "parameters": [
339
+ {
340
+ "Reference": {
341
+ "Struct": {
342
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
343
+ "module": "counter2",
344
+ "name": "Counter2",
345
+ "typeArguments": []
346
+ }
347
+ }
348
+ }
349
+ ],
350
+ "return": [
351
+ {
352
+ "Struct": {
353
+ "address": "0x1",
354
+ "module": "ascii",
355
+ "name": "String",
356
+ "typeArguments": []
357
+ }
358
+ }
359
+ ]
360
+ },
361
+ "new": {
362
+ "visibility": "Public",
363
+ "isEntry": false,
364
+ "typeParameters": [],
365
+ "parameters": [
366
+ "U32",
367
+ "U64",
368
+ {
369
+ "Struct": {
370
+ "address": "0x1",
371
+ "module": "ascii",
372
+ "name": "String",
373
+ "typeArguments": []
374
+ }
375
+ }
376
+ ],
377
+ "return": [
378
+ {
379
+ "Struct": {
380
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
381
+ "module": "counter2",
382
+ "name": "Counter2",
383
+ "typeArguments": []
384
+ }
385
+ }
386
+ ]
387
+ },
388
+ "set": {
389
+ "visibility": "Friend",
390
+ "isEntry": false,
391
+ "typeParameters": [],
392
+ "parameters": [
393
+ {
394
+ "MutableReference": {
395
+ "Struct": {
396
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
397
+ "module": "dapp_service",
398
+ "name": "UserStorage",
399
+ "typeArguments": []
400
+ }
401
+ }
402
+ },
403
+ "U32",
404
+ "U64",
405
+ {
406
+ "Struct": {
407
+ "address": "0x1",
408
+ "module": "ascii",
409
+ "name": "String",
410
+ "typeArguments": []
411
+ }
412
+ },
413
+ {
414
+ "MutableReference": {
415
+ "Struct": {
416
+ "address": "0x2",
417
+ "module": "tx_context",
418
+ "name": "TxContext",
419
+ "typeArguments": []
420
+ }
421
+ }
422
+ }
423
+ ],
424
+ "return": []
425
+ },
426
+ "set_data": {
427
+ "visibility": "Friend",
428
+ "isEntry": false,
429
+ "typeParameters": [],
430
+ "parameters": [
431
+ {
432
+ "MutableReference": {
433
+ "Struct": {
434
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
435
+ "module": "dapp_service",
436
+ "name": "UserStorage",
437
+ "typeArguments": []
438
+ }
439
+ }
440
+ },
441
+ "U64",
442
+ {
443
+ "MutableReference": {
444
+ "Struct": {
445
+ "address": "0x2",
446
+ "module": "tx_context",
447
+ "name": "TxContext",
448
+ "typeArguments": []
449
+ }
450
+ }
451
+ }
452
+ ],
453
+ "return": []
454
+ },
455
+ "set_key": {
456
+ "visibility": "Friend",
457
+ "isEntry": false,
458
+ "typeParameters": [],
459
+ "parameters": [
460
+ {
461
+ "MutableReference": {
462
+ "Struct": {
463
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
464
+ "module": "dapp_service",
465
+ "name": "UserStorage",
466
+ "typeArguments": []
467
+ }
468
+ }
469
+ },
470
+ {
471
+ "Struct": {
472
+ "address": "0x1",
473
+ "module": "ascii",
474
+ "name": "String",
475
+ "typeArguments": []
476
+ }
477
+ },
478
+ {
479
+ "MutableReference": {
480
+ "Struct": {
481
+ "address": "0x2",
482
+ "module": "tx_context",
483
+ "name": "TxContext",
484
+ "typeArguments": []
485
+ }
486
+ }
487
+ }
488
+ ],
489
+ "return": []
490
+ },
491
+ "set_struct": {
492
+ "visibility": "Friend",
493
+ "isEntry": false,
494
+ "typeParameters": [],
495
+ "parameters": [
496
+ {
497
+ "MutableReference": {
498
+ "Struct": {
499
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
500
+ "module": "dapp_service",
501
+ "name": "UserStorage",
502
+ "typeArguments": []
503
+ }
504
+ }
505
+ },
506
+ {
507
+ "Struct": {
508
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
509
+ "module": "counter2",
510
+ "name": "Counter2",
511
+ "typeArguments": []
512
+ }
513
+ },
514
+ {
515
+ "MutableReference": {
516
+ "Struct": {
517
+ "address": "0x2",
518
+ "module": "tx_context",
519
+ "name": "TxContext",
520
+ "typeArguments": []
521
+ }
522
+ }
523
+ }
524
+ ],
525
+ "return": []
526
+ },
527
+ "set_value": {
528
+ "visibility": "Friend",
529
+ "isEntry": false,
530
+ "typeParameters": [],
531
+ "parameters": [
532
+ {
533
+ "MutableReference": {
534
+ "Struct": {
535
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
536
+ "module": "dapp_service",
537
+ "name": "UserStorage",
538
+ "typeArguments": []
539
+ }
540
+ }
541
+ },
542
+ "U32",
543
+ {
544
+ "MutableReference": {
545
+ "Struct": {
546
+ "address": "0x2",
547
+ "module": "tx_context",
548
+ "name": "TxContext",
549
+ "typeArguments": []
550
+ }
551
+ }
552
+ }
553
+ ],
554
+ "return": []
555
+ },
556
+ "update_data": {
557
+ "visibility": "Public",
558
+ "isEntry": false,
559
+ "typeParameters": [],
560
+ "parameters": [
561
+ {
562
+ "MutableReference": {
563
+ "Struct": {
564
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
565
+ "module": "counter2",
566
+ "name": "Counter2",
567
+ "typeArguments": []
568
+ }
569
+ }
570
+ },
571
+ "U64"
572
+ ],
573
+ "return": []
574
+ },
575
+ "update_key": {
576
+ "visibility": "Public",
577
+ "isEntry": false,
578
+ "typeParameters": [],
579
+ "parameters": [
580
+ {
581
+ "MutableReference": {
582
+ "Struct": {
583
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
584
+ "module": "counter2",
585
+ "name": "Counter2",
586
+ "typeArguments": []
587
+ }
588
+ }
589
+ },
590
+ {
591
+ "Struct": {
592
+ "address": "0x1",
593
+ "module": "ascii",
594
+ "name": "String",
595
+ "typeArguments": []
596
+ }
597
+ }
598
+ ],
599
+ "return": []
600
+ },
601
+ "update_value": {
602
+ "visibility": "Public",
603
+ "isEntry": false,
604
+ "typeParameters": [],
605
+ "parameters": [
606
+ {
607
+ "MutableReference": {
608
+ "Struct": {
609
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
610
+ "module": "counter2",
611
+ "name": "Counter2",
612
+ "typeArguments": []
613
+ }
614
+ }
615
+ },
616
+ "U32"
617
+ ],
618
+ "return": []
619
+ },
620
+ "value": {
621
+ "visibility": "Public",
622
+ "isEntry": false,
623
+ "typeParameters": [],
624
+ "parameters": [
625
+ {
626
+ "Reference": {
627
+ "Struct": {
628
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
629
+ "module": "counter2",
630
+ "name": "Counter2",
631
+ "typeArguments": []
632
+ }
633
+ }
634
+ }
635
+ ],
636
+ "return": [
637
+ "U32"
638
+ ]
639
+ }
640
+ }
641
+ },
642
+ "counter2withkey": {
643
+ "fileFormatVersion": 6,
644
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
645
+ "name": "counter2withkey",
646
+ "friends": [],
647
+ "structs": {},
648
+ "exposedFunctions": {
649
+ "delete": {
650
+ "visibility": "Friend",
651
+ "isEntry": false,
652
+ "typeParameters": [],
653
+ "parameters": [
654
+ {
655
+ "MutableReference": {
656
+ "Struct": {
657
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
658
+ "module": "dapp_service",
659
+ "name": "UserStorage",
660
+ "typeArguments": []
661
+ }
662
+ }
663
+ },
664
+ "U64",
665
+ {
666
+ "Struct": {
667
+ "address": "0x1",
668
+ "module": "ascii",
669
+ "name": "String",
670
+ "typeArguments": []
671
+ }
672
+ },
673
+ {
674
+ "Reference": {
675
+ "Struct": {
676
+ "address": "0x2",
677
+ "module": "tx_context",
678
+ "name": "TxContext",
679
+ "typeArguments": []
680
+ }
681
+ }
682
+ }
683
+ ],
684
+ "return": []
685
+ },
686
+ "encode": {
687
+ "visibility": "Public",
688
+ "isEntry": false,
689
+ "typeParameters": [],
690
+ "parameters": [
691
+ "U32"
692
+ ],
693
+ "return": [
694
+ {
695
+ "Vector": {
696
+ "Vector": "U8"
697
+ }
698
+ }
699
+ ]
700
+ },
701
+ "ensure_has": {
702
+ "visibility": "Public",
703
+ "isEntry": false,
704
+ "typeParameters": [],
705
+ "parameters": [
706
+ {
707
+ "Reference": {
708
+ "Struct": {
709
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
710
+ "module": "dapp_service",
711
+ "name": "UserStorage",
712
+ "typeArguments": []
713
+ }
714
+ }
715
+ },
716
+ "U64",
717
+ {
718
+ "Struct": {
719
+ "address": "0x1",
720
+ "module": "ascii",
721
+ "name": "String",
722
+ "typeArguments": []
723
+ }
724
+ }
725
+ ],
726
+ "return": []
727
+ },
728
+ "ensure_has_not": {
729
+ "visibility": "Public",
730
+ "isEntry": false,
731
+ "typeParameters": [],
732
+ "parameters": [
733
+ {
734
+ "Reference": {
735
+ "Struct": {
736
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
737
+ "module": "dapp_service",
738
+ "name": "UserStorage",
739
+ "typeArguments": []
740
+ }
741
+ }
742
+ },
743
+ "U64",
744
+ {
745
+ "Struct": {
746
+ "address": "0x1",
747
+ "module": "ascii",
748
+ "name": "String",
749
+ "typeArguments": []
750
+ }
751
+ }
752
+ ],
753
+ "return": []
754
+ },
755
+ "get": {
756
+ "visibility": "Public",
757
+ "isEntry": false,
758
+ "typeParameters": [],
759
+ "parameters": [
760
+ {
761
+ "Reference": {
762
+ "Struct": {
763
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
764
+ "module": "dapp_service",
765
+ "name": "UserStorage",
766
+ "typeArguments": []
767
+ }
768
+ }
769
+ },
770
+ "U64",
771
+ {
772
+ "Struct": {
773
+ "address": "0x1",
774
+ "module": "ascii",
775
+ "name": "String",
776
+ "typeArguments": []
777
+ }
778
+ }
779
+ ],
780
+ "return": [
781
+ "U32"
782
+ ]
783
+ },
784
+ "has": {
785
+ "visibility": "Public",
786
+ "isEntry": false,
787
+ "typeParameters": [],
788
+ "parameters": [
789
+ {
790
+ "Reference": {
791
+ "Struct": {
792
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
793
+ "module": "dapp_service",
794
+ "name": "UserStorage",
795
+ "typeArguments": []
796
+ }
797
+ }
798
+ },
799
+ "U64",
800
+ {
801
+ "Struct": {
802
+ "address": "0x1",
803
+ "module": "ascii",
804
+ "name": "String",
805
+ "typeArguments": []
806
+ }
807
+ }
808
+ ],
809
+ "return": [
810
+ "Bool"
811
+ ]
812
+ },
813
+ "set": {
814
+ "visibility": "Friend",
815
+ "isEntry": false,
816
+ "typeParameters": [],
817
+ "parameters": [
818
+ {
819
+ "MutableReference": {
820
+ "Struct": {
821
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
822
+ "module": "dapp_service",
823
+ "name": "UserStorage",
824
+ "typeArguments": []
825
+ }
826
+ }
827
+ },
828
+ "U64",
829
+ {
830
+ "Struct": {
831
+ "address": "0x1",
832
+ "module": "ascii",
833
+ "name": "String",
834
+ "typeArguments": []
835
+ }
836
+ },
837
+ "U32",
838
+ {
839
+ "MutableReference": {
840
+ "Struct": {
841
+ "address": "0x2",
842
+ "module": "tx_context",
843
+ "name": "TxContext",
844
+ "typeArguments": []
845
+ }
846
+ }
847
+ }
848
+ ],
849
+ "return": []
850
+ }
851
+ }
852
+ },
2
853
  "counter_system": {
3
854
  "fileFormatVersion": 6,
4
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
855
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
5
856
  "name": "counter_system",
6
857
  "friends": [],
7
858
  "structs": {},
@@ -14,14 +865,13 @@
14
865
  {
15
866
  "MutableReference": {
16
867
  "Struct": {
17
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
868
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
18
869
  "module": "dapp_service",
19
- "name": "DappHub",
870
+ "name": "UserStorage",
20
871
  "typeArguments": []
21
872
  }
22
873
  }
23
874
  },
24
- "U32",
25
875
  {
26
876
  "MutableReference": {
27
877
  "Struct": {
@@ -39,15 +889,23 @@
39
889
  },
40
890
  "dapp_key": {
41
891
  "fileFormatVersion": 6,
42
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
892
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
43
893
  "name": "dapp_key",
44
894
  "friends": [
45
895
  {
46
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
896
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
897
+ "name": "counter2"
898
+ },
899
+ {
900
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
901
+ "name": "counter2withkey"
902
+ },
903
+ {
904
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
47
905
  "name": "genesis"
48
906
  },
49
907
  {
50
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
908
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
51
909
  "name": "value"
52
910
  }
53
911
  ],
@@ -110,7 +968,7 @@
110
968
  "return": [
111
969
  {
112
970
  "Struct": {
113
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
971
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
114
972
  "module": "dapp_key",
115
973
  "name": "DappKey",
116
974
  "typeArguments": []
@@ -147,11 +1005,11 @@
147
1005
  },
148
1006
  "deploy_hook": {
149
1007
  "fileFormatVersion": 6,
150
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
1008
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
151
1009
  "name": "deploy_hook",
152
1010
  "friends": [
153
1011
  {
154
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
1012
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
155
1013
  "name": "genesis"
156
1014
  }
157
1015
  ],
@@ -165,9 +1023,9 @@
165
1023
  {
166
1024
  "MutableReference": {
167
1025
  "Struct": {
168
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
1026
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
169
1027
  "module": "dapp_service",
170
- "name": "DappHub",
1028
+ "name": "DappStorage",
171
1029
  "typeArguments": []
172
1030
  }
173
1031
  }
@@ -187,40 +1045,68 @@
187
1045
  }
188
1046
  }
189
1047
  },
190
- "errors": {
1048
+ "error": {
191
1049
  "fileFormatVersion": 6,
192
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
193
- "name": "errors",
1050
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
1051
+ "name": "error",
194
1052
  "friends": [],
195
1053
  "structs": {},
196
- "exposedFunctions": {
197
- "invalid_increment_error": {
198
- "visibility": "Public",
199
- "isEntry": false,
200
- "typeParameters": [],
201
- "parameters": [
202
- "Bool"
203
- ],
204
- "return": []
205
- }
206
- }
1054
+ "exposedFunctions": {}
207
1055
  },
208
1056
  "genesis": {
209
1057
  "fileFormatVersion": 6,
210
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
1058
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
211
1059
  "name": "genesis",
212
1060
  "friends": [],
213
1061
  "structs": {},
214
1062
  "exposedFunctions": {
1063
+ "migrate": {
1064
+ "visibility": "Friend",
1065
+ "isEntry": false,
1066
+ "typeParameters": [],
1067
+ "parameters": [
1068
+ {
1069
+ "MutableReference": {
1070
+ "Struct": {
1071
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
1072
+ "module": "dapp_service",
1073
+ "name": "DappHub",
1074
+ "typeArguments": []
1075
+ }
1076
+ }
1077
+ },
1078
+ {
1079
+ "MutableReference": {
1080
+ "Struct": {
1081
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
1082
+ "module": "dapp_service",
1083
+ "name": "DappStorage",
1084
+ "typeArguments": []
1085
+ }
1086
+ }
1087
+ },
1088
+ {
1089
+ "MutableReference": {
1090
+ "Struct": {
1091
+ "address": "0x2",
1092
+ "module": "tx_context",
1093
+ "name": "TxContext",
1094
+ "typeArguments": []
1095
+ }
1096
+ }
1097
+ }
1098
+ ],
1099
+ "return": []
1100
+ },
215
1101
  "run": {
216
1102
  "visibility": "Public",
217
- "isEntry": true,
1103
+ "isEntry": false,
218
1104
  "typeParameters": [],
219
1105
  "parameters": [
220
1106
  {
221
1107
  "MutableReference": {
222
1108
  "Struct": {
223
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
1109
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
224
1110
  "module": "dapp_service",
225
1111
  "name": "DappHub",
226
1112
  "typeArguments": []
@@ -254,7 +1140,7 @@
254
1140
  },
255
1141
  "migrate": {
256
1142
  "fileFormatVersion": 6,
257
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
1143
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
258
1144
  "name": "migrate",
259
1145
  "friends": [],
260
1146
  "structs": {},
@@ -270,13 +1156,60 @@
270
1156
  }
271
1157
  }
272
1158
  },
1159
+ "user_storage_init": {
1160
+ "fileFormatVersion": 6,
1161
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
1162
+ "name": "user_storage_init",
1163
+ "friends": [],
1164
+ "structs": {},
1165
+ "exposedFunctions": {
1166
+ "init_user_storage": {
1167
+ "visibility": "Public",
1168
+ "isEntry": true,
1169
+ "typeParameters": [],
1170
+ "parameters": [
1171
+ {
1172
+ "Reference": {
1173
+ "Struct": {
1174
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
1175
+ "module": "dapp_service",
1176
+ "name": "DappHub",
1177
+ "typeArguments": []
1178
+ }
1179
+ }
1180
+ },
1181
+ {
1182
+ "MutableReference": {
1183
+ "Struct": {
1184
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
1185
+ "module": "dapp_service",
1186
+ "name": "DappStorage",
1187
+ "typeArguments": []
1188
+ }
1189
+ }
1190
+ },
1191
+ {
1192
+ "MutableReference": {
1193
+ "Struct": {
1194
+ "address": "0x2",
1195
+ "module": "tx_context",
1196
+ "name": "TxContext",
1197
+ "typeArguments": []
1198
+ }
1199
+ }
1200
+ }
1201
+ ],
1202
+ "return": []
1203
+ }
1204
+ }
1205
+ },
273
1206
  "value": {
274
1207
  "fileFormatVersion": 6,
275
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
1208
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
276
1209
  "name": "value",
277
1210
  "friends": [
278
1211
  {
279
- "address": "0x5b6be663374918fc768ceb703a075b7199456a86f3962f4229f7e5e3d749d284",
1212
+ "address": "0x3007e01442b87ba6e1778a89df56398eb9265d1920e5e5b20e470d802151db93",
280
1213
  "name": "counter_system"
281
1214
  }
282
1215
  ],
@@ -290,19 +1223,21 @@
290
1223
  {
291
1224
  "MutableReference": {
292
1225
  "Struct": {
293
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
1226
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
294
1227
  "module": "dapp_service",
295
- "name": "DappHub",
1228
+ "name": "UserStorage",
296
1229
  "typeArguments": []
297
1230
  }
298
1231
  }
299
1232
  },
300
1233
  {
301
- "Struct": {
302
- "address": "0x1",
303
- "module": "ascii",
304
- "name": "String",
305
- "typeArguments": []
1234
+ "Reference": {
1235
+ "Struct": {
1236
+ "address": "0x2",
1237
+ "module": "tx_context",
1238
+ "name": "TxContext",
1239
+ "typeArguments": []
1240
+ }
306
1241
  }
307
1242
  }
308
1243
  ],
@@ -323,7 +1258,7 @@
323
1258
  }
324
1259
  ]
325
1260
  },
326
- "get": {
1261
+ "ensure_has": {
327
1262
  "visibility": "Public",
328
1263
  "isEntry": false,
329
1264
  "typeParameters": [],
@@ -331,19 +1266,47 @@
331
1266
  {
332
1267
  "Reference": {
333
1268
  "Struct": {
334
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
1269
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
335
1270
  "module": "dapp_service",
336
- "name": "DappHub",
1271
+ "name": "UserStorage",
337
1272
  "typeArguments": []
338
1273
  }
339
1274
  }
340
- },
1275
+ }
1276
+ ],
1277
+ "return": []
1278
+ },
1279
+ "ensure_has_not": {
1280
+ "visibility": "Public",
1281
+ "isEntry": false,
1282
+ "typeParameters": [],
1283
+ "parameters": [
341
1284
  {
342
- "Struct": {
343
- "address": "0x1",
344
- "module": "ascii",
345
- "name": "String",
346
- "typeArguments": []
1285
+ "Reference": {
1286
+ "Struct": {
1287
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
1288
+ "module": "dapp_service",
1289
+ "name": "UserStorage",
1290
+ "typeArguments": []
1291
+ }
1292
+ }
1293
+ }
1294
+ ],
1295
+ "return": []
1296
+ },
1297
+ "get": {
1298
+ "visibility": "Public",
1299
+ "isEntry": false,
1300
+ "typeParameters": [],
1301
+ "parameters": [
1302
+ {
1303
+ "Reference": {
1304
+ "Struct": {
1305
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
1306
+ "module": "dapp_service",
1307
+ "name": "UserStorage",
1308
+ "typeArguments": []
1309
+ }
347
1310
  }
348
1311
  }
349
1312
  ],
@@ -359,20 +1322,12 @@
359
1322
  {
360
1323
  "Reference": {
361
1324
  "Struct": {
362
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
1325
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
363
1326
  "module": "dapp_service",
364
- "name": "DappHub",
1327
+ "name": "UserStorage",
365
1328
  "typeArguments": []
366
1329
  }
367
1330
  }
368
- },
369
- {
370
- "Struct": {
371
- "address": "0x1",
372
- "module": "ascii",
373
- "name": "String",
374
- "typeArguments": []
375
- }
376
1331
  }
377
1332
  ],
378
1333
  "return": [
@@ -387,21 +1342,13 @@
387
1342
  {
388
1343
  "MutableReference": {
389
1344
  "Struct": {
390
- "address": "0xf106a5bb8ec6c2618671f2a47a8df873a8d6a8b11c26c5485fc77df8d4fe0758",
1345
+ "address": "0x6af0e112e20f04b99a5b955a378f2eacfec71dbc57a5ac9637806dc9c3fe3c4d",
391
1346
  "module": "dapp_service",
392
- "name": "DappHub",
1347
+ "name": "UserStorage",
393
1348
  "typeArguments": []
394
1349
  }
395
1350
  }
396
1351
  },
397
- {
398
- "Struct": {
399
- "address": "0x1",
400
- "module": "ascii",
401
- "name": "String",
402
- "typeArguments": []
403
- }
404
- },
405
1352
  "U32",
406
1353
  {
407
1354
  "MutableReference": {