create-dubhe 0.1.2 → 0.1.5
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/package.json +1 -1
- package/template/101/sui-template/.prettierrc +7 -7
- package/template/101/sui-template/README.md +8 -9
- package/template/101/sui-template/contracts/counter/.history/sui_localnet/latest.json +11 -0
- package/template/101/sui-template/contracts/counter/Move.lock +45 -0
- package/template/101/sui-template/dubhe.config.ts +11 -11
- package/template/101/sui-template/eslint.config.mjs +14 -0
- package/template/101/sui-template/next.config.ts +7 -0
- package/template/101/sui-template/package.json +23 -40
- package/template/101/sui-template/pnpm-lock.yaml +8133 -0
- package/template/101/sui-template/postcss.config.mjs +8 -0
- package/template/101/sui-template/src/app/favicon.ico +0 -0
- package/template/101/sui-template/src/app/globals.css +21 -0
- package/template/101/sui-template/src/app/layout.tsx +34 -0
- package/template/101/sui-template/src/app/page.tsx +106 -0
- package/template/101/sui-template/src/app/state/index.tsx +5 -0
- package/template/101/sui-template/src/chain/config.ts +2 -2
- package/template/101/sui-template/tailwind.config.ts +18 -0
- package/template/101/sui-template/tsconfig.json +11 -8
- package/template/contract/sui-template/package.json +1 -1
- package/template/nextjs/sui-template/.prettierrc +7 -7
- package/template/nextjs/sui-template/README.md +8 -8
- package/template/nextjs/sui-template/contracts/counter/.history/sui_localnet/latest.json +11 -0
- package/template/nextjs/sui-template/contracts/counter/Move.lock +52 -0
- package/template/nextjs/sui-template/contracts/counter/Move.toml +1 -1
- package/template/nextjs/sui-template/dubhe.config.ts +11 -11
- package/template/nextjs/sui-template/eslint.config.mjs +14 -0
- package/template/nextjs/sui-template/next.config.mjs +5 -0
- package/template/nextjs/sui-template/package.json +25 -41
- package/template/nextjs/sui-template/pnpm-lock.yaml +9002 -0
- package/template/nextjs/sui-template/postcss.config.mjs +8 -0
- package/template/nextjs/sui-template/src/app/favicon.ico +0 -0
- package/template/nextjs/sui-template/src/app/globals.css +21 -0
- package/template/nextjs/sui-template/src/app/layout.tsx +35 -0
- package/template/nextjs/sui-template/src/app/page.tsx +151 -0
- package/template/nextjs/sui-template/src/{pages/_app.tsx → app/providers.tsx} +6 -12
- package/template/nextjs/sui-template/src/app/state/index.tsx +5 -0
- package/template/nextjs/sui-template/src/chain/config.ts +3 -3
- package/template/nextjs/sui-template/tailwind.config.ts +18 -0
- package/template/nextjs/sui-template/tsconfig.json +13 -15
- package/template/101/sui-template/.dockerignore +0 -7
- package/template/101/sui-template/.eslintrc.json +0 -3
- package/template/101/sui-template/Dockerfile +0 -52
- package/template/101/sui-template/LICENSE +0 -674
- package/template/101/sui-template/jest.config.ts +0 -17
- package/template/101/sui-template/next-env.d.ts +0 -5
- package/template/101/sui-template/next-i18next.config.js +0 -6
- package/template/101/sui-template/next.config.js +0 -15
- package/template/101/sui-template/postcss.config.js +0 -6
- package/template/101/sui-template/public/discord.svg +0 -9
- package/template/101/sui-template/public/fail.svg +0 -12
- package/template/101/sui-template/public/favicon.ico +0 -0
- package/template/101/sui-template/public/locales/de/common.json +0 -8
- package/template/101/sui-template/public/locales/de/footer.json +0 -3
- package/template/101/sui-template/public/locales/de/second-page.json +0 -5
- package/template/101/sui-template/public/locales/en/common.json +0 -8
- package/template/101/sui-template/public/locales/en/footer.json +0 -3
- package/template/101/sui-template/public/locales/en/second-page.json +0 -5
- package/template/101/sui-template/public/locales/zn/common.json +0 -8
- package/template/101/sui-template/public/locales/zn/footer.json +0 -3
- package/template/101/sui-template/public/locales/zn/second-page.json +0 -5
- package/template/101/sui-template/public/logo.svg +0 -1
- package/template/101/sui-template/public/medium.svg +0 -9
- package/template/101/sui-template/public/successful.svg +0 -11
- package/template/101/sui-template/public/telegram.svg +0 -9
- package/template/101/sui-template/public/twitter.svg +0 -9
- package/template/101/sui-template/src/css/font-awesome.css +0 -2337
- package/template/101/sui-template/src/css/font-awesome.min.css +0 -4
- package/template/101/sui-template/src/fonts/FontAwesome.otf +0 -0
- package/template/101/sui-template/src/fonts/fontawesome-webfont.eot +0 -0
- package/template/101/sui-template/src/fonts/fontawesome-webfont.svg +0 -2671
- package/template/101/sui-template/src/fonts/fontawesome-webfont.ttf +0 -0
- package/template/101/sui-template/src/fonts/fontawesome-webfont.woff +0 -0
- package/template/101/sui-template/src/fonts/fontawesome-webfont.woff2 +0 -0
- package/template/101/sui-template/src/jotai/index.tsx +0 -12
- package/template/101/sui-template/src/pages/_app.tsx +0 -15
- package/template/101/sui-template/src/pages/home/index.tsx +0 -117
- package/template/101/sui-template/src/pages/index.tsx +0 -12
- package/template/101/sui-template/tailwind.config.js +0 -56
- package/template/nextjs/sui-template/.dockerignore +0 -7
- package/template/nextjs/sui-template/.eslintrc.json +0 -3
- package/template/nextjs/sui-template/Dockerfile +0 -52
- package/template/nextjs/sui-template/LICENSE +0 -674
- package/template/nextjs/sui-template/jest.config.ts +0 -17
- package/template/nextjs/sui-template/next-env.d.ts +0 -5
- package/template/nextjs/sui-template/next-i18next.config.js +0 -6
- package/template/nextjs/sui-template/next.config.js +0 -15
- package/template/nextjs/sui-template/postcss.config.js +0 -6
- package/template/nextjs/sui-template/public/discord.svg +0 -9
- package/template/nextjs/sui-template/public/fail.svg +0 -12
- package/template/nextjs/sui-template/public/favicon.ico +0 -0
- package/template/nextjs/sui-template/public/locales/de/common.json +0 -8
- package/template/nextjs/sui-template/public/locales/de/footer.json +0 -3
- package/template/nextjs/sui-template/public/locales/de/second-page.json +0 -5
- package/template/nextjs/sui-template/public/locales/en/common.json +0 -8
- package/template/nextjs/sui-template/public/locales/en/footer.json +0 -3
- package/template/nextjs/sui-template/public/locales/en/second-page.json +0 -5
- package/template/nextjs/sui-template/public/locales/zn/common.json +0 -8
- package/template/nextjs/sui-template/public/locales/zn/footer.json +0 -3
- package/template/nextjs/sui-template/public/locales/zn/second-page.json +0 -5
- package/template/nextjs/sui-template/public/logo.svg +0 -1
- package/template/nextjs/sui-template/public/medium.svg +0 -9
- package/template/nextjs/sui-template/public/successful.svg +0 -11
- package/template/nextjs/sui-template/public/telegram.svg +0 -9
- package/template/nextjs/sui-template/public/twitter.svg +0 -9
- package/template/nextjs/sui-template/src/components/Animation.tsx +0 -80
- package/template/nextjs/sui-template/src/components/Container.tsx +0 -11
- package/template/nextjs/sui-template/src/components/footer/index.tsx +0 -138
- package/template/nextjs/sui-template/src/components/head/index.tsx +0 -14
- package/template/nextjs/sui-template/src/components/header/index.tsx +0 -173
- package/template/nextjs/sui-template/src/components/pop_up_box/index.tsx +0 -149
- package/template/nextjs/sui-template/src/css/font-awesome.css +0 -2337
- package/template/nextjs/sui-template/src/css/font-awesome.min.css +0 -4
- package/template/nextjs/sui-template/src/fonts/FontAwesome.otf +0 -0
- package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.eot +0 -0
- package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.svg +0 -2671
- package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.ttf +0 -0
- package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.woff +0 -0
- package/template/nextjs/sui-template/src/fonts/fontawesome-webfont.woff2 +0 -0
- package/template/nextjs/sui-template/src/jotai/index.tsx +0 -13
- package/template/nextjs/sui-template/src/pages/home/index.tsx +0 -172
- package/template/nextjs/sui-template/src/pages/index.tsx +0 -15
- package/template/nextjs/sui-template/tailwind.config.js +0 -56
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
@@ -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.
|
|
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
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"react": "
|
|
44
|
-
"
|
|
45
|
-
"
|
|
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
|
-
"
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"@
|
|
60
|
-
"
|
|
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
|
}
|