https://github.com/awkweb/rust-ethereum-day
Basic WASM wallet using TypeScript types and Rust runtime implementation.
https://github.com/awkweb/rust-ethereum-day
Last synced: 8 months ago
JSON representation
Basic WASM wallet using TypeScript types and Rust runtime implementation.
- Host: GitHub
- URL: https://github.com/awkweb/rust-ethereum-day
- Owner: awkweb
- License: mit
- Created: 2023-08-24T23:34:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T02:04:16.000Z (over 2 years ago)
- Last Synced: 2025-01-04T17:47:32.515Z (about 1 year ago)
- Language: Rust
- Homepage: https://wasm-wallet.vercel.app
- Size: 31.3 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Ethereum Day
Basic WASM wallet demo using TypeScript and Rust for [Rust Ethereum Day 2023](https://twitter.com/gakonst/status/1678536408238112769).
s/o to [@jxom](https://github.com/jxom) for kicking off the Rust code.
## Dev
Install [wasm-pack](https://rustwasm.github.io/docs/wasm-pack)
```bash
cargo install wasm-pack
```
Install and build dependencies
```bash
pnpm install
```
Run dev server on [http://localhost:5173](http://localhost:5173)
```bash
pnpm dev
```
## Prerequisites
- [pnpm](https://pnpm.io)
- [rustup](https://rustup.rs)
## Scripts
| Command | Description |
| ----------------- | ------------------------------- |
| `pnpm dev` | Run dev server |
| `pnpm build` | Build playground for production |
| `pnpm build:wasm` | Build wasm-wallet package |
| `pnpm clean` | Clean build outputs |
| `pnpm format` | Format code |
| `pnpm lint` | Lint code |
| `pnpm lint:fix` | Lint and fix code |
| `pnpm preview` | Preview production build |