feat: add create_squads_multisig function and update deposit_to_multisig documentation for clarity

This commit is contained in:
A91y
2024-12-28 22:05:14 +05:30
parent 08b3d24dad
commit e9922ed39e
2 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,15 @@ import * as multisig from "@sqds/multisig";
import { PublicKey } from "@solana/web3.js";
import { SolanaAgentKit } from "../../index";
/**
* Creates a new Squads multisig account.
*
* @param agent - The SolanaAgentKit instance containing the connection and wallet information.
* @param creator - The public key of the creator who will be a member of the multisig.
* @returns A promise that resolves to the transaction ID of the multisig creation transaction.
*
* @throws Will throw an error if the transaction fails.
*/
export async function create_squads_multisig(
agent: SolanaAgentKit,
creator: PublicKey,

View File

@@ -10,7 +10,7 @@ import {
import * as multisig from "@sqds/multisig";
/**
* Transfer SOL or SPL tokens to a recipient
* Transfer SOL or SPL tokens to a multisig vault.
* @param agent SolanaAgentKit instance
* @param amount Amount to transfer
* @param vaultIndex Optional vault index, default is 0