This commit is contained in:
Arihant Bansal
2024-12-22 01:30:29 +05:30
parent ed689f5efd
commit 6d4f468fb3
43 changed files with 407 additions and 213 deletions

View File

@@ -1,4 +1,4 @@
import { SolanaAgent } from "../agent";
import { SolanaAgentKit } from "../agent";
import { Transaction, Keypair, TransactionInstruction } from "@solana/web3.js";
import { Connection, ComputeBudgetProgram } from "@solana/web3.js";
@@ -74,7 +74,7 @@ export async function getPriorityFees(connection: Connection): Promise<{
* @returns Transaction ID
*/
export async function sendTx(
agent: SolanaAgent,
agent: SolanaAgentKit,
tx: Transaction,
otherKeypairs?: Keypair[],
) {