diff --git a/src/agent/index.ts b/src/agent/index.ts index 56cfe74..c5dca61 100644 --- a/src/agent/index.ts +++ b/src/agent/index.ts @@ -37,6 +37,12 @@ import { PumpFunTokenOptions, } from "../types"; import { BN } from "@coral-xyz/anchor"; +import { getAllDomainsTLDs } from "../tools/get_all_active_tlds"; +import { getAllRegisteredAllDomains } from "../tools/get_all_registered_all_domains"; +import { getOwnedDomainsForTLD } from "../tools/get_domains_on_tld"; +import { getMainAllDomainsDomain } from "../tools/get_main_domain"; +import { getOwnedAllDomains } from "../tools/lookup_owner"; +import { resolveAllDomains } from "../tools/resolve_domain"; /** * Main class for interacting with Solana blockchain @@ -192,8 +198,8 @@ export class SolanaAgentKit { otherTokenMint: PublicKey, initialPrice: Decimal, maxPrice: Decimal, - feeTier: keyof typeof FEE_TIERS, - ): Promise { + feeTier: keyof typeof FEE_TIERS + ) { return createOrcaSingleSidedWhirlpool( this, depositTokenAmount, @@ -201,10 +207,38 @@ export class SolanaAgentKit { otherTokenMint, initialPrice, maxPrice, - feeTier, + feeTier ); } + // New domain-related methods + async resolveAllDomains(domain: string): Promise { + return resolveAllDomains(this, domain); + } + + async getOwnedAllDomains(owner: PublicKey): Promise { + return getOwnedAllDomains(this, owner); + } + + async getOwnedDomainsForTLD( + owner: PublicKey, + tld: string + ): Promise { + return getOwnedDomainsForTLD(this, owner, tld); + } + + async getAllDomainsTLDs(): Promise { + return getAllDomainsTLDs(this); + } + + async getAllRegisteredAllDomains(): Promise { + return getAllRegisteredAllDomains(this); + } + + async getMainAllDomainsDomain(owner: PublicKey): Promise { + return getMainAllDomainsDomain(this, owner); + } + async raydiumCreateAmmV4( marketId: PublicKey, baseAmount: BN,