Skip to content

GLAM is an onchain asset management and tokenization platform
to launch and manage investment products on Solana.

License

Notifications You must be signed in to change notification settings

glamsystems/glam

Repository files navigation

GLAM Tests

GLAM *.+ The New Standard for Asset Management.

Onchain Asset Management on Solana

GLAM is a platform for deploying institutional-grade investment products on Solana. Through programmable vaults and mints, GLAM provides infrastructure for onchain operations with fine-grained acccess controls.

Quick Links

Development Setup

Prerequisites

  • Node v20.11.0 or higher
  • Pnpm v9.1.2 or higher
  • Rust v1.75.0 or higher
  • Anchor CLI 0.30.1
  • Solana CLI 1.18.23

Install Solana CLI (recommended):

sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.23/install)"

Installation

git clone https://github.com/glamsystems/glam.git
cd glam
pnpm install

Testing

Build and run the test suite:

pnpm run anchor-build
pnpm run anchor-test

Local Development

Start the development server:

pnpm run dev

SDK Usage Example

import * as anchor from "@coral-xyz/anchor";
import { GlamClient, WSOL } from "@glamsystems/glam-sdk";
import { PublicKey } from "@solana/web3.js";

const glamClient = new GlamClient();
const statePda = new PublicKey("FMHLPaEeCbuivqsAfHrr28FpWJ9oKHTx3jzFbb3tYhq4");

async function main() {
  const vaultPda = glamClient.getVaultPda(statePda);
  const vaultWsolBalance = await glamClient.getVaultTokenBalance(statePda, WSOL);
  
  // Wrap 0.1 SOL
  const txSig = await glamClient.wsol.wrap(statePda, new anchor.BN(100_000_000));
  
  // Check updated balance
  const vaultWsolBalanceAfter = await glamClient.getVaultTokenBalance(statePda, WSOL);
}

For detailed API documentation and advanced usage examples, visit our Developer Documentation.

About

GLAM is an onchain asset management and tokenization platform
to launch and manage investment products on Solana.

Topics

Resources

License

Stars

Watchers

Forks