Examples
| Description | |
|---|---|
| cp-swap-reference | Fork of Raydium AMM that creates markets without paying rent-exemption |
| create-and-transfer | Create account via macro and transfer via CPI |
Macros
| Description | |
|---|---|
| counter | Create PDA with sponsored rent-exemption |
| create-associated-token-account | Create associated light-token account |
| create-mint | Create light-token mint |
| create-token-account | Create light-token account |
Instructions
The instructions use pure CPI calls which you can combine with existing and / or light macros. For existing programs, you can replace spl_token with light_token instructions as you need. The API is a superset of SPL-token so switching is straightforward.| Description | |
|---|---|
| approve | Approve delegate via CPI |
| burn | Burn tokens via CPI |
| close | Close token account via CPI |
| create-associated-token-account | Create associated light-token account via CPI |
| create-mint | Create light-token mint via CPI |
| create-token-account | Create light-token account via CPI |
| freeze | Freeze token account via CPI |
| mint-to | Mint tokens via CPI |
| revoke | Revoke delegate via CPI |
| thaw | Thaw token account via CPI |
| transfer-checked | Transfer with mint validation via CPI |
| transfer-interface | Transfer between light-token, T22, and SPL accounts via CPI |