feat: langchain integration

This commit is contained in:
fm2055
2024-12-16 23:00:31 +08:00
parent 8927ac4130
commit ff8cb4b842
5 changed files with 103 additions and 4 deletions

View File

@@ -9,6 +9,8 @@ import {
transfer,
trade,
registerDomain,
resolveSolDomain,
getPrimaryDomain,
launchPumpFunToken,
lendAsset,
getTPS,
@@ -79,6 +81,14 @@ export class SolanaAgentKit {
return registerDomain(this, name, spaceKB);
}
async resolveSolDomain(domain:string ){
return resolveSolDomain(this, domain)
}
async getPrimaryDomain(account: PublicKey){
return getPrimaryDomain(this, account)
}
async trade(
outputMint: PublicKey,
inputAmount: number,