Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 94 additions & 106 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions cli/commands/autogen/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { Links } from "../../../src/constants";
import { autogenFilePaths, getRelative, writeFileWithOverwrite } from "../../helpers";
import type { CliOptions } from "../../types";

export function createDeploymentsCommand(): Command {
export function createDeploymentsCommand() {
return new Command("deployments")
.description("Generate deployment tables for all Sablier releases")
.action(async (_options, command: Command) => {
const mergedOptions = command.optsWithGlobals();
await generateDeployments(mergedOptions);
.action(async function () {
const options = this.parent ? this.parent.opts() : {};
await generateDeployments(options);
});
}

Expand Down
9 changes: 5 additions & 4 deletions cli/commands/autogen/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ type GraphQLOptions = CliOptions & {
/* COMMAND */
/* -------------------------------------------------------------------------- */

export function createGraphQLCommand(): Command {
export function createGraphQLCommand() {
return new Command("graphql")
.description("Generate GraphQL schema documentation")
.requiredOption("-p, --protocol <protocol>", "generate for specific protocol")
.requiredOption("-v, --vendor <vendor>", "generate for specific vendor")
.action(async (options, command: Command) => {
const globalOptions = command.parent?.opts() || {};
const mergedOptions: GraphQLOptions = { ...globalOptions, ...options };
.action(async function () {
const parentOptions = this.parent ? this.parent.opts() : {};
const commandOptions = this.opts();
const mergedOptions: GraphQLOptions = { ...parentOptions, ...commandOptions };
await generateGraphQL(mergedOptions);
});
}
Expand Down
6 changes: 3 additions & 3 deletions cli/commands/autogen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { deploymentsCmd, generateDeployments } from "./deployments";
import { graphQLCmd } from "./graphql";
import { generateIndexers, indexersCmd } from "./indexers";

export function createAutogenCommand(): Command {
export function createAutogenCommand() {
const autogenCommand = new Command("autogen")
.description("Auto-generate documentation and indexers tables")
.action(async (_options, command) => {
const globalOptions = command.parent?.opts() || {};
.action(async function () {
const globalOptions = this.parent ? this.parent.opts() : {};

console.log("🚀 Generating all documentation tables...\n");

Expand Down
8 changes: 4 additions & 4 deletions cli/commands/autogen/indexers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { sablier } from "sablier";
import { autogenFilePaths, getRelative, writeFileWithOverwrite } from "../../helpers";
import type { CliOptions } from "../../types";

export function createIndexersCommand(): Command {
export function createIndexersCommand() {
return new Command("indexers")
.description("Generate indexer endpoint tables for all Sablier protocols")
.action(async (_options, command: Command) => {
const mergedOptions = command.optsWithGlobals();
await generateIndexers(mergedOptions);
.action(async function () {
const options = this.parent ? this.parent.opts() : {};
await generateIndexers(options);
});
}

Expand Down
10 changes: 5 additions & 5 deletions docs/solana/02-deployment-addresses.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Unlike EVM, the programs here adhere to the best practices of Solana development
All programs are deployed using
[Anchor's verifiable builds](https://www.anchor-lang.com/docs/references/verifiable-builds) for deterministic bytecode.

| Chain | Protocol | Program ID |
| :-----: | :-----------: | :------------------------------------------------------------------------------------------------------------------------------------: |
| Mainnet | Lockup | [4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC](https://solscan.io/account/4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC) |
| Mainnet | MerkleInstant | [7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV](https://solscan.io/account/7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV) |
| Devnet | Lockup | [4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC](https://solscan.io/account/4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC?cluster=devnet) |
| Chain | Protocol | Program ID |
| :------ | :------------ | :------------------------------------------------------------------------------------------------------------------------------------- |
| Mainnet | Lockup | [4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC](https://solscan.io/account/4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC) |
| Mainnet | MerkleInstant | [7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV](https://solscan.io/account/7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV) |
| Devnet | Lockup | [4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC](https://solscan.io/account/4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC?cluster=devnet) |
| Devnet | MerkleInstant | [7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV](https://solscan.io/account/7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV?cluster=devnet) |

The programs are verified using [Solana Verify CLI](https://github.com/Ellipsis-Labs/solana-verifiable-build/) and the
Expand Down
19 changes: 0 additions & 19 deletions docs/solana/06-governance.md

This file was deleted.

19 changes: 19 additions & 0 deletions docs/solana/07-governance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
id: "governance"
sidebar_position: 7
title: "Governance"
---

The Protocol Admin is an account with exclusive access to collecting the fee from the treasury account, and also has the
"upgrade authority". More concretely, the Admin is a multisig wallet and currently in control of Sablier Labs.

| Chain | Protocol | Role | Address |
| :------ | :------------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------- |
| Mainnet | Lockup | Admin | [7eJiuqfoRMNx2T83jzjEMBFNY6gx7mS5MHJ5e44f3DGC](https://solscan.io/account/7eJiuqfoRMNx2T83jzjEMBFNY6gx7mS5MHJ5e44f3DGC) |
| Mainnet | Lockup | Treasury | [ssqmHj4HQuuzHzADfxMHFQRnUictPAYTjA8M4crToQZ](https://solscan.io/account/ssqmHj4HQuuzHzADfxMHFQRnUictPAYTjA8M4crToQZ) |
| Mainnet | MerkleInstant | Admin | [7eJiuqfoRMNx2T83jzjEMBFNY6gx7mS5MHJ5e44f3DGC](https://solscan.io/account/7eJiuqfoRMNx2T83jzjEMBFNY6gx7mS5MHJ5e44f3DGC) |
| Mainnet | MerkleInstant | Treasury | [GcpLP426R8awe7siynMFpyZ5Br3gzMa11jh5Eak7cQUk](https://solscan.io/account/ssqmHj4HQuuzHzADfxMHFQRnUictPAYTjA8M4crToQZ) |
| Devnet | Lockup | Admin | [3qVWsco2bcnQBdd3TZFWWsWYCHm8fLqCVtQBo1K2N9gS](https://solscan.io/account/3qVWsco2bcnQBdd3TZFWWsWYCHm8fLqCVtQBo1K2N9gS?cluster=devnet) |
| Devnet | Lockup | Treasury | [ssqmHj4HQuuzHzADfxMHFQRnUictPAYTjA8M4crToQZ](https://solscan.io/account/ssqmHj4HQuuzHzADfxMHFQRnUictPAYTjA8M4crToQZ?cluster=devnet) |
| Devnet | MerkleInstant | Admin | [3qVWsco2bcnQBdd3TZFWWsWYCHm8fLqCVtQBo1K2N9gS](https://solscan.io/account/3qVWsco2bcnQBdd3TZFWWsWYCHm8fLqCVtQBo1K2N9gS?cluster=devnet) |
| Devnet | MerkleInstant | Treasury | [GcpLP426R8awe7siynMFpyZ5Br3gzMa11jh5Eak7cQUk](https://solscan.io/account/ssqmHj4HQuuzHzADfxMHFQRnUictPAYTjA8M4crToQZ?cluster=devnet) |
Loading