Skip to content

Commit 4958547

Browse files
committed
demo cleanup
1 parent 0248058 commit 4958547

101 files changed

Lines changed: 7720 additions & 6265 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/wallet-sdk/examples/demo-app/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"build": "tsc && vite build",
99
"preview": "vite preview",
1010
"codegen": "sui-ts-codegen generate && pnpm lint:fix",
11+
"analyze-unused": "bun run scripts/analyze-unused-code.ts",
12+
"cleanup-unused": "bun run scripts/analyze-unused-code.ts --cleanup",
13+
"cleanup-unused-files": "bun run scripts/analyze-unused-code.ts --files-only",
1114
"prettier:check": "prettier -c --ignore-unknown .",
1215
"prettier:fix": "prettier -w --ignore-unknown .",
1316
"eslint:check": "eslint --max-warnings=0 .",
@@ -27,9 +30,11 @@
2730
},
2831
"devDependencies": {
2932
"@mysten/codegen": "workspace:*",
33+
"@tailwindcss/vite": "^4.1.13",
3034
"@types/react": "^18.3.3",
3135
"@types/react-dom": "^18.3.0",
3236
"@vitejs/plugin-react-swc": "^3.11.0",
37+
"tailwindcss": "^4.1.11",
3338
"typescript": "^5.9.2",
3439
"vite": "^7.1.5"
3540
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"version": "1.0.0",
3+
"policyId": "demo-app-v1.1-20240911",
4+
"name": "Wallet SDK Demo App",
5+
"description": "Auto-approval policies for the Wallet SDK Demo Application",
6+
"ruleSets": {
7+
"basic-transfers": {
8+
"name": "Basic Transfers",
9+
"description": "Allow basic SUI and coin transfers to any address",
10+
"rules": {
11+
"balances": [
12+
{
13+
"$kind": "CoinBalanceRule",
14+
"description": "Allow SUI transfers to any address",
15+
"coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
16+
}
17+
]
18+
}
19+
},
20+
"counter-operations": {
21+
"name": "Counter Operations",
22+
"description": "Allow interactions with demo counter smart contracts",
23+
"rules": {
24+
"balances": [
25+
{
26+
"$kind": "CoinBalanceRule",
27+
"description": "Allow SUI for gas fees",
28+
"coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
29+
}
30+
],
31+
"ownedObjects": [
32+
{
33+
"$kind": "ObjectTypeRule",
34+
"description": "Allow counter object interactions",
35+
"objectType": "0x58a6d7dccd124b7e0bb9756dc309f5d5b9e2bc38a05261177970e96d0d3911f1::counter::Counter",
36+
"accessLevel": "mutate"
37+
}
38+
]
39+
}
40+
},
41+
"nft-operations": {
42+
"name": "NFT Operations",
43+
"description": "Allow NFT minting, transfers, and marketplace interactions",
44+
"rules": {
45+
"balances": [
46+
{
47+
"$kind": "CoinBalanceRule",
48+
"description": "Allow SUI for gas fees",
49+
"coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
50+
}
51+
],
52+
"ownedObjects": [
53+
{
54+
"$kind": "ObjectTypeRule",
55+
"description": "Allow demo NFT interactions",
56+
"objectType": "0x1ae7832d6ad190aa4c8d6a36dd014d8383246428fb27590262b8648fcec62ca0::nft::DemoNFT",
57+
"accessLevel": "transfer"
58+
}
59+
]
60+
}
61+
},
62+
"walrus-operations": {
63+
"name": "Walrus Storage",
64+
"description": "Allow interactions with Walrus decentralized storage",
65+
"rules": {
66+
"balances": [
67+
{
68+
"$kind": "CoinBalanceRule",
69+
"description": "Allow SUI payments for storage fees",
70+
"coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
71+
}
72+
]
73+
}
74+
}
75+
},
76+
"defaultSettings": {
77+
"maxUsdBudget": "100.00",
78+
"maxCoinBudget": {
79+
"0x2::sui::SUI": "10000000000"
80+
},
81+
"remainingTransactions": 50,
82+
"expiryHours": 24
83+
},
84+
"contact": {
85+
"name": "Mysten Labs",
86+
"url": "https://mystenlabs.com",
87+
"email": "build@mystenlabs.com"
88+
}
89+
}

0 commit comments

Comments
 (0)