Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 65 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,70 @@ Light token is a high-performance token standard that reduces the cost of mint a

### Toolkits

- **[Payments and Wallets](toolkits/payments-and-wallets/)** - All you need for wallet integrations and payment flows. Minimal API differences to SPL.
- **[Streaming Tokens](toolkits/streaming-tokens/)** - Stream mint events using Laserstream

### TypeScript Client

TypeScript examples for light-token-sdk.

- **create-mint** - Create a light-token mint
- [Action](typescript-client/actions/create-mint.ts) | [Instruction](typescript-client/instructions/create-mint.ts)
- **create-ata** - Create an associated light-token account
- [Action](typescript-client/actions/create-ata.ts) | [Instruction](typescript-client/instructions/create-ata.ts)
- **load-ata** - Load token accounts from light-token, compressed tokens, SPL/T22 to one unified balance.
- [Action](typescript-client/actions/load-ata.ts) | [Instruction](typescript-client/instructions/load-ata.ts)
- **mint-to** - Mint tokens to a light-account
- [Action](typescript-client/actions/mint-to.ts) | [Instruction](typescript-client/instructions/mint-to.ts)
- **transfer-interface** - Transfer between light-token, T22, and SPL accounts
- [Action](typescript-client/actions/transfer-interface.ts) | [Instruction](typescript-client/instructions/transfer-interface.ts)
- **wrap** - Wrap SPL/T22 to light-token
- [Action](typescript-client/actions/wrap.ts)
- **unwrap** - Unwrap light-token to SPL/T22
- [Action](typescript-client/actions/unwrap.ts)

* **[Payments and Wallets](toolkits/payments-and-wallets/)** - All you need for wallet integrations and payment flows. Minimal API differences to SPL.
* **[Streaming Tokens](toolkits/streaming-tokens/)** - Stream mint events using Laserstream

## Rust and TypeScript Client

* **create-mint** - Create a light-token mint
* TypeScript: [Action](typescript-client/actions/create-mint.ts) | [Instruction](typescript-client/instructions/create-mint.ts)
* Rust: [Action](rust-client/example-actions/create_mint.rs) | [Instruction](rust-client/example-instructions/create_mint.rs)

* **create-ata** - Create an associated light-token account
* TypeScript: [Action](typescript-client/actions/create-ata.ts) | [Instruction](typescript-client/instructions/create-ata.ts)
* Rust: [Action](rust-client/example-actions/create_ata.rs) | [Instruction](rust-client/example-instructions/create_ata.rs)

* **create-token-account** - Create a light-token account with custom owner
* Rust: [Instruction](rust-client/example-instructions/create_token_account.rs)

* **load-ata** - Load token accounts from light-token, compressed tokens, SPL/T22 to one unified balance
* TypeScript: [Action](typescript-client/actions/load-ata.ts) | [Instruction](typescript-client/instructions/load-ata.ts)

* **mint-to** - Mint tokens to a light-account
* TypeScript: [Action](typescript-client/actions/mint-to.ts) | [Instruction](typescript-client/instructions/mint-to.ts)
* Rust: [Action](rust-client/example-actions/mint_to.rs) | [Instruction](rust-client/example-instructions/mint_to.rs)

* **mint-to-checked** - Mint tokens with decimal validation
* Rust: [Instruction](rust-client/example-instructions/mint_to_checked.rs)

* **transfer-interface** - Transfer between light-token, T22, and SPL accounts
* TypeScript: [Action](typescript-client/actions/transfer-interface.ts) | [Instruction](typescript-client/instructions/transfer-interface.ts)
* Rust: [Action](rust-client/example-actions/transfer_interface.rs) | [Instruction](rust-client/example-instructions/transfer_interface.rs)

* **transfer-checked** - Transfer with decimal validation
* Rust: [Action](rust-client/example-actions/transfer_checked.rs) | [Instruction](rust-client/example-instructions/transfer_checked.rs)

* **burn** - Burn tokens
* Rust: [Instruction](rust-client/example-instructions/burn.rs)

* **burn-checked** - Burn tokens with decimal validation
* Rust: [Instruction](rust-client/example-instructions/burn_checked.rs)

* **wrap** - Wrap SPL/T22 to light-token
* TypeScript: [Action](typescript-client/actions/wrap.ts)
* Rust: [Action](rust-client/example-actions/wrap.rs)

* **unwrap** - Unwrap light-token to SPL/T22
* TypeScript: [Action](typescript-client/actions/unwrap.ts)
* Rust: [Action](rust-client/example-actions/unwrap.rs)

* **approve** - Approve delegate
* TypeScript: [Action](typescript-client/actions/delegate-approve.ts)
* Rust: [Action](rust-client/example-actions/approve.rs) | [Instruction](rust-client/example-instructions/approve.rs)

* **revoke** - Revoke delegate
* TypeScript: [Action](typescript-client/actions/delegate-revoke.ts)
* Rust: [Action](rust-client/example-actions/revoke.rs) | [Instruction](rust-client/example-instructions/revoke.rs)

* **freeze** - Freeze a token account
* Rust: [Instruction](rust-client/example-instructions/freeze.rs)

* **thaw** - Thaw a frozen token account
* Rust: [Instruction](rust-client/example-instructions/thaw.rs)

* **close** - Close a token account
* Rust: [Instruction](rust-client/example-instructions/close.rs)

## Documentation

Learn more [about to Light-Token here](https://www.zkcompression.com/light-token/welcome).
Learn more [about Light-Token here](https://www.zkcompression.com/light-token/welcome).
Loading
Loading