feat: add staking

This commit is contained in:
Arihant Bansal
2024-12-12 01:26:12 +05:30
parent d4e17ad0e7
commit 91f7b8a478
5 changed files with 121 additions and 12 deletions

View File

@@ -10,6 +10,7 @@ import {
trade,
registerDomain,
launchPumpFunToken,
stakeWithJup,
} from "../tools";
import { CollectionOptions, PumpFunTokenOptions } from "../types";
import { DEFAULT_OPTIONS } from "../constants";
@@ -101,4 +102,10 @@ export class SolanaAgentKit {
options
);
}
async stake(
amount: number,
) {
return stakeWithJup(this, amount);
}
}