Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0ece committed Apr 7, 2024
1 parent 0df1e2f commit a397b08
Show file tree
Hide file tree
Showing 36 changed files with 109 additions and 515 deletions.
80 changes: 80 additions & 0 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/glamsystems/brand_assets/main/github/github_banner_light.svg">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/glamsystems/brand_assets/main/github/github_banner_dark.svg">
<img alt="GLAM *.+ The New Standard for Asset Management." src="https://raw.githubusercontent.com/glamsystems/brand_assets/main/github/github_banner_dark.svg">
</picture>
<br>
<a href="https://glam.systems" target="_blank">Website</a> |
<a href="mailto:[email protected]" target="_blank">Contact</a> |
<a href="https://x.com/glamsystems" target="_blank">X</a>
<br>
<br>
<br>
</p>

---

<br>

GLAM is a decentralized on-chain asset management protocol on Solana that enables efficient management & operations of investment products, empowering investors to have greater control & equity in their financial futures.

## Dev

This project was generated with the [create-solana-dapp](https://github.com/solana-developers/create-solana-dapp) generator using React preset.

### Prerequisites

- Node v20.11.0 or higher
- Pnpm v8.15.1 or higher
- Rust v1.75.0 or higher
- Anchor CLI 0.29.0 or higher
- Solana CLI 1.18.7

Recommended:

```shell
sh -c "$(curl -sSfL https://release.solana.com/v1.18.7/install)"
```

### Installation

```shell
git clone ...
cd glam

pnpm install
```

(Internal team only: get `keypairs.zip` and unpack it into `./anchor/target/deploy`)

### Run the tests

```shell
cd anchor
anchor build
# ^ this will create target/deploy
cd target/deploy
unzip /path/to/keypairs.zip
cd -
anchor test
```

This should also work:

```shell
pnpm run anchor-build
pnpm run anchor-test
```

### Start the web app

```shell
pnpm run dev
```

### Start the api server

```shell
cd api && npm start
```
82 changes: 29 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<img alt="GLAM *.+ The New Standard for Asset Management." src="https://raw.githubusercontent.com/glamsystems/brand_assets/main/github/github_banner_dark.svg">
</picture>
<br>
<a href="https://glam.systems" target="_blank">Website</a> |
<a href="mailto:[email protected]" target="_blank">Contact</a> |
<a href="https://x.com/glamsystems" target="_blank">X</a> <!--|
<a href="https://warpcast.com/glamsystems" target="_blank">F</a>-->
<a href="https://glam.systems" target="_blank">Website</a> |
<a href="mailto:[email protected]" target="_blank">Contact</a> |
<a href="https://x.com/glamsystems" target="_blank">X</a>
<br>
<br>
<br>
Expand All @@ -20,62 +19,39 @@

GLAM is a decentralized on-chain asset management protocol on Solana that enables efficient management & operations of investment products, empowering investors to have greater control & equity in their financial futures.

## Dev
## Demo

This project is generated with the [create-solana-dapp](https://github.com/solana-developers/create-solana-dapp) generator using React preset.
Check out the live demo: [https://beta.glam.systems](https://beta.glam.systems)

### Prerequisites
Or watch our 3 min video:

- Node v20.11.0 or higher
- Pnpm v8.15.1 or higher
- Rust v1.75.0 or higher
- Anchor CLI 0.29.0 or higher
- Solana CLI 1.18.7
[![GLAM demo](https://img.youtube.com/vi/K6H1TRbiaR4/0.jpg)](https://www.youtube.com/watch?v=K6H1TRbiaR4)

Recommended:
## Features

```shell
sh -c "$(curl -sSfL https://release.solana.com/v1.18.7/install)"
```
Fund:

### Installation
- [x] On chain [Openfunds](https://openfunds.org)
- [x] Segregated treasury account
- [x] Share classes (Token 2022)
- [x] On chain Openfunds Share Class (Metadata Extension)
- [x] Lockup period (Transfer Hook, in progress)
- [ ] Non-Transferable
- [ ] Permanent Delegate
- [x] Investors subscribe & redeem
- [ ] Fees
- [ ] Subscription limits
- [ ] External/off chain assets

```shell
git clone ...
cd glam
Integrations:

pnpm install
```
- [x] User wallets (Phantom, Backpack)
- [x] Pricing (Pyth)
- [x] Trading (Drift delegate account, deposit, withdraw)
- [ ] Swap, rebalance (Orca?, Jupiter?)
- [ ] Alternative strategy engine (Symmetry?)
- [ ] Alternative custody (Squad?)

Get `keypairs.zip` and unpack it into `./anchor/target/deploy`.
## Contribute

### Run the tests

```shell
cd anchor
anchor build
# ^ this will create target/deploy
cd target/deploy
unzip /path/to/keypairs.zip
cd -
anchor test
```

This should also work:

```shell
pnpm run anchor-build
pnpm run anchor-test
```

### Start the web app

```shell
pnpm run dev
```

### Start the api server

```shell
cd api/ && npm start
```
We love any type of contribution, bug fixes, new integrations and better docs. See [DEVELOPER.md](./DEVELOPER.md) to get started.
19 changes: 0 additions & 19 deletions anchor/programs-old/custody/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions anchor/programs-old/custody/Xargo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions anchor/programs-old/custody/src/constants.rs

This file was deleted.

7 changes: 0 additions & 7 deletions anchor/programs-old/custody/src/error.rs

This file was deleted.

8 changes: 0 additions & 8 deletions anchor/programs-old/custody/src/instructions/initialize.rs

This file was deleted.

3 changes: 0 additions & 3 deletions anchor/programs-old/custody/src/instructions/mod.rs

This file was deleted.

20 changes: 0 additions & 20 deletions anchor/programs-old/custody/src/lib.rs

This file was deleted.

1 change: 0 additions & 1 deletion anchor/programs-old/custody/src/state/mod.rs

This file was deleted.

26 changes: 0 additions & 26 deletions anchor/programs-old/policy/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions anchor/programs-old/policy/Xargo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions anchor/programs-old/policy/src/constants.rs

This file was deleted.

7 changes: 0 additions & 7 deletions anchor/programs-old/policy/src/error.rs

This file was deleted.

3 changes: 0 additions & 3 deletions anchor/programs-old/policy/src/instructions/mod.rs

This file was deleted.

38 changes: 0 additions & 38 deletions anchor/programs-old/policy/src/instructions/transfer_hook.rs

This file was deleted.

Loading

0 comments on commit a397b08

Please sign in to comment.