internet-court/internet-court-skill / vendored/sendaifun/glam
glam
VerifiedSolana vault management via GLAM Protocol. Triggers: glam, glam-cli, glam-sdk, vault create/manage, tokenized vault, share class, DeFi vault, treasury, asset management, access control, delegate permissions, Jupiter swap, Kamino lending/borrow/vaults/farms, staking (Marinade/native/SPL/Sanctum/LST), cross-chain USDC (CCTP), timelock, subscription/redemption, NAV pricing, token transfer. Supports CLI and TypeScript SDK.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.1 KB |
| SKILL.md | skill md | 7.2 KB |
| docs/troubleshooting.md | markdown | 4.8 KB |
| evaluations.json | config | 10.7 KB |
| examples/EXAMPLES.md | markdown | 10.9 KB |
| resources/cli/advanced.md | markdown | 4.1 KB |
| resources/cli/alt.md | markdown | 1.6 KB |
| resources/cli/delegate.md | markdown | 3.6 KB |
| resources/cli/invest.md | markdown | 1.8 KB |
| resources/cli/jupiter.md | markdown | 2.8 KB |
| resources/cli/kamino-farms.md | markdown | 2.1 KB |
| resources/cli/kamino-lend.md | markdown | 3.4 KB |
| resources/cli/kamino-vaults.md | markdown | 2.3 KB |
| resources/cli/lst.md | markdown | 2.8 KB |
| resources/cli/manage.md | markdown | 2.9 KB |
| resources/cli/staking.md | markdown | 3.8 KB |
| resources/cli/transfer.md | markdown | 1.9 KB |
| resources/cli/vault.md | markdown | 8.0 KB |
| resources/concepts.md | markdown | 6.9 KB |
| resources/sdk/client.md | markdown | 10.3 KB |
| resources/sdk/integrations.md | markdown | 9.7 KB |
| resources/sdk/ix-mapper.md | markdown | 3.9 KB |
| resources/sdk/mint.md | markdown | 2.8 KB |
| resources/sdk/multisig.md | markdown | 3.3 KB |
resources/cli/staking.md
View on GitHub# CLI: Staking Commands
> **Warning: Unaudited Integrations**
>
> The `glam-cli marinade`, `glam-cli stake`, and `glam-cli lst` commands use **unaudited** integrations and require BOTH:
> 1. `NODE_ENV=development` environment variable
> 2. `--bypass-warning` (or `-b`) flag on the parent command
>
> Without both, the command will print `"Unaudited integration. Use with caution."` and exit.
>
> ```bash
> NODE_ENV=development glam-cli marinade --bypass-warning stake 100
> ```
SOL staking operations via multiple protocols.
## Available Staking Integrations
| Integration | Protocol Name | Description | Staging |
|-------------|--------------|-------------|---------|
| Marinade | `Marinade` | Marinade liquid staking (mSOL) | Yes |
| Native Staking | `StakeProgram` | Native Solana staking (stake accounts) | Yes |
| SPL Stake Pools | `StakePool` | SPL stake pools (via `lst` command) | Yes |
| Sanctum Single | `SanctumSingle` | Sanctum single-validator pools (via `lst` command) | Yes |
| Sanctum Multi | `SanctumMulti` | Sanctum multi-validator pools (via `lst` command) | Yes |
## Marinade Staking
**Prerequisite:** Enable `Marinade` integration.
```bash
glam-cli integration enable Marinade
```
### Stake SOL to get mSOL
```bash
NODE_ENV=development glam-cli marinade --bypass-warning stake <amount> [--yes]
```
### Stake SOL to Marinade Native
```bash
NODE_ENV=development glam-cli marinade --bypass-warning stake-native <amount> [--yes]
```
### Withdraw mSOL into a stake account
```bash
NODE_ENV=development glam-cli marinade --bypass-warning withdraw-stake <amount> [--deactivate] [--yes]
```
**Options:**
| Flag | Description |
|------|-------------|
| `-d, --deactivate` | Deactivate the stake account |
| `-y, --yes` | Skip confirmation prompt |
---
## Native Staking
**Prerequisite:** Enable `StakeProgram` integration.
```bash
glam-cli integration enable StakeProgram
```
### List stake accounts
```bash
NODE_ENV=development glam-cli stake --bypass-warning list
```
### Deactivate stake accounts
```bash
NODE_ENV=development glam-cli stake --bypass-warning deactivate <accounts...> [--yes]
```
Takes one or more stake account pubkeys (space-separated).
### Withdraw from stake accounts
```bash
NODE_ENV=development glam-cli stake --bypass-warning withdraw <accounts...> [--yes]
```
Takes one or more stake account pubkeys (space-separated). Stake accounts must be fully deactivated before withdrawal.
---
## SPL Stake Pools & Sanctum
SPL stake pool and Sanctum operations use the `glam-cli lst` command. There are no separate `stake-pool` or `sanctum` command groups.
**Prerequisites:**
```bash
# For SPL stake pools
glam-cli integration enable StakePool
# For Sanctum pools
glam-cli integration enable SanctumSingle
# or
glam-cli integration enable SanctumMulti
```
### Stake SOL into a pool
```bash
NODE_ENV=development glam-cli lst --bypass-warning stake <stakepool> <amount> [--yes]
```
### Unstake from a pool
```bash
NODE_ENV=development glam-cli lst --bypass-warning unstake <asset> <amount> [--deactivate] [--yes]
```
See [lst.md](./lst.md) for full details.
---
## Common LST Mints
| LST | Mint Address |
|-----|--------------|
| mSOL | `mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So` |
| jitoSOL | `J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn` |
| bSOL | `bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1` |
| INF | `5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm` |
---
## Typical Marinade Workflow
```bash
# 1. Enable integration
glam-cli integration enable Marinade
# 2. Stake SOL
NODE_ENV=development glam-cli marinade --bypass-warning stake 100
# 3. Later, withdraw mSOL into a stake account
NODE_ENV=development glam-cli marinade --bypass-warning withdraw-stake 50
# 4. Or withdraw and deactivate in one step
NODE_ENV=development glam-cli marinade --bypass-warning withdraw-stake 50 --deactivate
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |