Skip to content

Commit 82d62a4

Browse files
chore: wip
1 parent 6f039a3 commit 82d62a4

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

packages/ts-governance/README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# ts-governance
2+
3+
DAO governance, proposals, voting, delegation, and treasury management for Solana.
4+
5+
## Installation
6+
7+
```bash
8+
bun add ts-governance
9+
# or
10+
npm install ts-governance
11+
```
12+
13+
## Usage
14+
15+
```ts
16+
import { dao, proposals, voting, treasury, delegation, createVotes } from 'ts-governance'
17+
18+
// Create a DAO
19+
const myDao = await dao.create({ name: 'My DAO', ... })
20+
21+
// Create and manage proposals
22+
const proposal = await proposals.create({ title: 'Fund Project X', ... })
23+
24+
// Cast votes
25+
const votes = createVotes({ ... })
26+
await voting.castVote(proposal.id, { choice: 'yes' })
27+
28+
// Treasury operations
29+
await treasury.deposit({ amount: 1000, mint: tokenMint })
30+
31+
// Delegation
32+
await delegation.delegate({ to: delegateAddress, amount: 500 })
33+
```
34+
35+
You can also import specific modules directly:
36+
37+
```ts
38+
import { create } from 'ts-governance/dao'
39+
import { castVote } from 'ts-governance/voting'
40+
import { deposit } from 'ts-governance/treasury'
41+
```
42+
43+
## Features
44+
45+
- DAO creation and management
46+
- Proposal lifecycle (create, vote, execute, cancel)
47+
- On-chain voting with multiple strategies
48+
- Token delegation
49+
- Treasury management (deposits, withdrawals, transfers)
50+
- Solana program integration via `@solana/web3.js` and `@solana/spl-token`
51+
- CLI support via the `governance` binary
52+
53+
## License
54+
55+
MIT
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# ts-tokens-vscode
2+
3+
VS Code extension for ts-tokens -- Solana token and NFT development. Provides code snippets, problem matchers, and workspace integration for ts-tokens projects.
4+
5+
## Installation
6+
7+
Install from the VS Code Marketplace by searching for **ts-tokens** (publisher: stacksjs), or install the `.vsix` file directly.
8+
9+
## Usage
10+
11+
The extension activates automatically when a workspace contains a `tokens.config.ts` or `tokens.config.js` file.
12+
13+
Once active, click the **ts-tokens** status bar item or open the command palette to access commands:
14+
15+
- **Create Token** -- `tokens token create`
16+
- **Create NFT** -- `tokens nft create`
17+
- **Create Collection** -- `tokens collection create`
18+
- **Start Dev Validator** -- `tokens dev`
19+
- **Upload to Storage** -- `tokens storage upload`
20+
- **Show Config** -- `tokens config show`
21+
- **Fix Error** -- `tokens fix <errorCode>`
22+
23+
## Features
24+
25+
- TypeScript and TSX code snippets for ts-tokens APIs
26+
- Status bar indicator for ts-tokens workspaces
27+
- Quick-pick command palette for common CLI operations
28+
- Error code lookup and fix command
29+
- Problem matchers for ts-tokens CLI output, transaction errors, and validation warnings
30+
- Task definitions for running ts-tokens CLI commands
31+
- Automatic detection of `tokens.config.ts` changes
32+
33+
## License
34+
35+
MIT

0 commit comments

Comments
 (0)