feat: tool description + types

This commit is contained in:
aryan
2024-12-25 04:26:06 +05:30
parent d81d17e2fd
commit 737d5ce86b
7 changed files with 64 additions and 80 deletions

View File

@@ -218,20 +218,17 @@ export class SolanaAgentKit {
async getOwnedAllDomains(
owner: PublicKey
): Promise<NameAccountAndDomain[]> {
): Promise<string[]> {
return getOwnedAllDomains(this, owner);
}
async getOwnedDomainsForTLD(
tld: string
):Promise<NameAccountAndDomain[]> {
):Promise<string[]> {
return getOwnedDomainsForTLD(this, tld);
}
async getAllDomainsTLDs(): Promise<Array<{
tld: String;
parentAccount: PublicKey;
}>> {
async getAllDomainsTLDs(): Promise<String[]> {
return getAllDomainsTLDs(this);
}