This commit is contained in:
Arihant Bansal
2025-01-11 22:38:46 +05:30
parent 677d17491c
commit 80fb0c4d5f
9 changed files with 42 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
import * as multisig from "@sqds/multisig";
import { PublicKey } from "@solana/web3.js";
import { SolanaAgentKit } from "../../index";
import * as multisig from "@sqds/multisig";
import { SolanaAgentKit } from "../agent";
/**
* Creates a new Squads multisig account.

View File

@@ -1,10 +1,21 @@
export * from "./adrena_perp_trading";
export * from "./close_empty_token_accounts";
export * from "./create_3land_collectible";
export * from "./create_gibwork_task";
export * from "./create_image";
export * from "./create_multisig";
export * from "./multisig_approve_proposal";
export * from "./multisig_create_proposal";
export * from "./multisig_deposit_to_treasury";
export * from "./multisig_execute_proposal";
export * from "./multisig_reject_proposal";
export * from "./multisig_transfer_from_treasury";
export * from "./create_tiplinks";
export * from "./deploy_collection";
export * from "./deploy_token";
export * from "./fetch_price";
export * from "./flash_close_trade";
export * from "./flash_open_trade";
export * from "./get_all_domains_tlds";
export * from "./get_all_registered_all_domains";
export * from "./get_balance";
@@ -41,12 +52,5 @@ export * from "./send_compressed_airdrop";
export * from "./stake_with_jup";
export * from "./stake_with_solayer";
export * from "./tensor_trade";
export * from "./close_empty_token_accounts";
export * from "./trade";
export * from "./transfer";
export * from "./flash_open_trade";
export * from "./flash_close_trade";
export * from "./create_3land_collectible";

View File

@@ -1,4 +1,4 @@
import { SolanaAgentKit } from "../../index";
import { SolanaAgentKit } from "../agent";
import * as multisig from "@sqds/multisig";
const { Multisig } = multisig.accounts;
@@ -10,7 +10,7 @@ const { Multisig } = multisig.accounts;
* @returns {Promise<string>} - A promise that resolves to the transaction ID of the approved proposal.
* @throws {Error} - Throws an error if the approval process fails.
*/
export async function approve_proposal(
export async function multisig_approve_proposal(
agent: SolanaAgentKit,
transactionIndex?: number | bigint,
): Promise<string> {

View File

@@ -1,4 +1,4 @@
import { SolanaAgentKit } from "../../index";
import { SolanaAgentKit } from "../agent";
import * as multisig from "@sqds/multisig";
const { Multisig } = multisig.accounts;
@@ -10,7 +10,7 @@ const { Multisig } = multisig.accounts;
* @returns {Promise<string>} - The transaction ID of the created proposal.
* @throws {Error} - Throws an error if the proposal creation fails.
*/
export async function create_proposal(
export async function multisig_create_proposal(
agent: SolanaAgentKit,
transactionIndex?: number | bigint,
): Promise<string> {

View File

@@ -1,4 +1,4 @@
import { SolanaAgentKit } from "../../index";
import { SolanaAgentKit } from "../agent";
import { PublicKey, SystemProgram, Transaction } from "@solana/web3.js";
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
import {
@@ -10,14 +10,14 @@ import {
import * as multisig from "@sqds/multisig";
/**
* Transfer SOL or SPL tokens to a multisig vault.
* Transfer SOL or SPL tokens to a multisig treasury vault.
* @param agent SolanaAgentKit instance
* @param amount Amount to transfer
* @param vaultIndex Optional vault index, default is 0
* @param mint Optional mint address for SPL tokens
* @returns Transaction signature
*/
export async function deposit_to_multisig(
export async function multisig_deposit_to_treasury(
agent: SolanaAgentKit,
amount: number,
vaultIndex?: number,

View File

@@ -1,4 +1,4 @@
import { SolanaAgentKit } from "../../index";
import { SolanaAgentKit } from "../agent";
import * as multisig from "@sqds/multisig";
const { Multisig } = multisig.accounts;
@@ -10,7 +10,7 @@ const { Multisig } = multisig.accounts;
* @returns {Promise<string>} - A promise that resolves to the transaction signature string.
* @throws {Error} - Throws an error if the transaction execution fails.
*/
export async function execute_transaction(
export async function multisig_execute_proposal(
agent: SolanaAgentKit,
transactionIndex?: number | bigint,
): Promise<string> {

View File

@@ -1,4 +1,4 @@
import { SolanaAgentKit } from "../../index";
import { SolanaAgentKit } from "../agent";
import * as multisig from "@sqds/multisig";
const { Multisig } = multisig.accounts;
@@ -10,7 +10,7 @@ const { Multisig } = multisig.accounts;
* @returns A promise that resolves to the transaction ID of the rejection transaction.
* @throws Will throw an error if the transaction fails.
*/
export async function reject_proposal(
export async function multisig_reject_proposal(
agent: SolanaAgentKit,
transactionIndex?: number | bigint,
): Promise<string> {

View File

@@ -1,4 +1,4 @@
import { SolanaAgentKit } from "../../index";
import { SolanaAgentKit } from "../agent";
import {
PublicKey,
SystemProgram,
@@ -15,7 +15,7 @@ import * as multisig from "@sqds/multisig";
const { Multisig } = multisig.accounts;
/**
* Transfer SOL or SPL tokens to a recipient from a multisig vault.
* Transfer SOL or SPL tokens to a recipient from a multisig treasury vault.
* @param agent - SolanaAgentKit instance.
* @param amount - Amount to transfer.
* @param to - Recipient's public key.
@@ -23,7 +23,7 @@ const { Multisig } = multisig.accounts;
* @param mint - Optional mint address for SPL tokens.
* @returns Transaction signature.
*/
export async function transfer_from_multisig(
export async function multisig_transfer_from_treasury(
agent: SolanaAgentKit,
amount: number,
to: PublicKey,