create-dubhe 0.1.2 → 0.1.3

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 (123) hide show
  1. package/package.json +1 -1
  2. package/template/101/sui-template/.prettierrc +7 -7
  3. package/template/101/sui-template/README.md +8 -9
  4. package/template/101/sui-template/contracts/counter/.history/sui_localnet/latest.json +11 -0
  5. package/template/101/sui-template/contracts/counter/Move.lock +45 -0
  6. package/template/101/sui-template/dubhe.config.ts +11 -11
  7. package/template/101/sui-template/eslint.config.mjs +14 -0
  8. package/template/101/sui-template/next.config.ts +7 -0
  9. package/template/101/sui-template/package.json +23 -40
  10. package/template/101/sui-template/pnpm-lock.yaml +8133 -0
  11. package/template/101/sui-template/postcss.config.mjs +8 -0
  12. package/template/101/sui-template/src/app/favicon.ico +0 -0
  13. package/template/101/sui-template/src/app/globals.css +21 -0
  14. package/template/101/sui-template/src/app/layout.tsx +34 -0
  15. package/template/101/sui-template/src/app/page.tsx +106 -0
  16. package/template/101/sui-template/src/app/state/index.tsx +5 -0
  17. package/template/101/sui-template/src/chain/config.ts +2 -2
  18. package/template/101/sui-template/tailwind.config.ts +18 -0
  19. package/template/101/sui-template/tsconfig.json +11 -8
  20. package/template/contract/sui-template/package.json +1 -1
  21. package/template/nextjs/sui-template/.prettierrc +7 -7
  22. package/template/nextjs/sui-template/README.md +8 -8
  23. package/template/nextjs/sui-template/contracts/counter/.history/sui_localnet/latest.json +11 -0
  24. package/template/nextjs/sui-template/contracts/counter/Move.lock +52 -0
  25. package/template/nextjs/sui-template/contracts/counter/Move.toml +1 -1
  26. package/template/nextjs/sui-template/dubhe.config.ts +11 -11
  27. package/template/nextjs/sui-template/eslint.config.mjs +14 -0
  28. package/template/nextjs/sui-template/next.config.mjs +5 -0
  29. package/template/nextjs/sui-template/package.json +25 -41
  30. package/template/nextjs/sui-template/pnpm-lock.yaml +9002 -0
  31. package/template/nextjs/sui-template/postcss.config.mjs +8 -0
  32. package/template/nextjs/sui-template/src/app/favicon.ico +0 -0
  33. package/template/nextjs/sui-template/src/app/globals.css +21 -0
  34. package/template/nextjs/sui-template/src/app/layout.tsx +17 -0
  35. package/template/nextjs/sui-template/src/app/page.tsx +151 -0
  36. package/template/nextjs/sui-template/src/{pages/_app.tsx → app/providers.tsx} +6 -12
  37. package/template/nextjs/sui-template/src/app/state/index.tsx +5 -0
  38. package/template/nextjs/sui-template/src/chain/config.ts +3 -3
  39. package/template/nextjs/sui-template/tailwind.config.ts +18 -0
  40. package/template/nextjs/sui-template/tsconfig.json +13 -15
  41. package/template/101/sui-template/.dockerignore +0 -7
  42. package/template/101/sui-template/.eslintrc.json +0 -3
  43. package/template/101/sui-template/Dockerfile +0 -52
  44. package/template/101/sui-template/LICENSE +0 -674
  45. package/template/101/sui-template/jest.config.ts +0 -17
  46. package/template/101/sui-template/next-env.d.ts +0 -5
  47. package/template/101/sui-template/next-i18next.config.js +0 -6
  48. package/template/101/sui-template/next.config.js +0 -15
  49. package/template/101/sui-template/postcss.config.js +0 -6
  50. package/template/101/sui-template/public/discord.svg +0 -9
  51. package/template/101/sui-template/public/fail.svg +0 -12
  52. package/template/101/sui-template/public/favicon.ico +0 -0
  53. package/template/101/sui-template/public/locales/de/common.json +0 -8
  54. package/template/101/sui-template/public/locales/de/footer.json +0 -3
  55. package/template/101/sui-template/public/locales/de/second-page.json +0 -5
  56. package/template/101/sui-template/public/locales/en/common.json +0 -8
  57. package/template/101/sui-template/public/locales/en/footer.json +0 -3
  58. package/template/101/sui-template/public/locales/en/second-page.json +0 -5
  59. package/template/101/sui-template/public/locales/zn/common.json +0 -8
  60. package/template/101/sui-template/public/locales/zn/footer.json +0 -3
  61. package/template/101/sui-template/public/locales/zn/second-page.json +0 -5
  62. package/template/101/sui-template/public/logo.svg +0 -1
  63. package/template/101/sui-template/public/medium.svg +0 -9
  64. package/template/101/sui-template/public/successful.svg +0 -11
  65. package/template/101/sui-template/public/telegram.svg +0 -9
  66. package/template/101/sui-template/public/twitter.svg +0 -9
  67. package/template/101/sui-template/src/css/font-awesome.css +0 -2337
  68. package/template/101/sui-template/src/css/font-awesome.min.css +0 -4
  69. package/template/101/sui-template/src/fonts/FontAwesome.otf +0 -0
  70. package/template/101/sui-template/src/fonts/fontawesome-webfont.eot +0 -0
  71. package/template/101/sui-template/src/fonts/fontawesome-webfont.svg +0 -2671
  72. package/template/101/sui-template/src/fonts/fontawesome-webfont.ttf +0 -0
  73. package/template/101/sui-template/src/fonts/fontawesome-webfont.woff +0 -0
  74. package/template/101/sui-template/src/fonts/fontawesome-webfont.woff2 +0 -0
  75. package/template/101/sui-template/src/jotai/index.tsx +0 -12
  76. package/template/101/sui-template/src/pages/_app.tsx +0 -15
  77. package/template/101/sui-template/src/pages/home/index.tsx +0 -117
  78. package/template/101/sui-template/src/pages/index.tsx +0 -12
  79. package/template/101/sui-template/tailwind.config.js +0 -56
  80. package/template/nextjs/sui-template/.dockerignore +0 -7
  81. package/template/nextjs/sui-template/.eslintrc.json +0 -3
  82. package/template/nextjs/sui-template/Dockerfile +0 -52
  83. package/template/nextjs/sui-template/LICENSE +0 -674
  84. package/template/nextjs/sui-template/jest.config.ts +0 -17
  85. package/template/nextjs/sui-template/next-env.d.ts +0 -5
  86. package/template/nextjs/sui-template/next-i18next.config.js +0 -6
  87. package/template/nextjs/sui-template/next.config.js +0 -15
  88. package/template/nextjs/sui-template/postcss.config.js +0 -6
  89. package/template/nextjs/sui-template/public/discord.svg +0 -9
  90. package/template/nextjs/sui-template/public/fail.svg +0 -12
  91. package/template/nextjs/sui-template/public/favicon.ico +0 -0
  92. package/template/nextjs/sui-template/public/locales/de/common.json +0 -8
  93. package/template/nextjs/sui-template/public/locales/de/footer.json +0 -3
  94. package/template/nextjs/sui-template/public/locales/de/second-page.json +0 -5
  95. package/template/nextjs/sui-template/public/locales/en/common.json +0 -8
  96. package/template/nextjs/sui-template/public/locales/en/footer.json +0 -3
  97. package/template/nextjs/sui-template/public/locales/en/second-page.json +0 -5
  98. package/template/nextjs/sui-template/public/locales/zn/common.json +0 -8
  99. package/template/nextjs/sui-template/public/locales/zn/footer.json +0 -3
  100. package/template/nextjs/sui-template/public/locales/zn/second-page.json +0 -5
  101. package/template/nextjs/sui-template/public/logo.svg +0 -1
  102. package/template/nextjs/sui-template/public/medium.svg +0 -9
  103. package/template/nextjs/sui-template/public/successful.svg +0 -11
  104. package/template/nextjs/sui-template/public/telegram.svg +0 -9
  105. package/template/nextjs/sui-template/public/twitter.svg +0 -9
  106. package/template/nextjs/sui-template/src/components/Animation.tsx +0 -80
  107. package/template/nextjs/sui-template/src/components/Container.tsx +0 -11
  108. package/template/nextjs/sui-template/src/components/footer/index.tsx +0 -138
  109. package/template/nextjs/sui-template/src/components/head/index.tsx +0 -14
  110. package/template/nextjs/sui-template/src/components/header/index.tsx +0 -173
  111. package/template/nextjs/sui-template/src/components/pop_up_box/index.tsx +0 -149
  112. package/template/nextjs/sui-template/src/css/font-awesome.css +0 -2337
  113. package/template/nextjs/sui-template/src/css/font-awesome.min.css +0 -4
  114. package/template/nextjs/sui-template/src/fonts/FontAwesome.otf +0 -0
  115. package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.eot +0 -0
  116. package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.svg +0 -2671
  117. package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.ttf +0 -0
  118. package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.woff +0 -0
  119. package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.woff2 +0 -0
  120. package/template/nextjs/sui-template/src/jotai/index.tsx +0 -13
  121. package/template/nextjs/sui-template/src/pages/home/index.tsx +0 -172
  122. package/template/nextjs/sui-template/src/pages/index.tsx +0 -15
  123. package/template/nextjs/sui-template/tailwind.config.js +0 -56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dubhe",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "team@obelisk.build",
@@ -1,8 +1,8 @@
1
1
  {
2
- "printWidth": 120,
3
- "tabWidth": 2,
4
- "singleQuote": true,
5
- "trailingComma": "all",
6
- "semi": true,
7
- "arrowParens": "avoid"
8
- }
2
+ "printWidth": 120,
3
+ "tabWidth": 2,
4
+ "singleQuote": true,
5
+ "trailingComma": "all",
6
+ "semi": true,
7
+ "arrowParens": "avoid"
8
+ }
@@ -1,14 +1,13 @@
1
1
  ## How to use
2
2
  ```bash
3
-
4
- 1 install sui <https://docs.sui.io/build/install>
5
- 2 cd quick_start folder
6
- 3 pnpm install
7
- 4 open new window && pnpm run localnode
8
- 5 open new window && pnpm run start-template
9
-
10
- environment : node v18.16.0 best
11
- please use node -v check your node version
3
+ 1. install sui <https://docs.sui.io/build/install>
4
+ 2. cd dubhe-101-template folder
5
+ 3. pnpm install
6
+ 4. open new window && pnpm start:localnet
7
+ 5. open new window && pnpm dev
12
8
  ```
13
9
 
10
+ Environment: node.js (v18.20.0+) ([download](https://nodejs.org/en/download/))
11
+ > Please use `node -v` check your node version
12
+
14
13
  Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
@@ -0,0 +1,11 @@
1
+ {
2
+ "projectName": "counter",
3
+ "network": "localnet",
4
+ "packageId": "0xa96e1ead575c35025ab76cb0ecb0e51f80ed566a65dd21f2d72385139ef3b706",
5
+ "schemaId": "0xdf69aa5e8df208ab3d3382a55fefd60ab38cd63f7996493a257e828868054697",
6
+ "schemas": {
7
+ "value": "StorageValue<u32>"
8
+ },
9
+ "upgradeCap": "0x8fc4438184f05ffc82a589c702bd3da1f732935236c7ff0305d0c1c86b788f23",
10
+ "version": 1
11
+ }
@@ -0,0 +1,45 @@
1
+ # @generated by Move, please check-in and do not edit manually.
2
+
3
+ [move]
4
+ version = 3
5
+ manifest_digest = "B09B7C9C87825CC9EF77E81A3D5E85A0AB14105BE3BE2E197372D755B02AC46E"
6
+ deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"
7
+ dependencies = [
8
+ { id = "Dubhe", name = "Dubhe" },
9
+ { id = "Sui", name = "Sui" },
10
+ ]
11
+
12
+ [[move.package]]
13
+ id = "Dubhe"
14
+ source = { local = "../dubhe-framework" }
15
+
16
+ dependencies = [
17
+ { id = "Sui", name = "Sui" },
18
+ ]
19
+
20
+ [[move.package]]
21
+ id = "MoveStdlib"
22
+ source = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet-v1.38.3", subdir = "crates/sui-framework/packages/move-stdlib" }
23
+
24
+ [[move.package]]
25
+ id = "Sui"
26
+ source = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet-v1.38.3", subdir = "crates/sui-framework/packages/sui-framework" }
27
+
28
+ dependencies = [
29
+ { id = "MoveStdlib", name = "MoveStdlib" },
30
+ ]
31
+
32
+ [move.toolchain-version]
33
+ compiler-version = "1.38.3"
34
+ edition = "2024"
35
+ flavor = "sui"
36
+
37
+
38
+
39
+
40
+
41
+ [env.localnet]
42
+ chain-id = "bb84532f"
43
+ original-published-id = "0xa96e1ead575c35025ab76cb0ecb0e51f80ed566a65dd21f2d72385139ef3b706"
44
+ latest-published-id = "0xa96e1ead575c35025ab76cb0ecb0e51f80ed566a65dd21f2d72385139ef3b706"
45
+ published-version = "1"
@@ -1,15 +1,15 @@
1
1
  import { DubheConfig } from '@0xobelisk/sui-common';
2
2
 
3
3
  export const dubheConfig = {
4
- name: 'counter',
5
- description: 'counter contract',
6
- schemas: {
7
- value: 'StorageValue<u32>',
8
- },
9
- events: {
10
- Increment: { value: 'u32' },
11
- },
12
- errors: {
13
- InvalidIncrement: "Number can't be incremented, must be more than 0",
14
- }
4
+ name: 'counter',
5
+ description: 'counter contract',
6
+ schemas: {
7
+ value: 'StorageValue<u32>',
8
+ },
9
+ events: {
10
+ Increment: { value: 'u32' },
11
+ },
12
+ errors: {
13
+ InvalidIncrement: "Number can't be incremented, must be more than 0",
14
+ },
15
15
  } as DubheConfig;
@@ -0,0 +1,14 @@
1
+ import { dirname } from 'path';
2
+ import { fileURLToPath } from 'url';
3
+ import { FlatCompat } from '@eslint/eslintrc';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+
8
+ const compat = new FlatCompat({
9
+ baseDirectory: __dirname,
10
+ });
11
+
12
+ const eslintConfig = [...compat.extends('next/core-web-vitals', 'next/typescript')];
13
+
14
+ export default eslintConfig;
@@ -0,0 +1,7 @@
1
+ import type { NextConfig } from 'next';
2
+
3
+ const nextConfig: NextConfig = {
4
+ /* config options here */
5
+ };
6
+
7
+ export default nextConfig;
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "dubhe-101-template",
3
3
  "version": "1.0.0",
4
- "description": "Simple starter template",
4
+ "description": "Simple dubhe sui 101 starter template",
5
5
  "scripts": {
6
6
  "// Utility Commands": "----------------",
7
+ "lint": "next lint",
8
+ "lint:fix": "next lint --fix",
9
+ "format": "prettier --write .",
10
+ "format:check": "prettier --check .",
11
+ "type-check": "tsc --noEmit",
12
+ "validate": "pnpm lint && pnpm format:check && pnpm type-check",
7
13
  "start:localnet": "pnpm dubhe node",
8
14
  "faucet": "pnpm dubhe faucet --network",
9
15
  "deploy": "pnpm dubhe publish --network",
@@ -30,49 +36,26 @@
30
36
  },
31
37
  "dependencies": {
32
38
  "@0xobelisk/sui-cli": "^1.1.0",
33
- "@0xobelisk/sui-client": "^1.1.1",
39
+ "@0xobelisk/sui-client": "^1.1.2",
34
40
  "@0xobelisk/sui-common": "^1.1.0",
35
41
  "@0xobelisk/sui-indexer": "^1.1.3",
36
- "@mysten/sui": "1.19.0",
37
- "clsx": "^1.2.1",
38
- "dotenv": "^16.4.5",
39
- "framer-motion": "^10.12.16",
40
42
  "jotai": "^1.7.2",
41
- "next": "^12.1.6",
42
- "next-i18next": "^11.0.0",
43
- "react": "18.1.0",
44
- "react-dom": "18.1.0",
45
- "react-select": "^5.4.0",
46
- "swiper": "^9.2.4",
47
- "sonner": "^1.5.0",
48
- "chalk": "^4.1.2"
43
+ "dotenv": "^16.4.5",
44
+ "react": "^19.0.0",
45
+ "react-dom": "^19.0.0",
46
+ "next": "15.1.6",
47
+ "sonner": "^1.5.0"
49
48
  },
50
49
  "devDependencies": {
51
- "@headlessui/react": "^1.7.15",
52
- "@heroicons/react": "^2.0.18",
53
- "@tailwindcss/aspect-ratio": "^0.4.2",
54
- "@tailwindcss/forms": "^0.5.3",
55
- "@tailwindcss/line-clamp": "^0.4.4",
56
- "@tailwindcss/typography": "^0.5.9",
57
- "@testing-library/jest-dom": "^5.16.5",
58
- "@testing-library/react": "^14.0.0",
59
- "@testing-library/user-event": "^14.4.3",
60
- "@types/jest": "^29.5.2",
61
- "@types/node": "18.16.16",
62
- "@types/react": "18.2.8",
63
- "@types/react-dom": "18.2.4",
64
- "autoprefixer": "^10.4.14",
65
- "eslint": "^8.41.0",
66
- "eslint-config-next": "13.4.4",
67
- "jest": "^29.5.0",
68
- "jest-css-modules-transform": "^4.4.2",
69
- "postcss": "^8.4.24",
70
- "prettier": "^2.8.8",
71
- "prop-types": "^15.8.1",
72
- "tailwind-scrollbar": "^2.1.0",
73
- "tailwindcss": "^3.2.4",
74
- "ts-jest": "^29.1.0",
75
- "ts-node": "^10.9.1",
76
- "typescript": "^5.3.3"
50
+ "typescript": "^5",
51
+ "@types/node": "^18",
52
+ "@types/react": "^19",
53
+ "@types/react-dom": "^19",
54
+ "postcss": "^8",
55
+ "tailwindcss": "^3.4.1",
56
+ "eslint": "^9",
57
+ "eslint-config-next": "15.1.6",
58
+ "@eslint/eslintrc": "^3",
59
+ "prettier": "^3.2.2"
77
60
  }
78
61
  }