Skip to content

Commit a13ceb8

Browse files
committed
refactor(examples): secp256k1 transfer example
1 parent 635ca26 commit a13ceb8

File tree

7 files changed

+2201
-243
lines changed

7 files changed

+2201
-243
lines changed

examples/secp256k1-transfer/index.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

examples/secp256k1-transfer/lib.ts

Lines changed: 0 additions & 164 deletions
This file was deleted.

examples/secp256k1-transfer/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"description": "",
66
"main": "index.js",
77
"scripts": {
8+
"start": "parcel src/index.html",
89
"lint": "tsc --noEmit"
910
},
1011
"keywords": [],
@@ -14,12 +15,19 @@
1415
"@ckb-lumos/lumos": "0.18.0",
1516
"@types/react": "^17.0.34",
1617
"@types/react-dom": "^17.0.11",
18+
"bulma": "^0.9.4",
19+
"nanoid": "^4.0.0",
1720
"react": "^17.0.2",
18-
"react-dom": "^17.0.2"
21+
"react-dom": "^17.0.2",
22+
"react-use": "^17.4.0"
1923
},
2024
"devDependencies": {
2125
"@babel/cli": "^7.16.0",
2226
"@babel/core": "^7.16.0",
23-
"@babel/plugin-transform-modules-commonjs": "^7.16.0"
27+
"@babel/plugin-transform-modules-commonjs": "^7.16.0",
28+
"parcel": "^2.7.0",
29+
"postcss": "^8.4.16",
30+
"process": "^0.11.10",
31+
"typescript": "^4.7.4"
2432
}
2533
}

examples/secp256k1-transfer/index.html renamed to examples/secp256k1-transfer/src/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Lumos Transfer</title>
7+
<title>Lumos Secp256k1 Transfer Demo</title>
88
</head>
99
<body>
10-
<div id="root"></div>
1110
<script src="index.tsx" type="module"></script>
1211
</body>
1312
</html>

0 commit comments

Comments
 (0)