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/delegate.md
View on GitHub# CLI: Delegate Commands (`glam-cli delegate`)
Manage access control and delegate permissions for vaults.
## Commands
### `glam-cli delegate grant`
Grant delegate permissions, scoped to a specific protocol.
```bash
glam-cli delegate grant <pubkey> <permissions...> --protocol <name> [--yes]
```
**Options:**
| Flag | Description |
|------|-------------|
| `--protocol <NAME>` | Protocol to scope permissions to (e.g., `KaminoLend`, `JupiterSwap`, `SplToken`) |
| `-y, --yes` | Skip confirmation prompt |
**Available permissions by protocol:**
| Protocol | Permissions |
|----------|------------|
| **SystemProgram** | `WSOL`, `Transfer` |
| **JupiterSwap** | `SwapAny`, `SwapLST`, `SwapAllowlisted` |
| **SplToken** | `Transfer` |
| **CCTP** | `Transfer` |
| **GlamMint** | `MintTokens`, `BurnTokens`, `ForceTransfer`, `SetTokenAccountState`, `ClaimFees`, `Fulfill`, `EmergencyUpdate`, `CancelRequest`, `ClaimRequest` |
| **KaminoLend** | `Init`, `Deposit`, `Withdraw`, `Borrow`, `Repay` |
| **KaminoVaults** | `Deposit`, `Withdraw` |
| **KaminoFarms** | `Stake`, `Unstake`, `HarvestReward` |
| **Marinade** | `Stake`, `Unstake` |
| **StakeProgram** | `Stake`, `Unstake` |
| **StakePool** | `DepositSol`, `DepositStake`, `DepositSolAny`, `DepositStakeAny`, `WithdrawSol`, `WithdrawStake` |
| **SanctumSingle** | `DepositSol`, `DepositStake`, `DepositSolAny`, `DepositStakeAny`, `WithdrawSol`, `WithdrawStake` |
| **SanctumMulti** | `DepositSol`, `DepositStake`, `DepositSolAny`, `DepositStakeAny`, `WithdrawSol`, `WithdrawStake` |
**Examples:**
```bash
# Grant Kamino lending permissions (protocol-scoped)
glam-cli delegate grant <DELEGATE> Deposit Withdraw --protocol KaminoLend
# Grant Jupiter swap permissions
glam-cli delegate grant <DELEGATE> SwapAny --protocol JupiterSwap
# Grant transfer permissions
glam-cli delegate grant <DELEGATE> Transfer --protocol SplToken
```
### `glam-cli delegate list`
List vault delegates and their permissions.
```bash
glam-cli delegate list
```
### `glam-cli delegate revoke`
Revoke specific permissions from a delegate, scoped to a protocol.
```bash
glam-cli delegate revoke <pubkey> <permissions...> --protocol <name> [--yes]
```
**Options:**
| Flag | Description |
|------|-------------|
| `--protocol <NAME>` | Protocol to scope revocation to |
| `-y, --yes` | Skip confirmation prompt |
**Examples:**
```bash
# Revoke specific permissions
# Revoke transfer permission
glam-cli delegate revoke <DELEGATE> Transfer --protocol SplToken
```
### `glam-cli delegate revoke-all`
Remove all delegate access for a specific delegate.
```bash
glam-cli delegate revoke-all <pubkey> [--yes]
```
---
## Fuzzy Matching
Protocol and permission names support fuzzy matching:
1. **Exact match** — `JupiterSwap`
2. **Case-insensitive** — `jupiterswap` → `JupiterSwap`
3. **Typo suggestion** — `JupiterSwp` → `Did you mean 'JupiterSwap'?`
This applies to `--protocol` values and permission names in `grant` and `revoke` commands.
---
## Common Patterns
### Trading Delegate Setup
```bash
# Grant swap access
glam-cli delegate grant <TRADER> SwapAny --protocol JupiterSwap
```
### Yield Manager Setup
```bash
# Kamino lending permissions
glam-cli delegate grant <MANAGER> Init Deposit Withdraw Borrow Repay --protocol KaminoLend
```
### Staking Delegate Setup
```bash
# Marinade staking permissions
glam-cli delegate grant <STAKER> Stake Unstake --protocol Marinade
```
### Vault Operator Setup
```bash
# Kamino vault + farm permissions
glam-cli delegate grant <OPERATOR> Deposit Withdraw --protocol KaminoVaults
glam-cli delegate grant <OPERATOR> Stake Unstake HarvestReward --protocol KaminoFarms
```
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 |