@flaunch/sdk
Version:
Flaunch SDK to easily interact with the Flaunch protocol
36 lines • 1.45 kB
TypeScript
import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
import { AnyFlaunchAbi } from "../abi/AnyFlaunch";
export type AnyFlaunchABI = typeof AnyFlaunchAbi;
/**
* Client for interacting with the AnyFlaunch contract in read-only mode
* Provides methods to query token IDs and metadata URIs
*/
export declare class ReadAnyFlaunch {
readonly contract: ReadContract<AnyFlaunchABI>;
/**
* Creates a new ReadAnyFlaunch instance
* @param address - The address of the AnyFlaunch contract
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
* @throws Error if address is not provided
*/
constructor(address: Address, drift?: Drift);
/**
* Gets the token ID associated with a memecoin
* @param coinAddress - The address of the memecoin
* @returns Promise<bigint> - The token ID
*/
tokenId(coinAddress: Address): Promise<bigint>;
/**
* Gets the metadata URI for a token
* @param tokenId - The ID of the token
* @returns Promise<string> - The token's metadata URI
*/
tokenURI(tokenId: bigint): Promise<string>;
/**
* Gets the memecoin address for a given token ID
* @param tokenId - The ID of the token
* @returns Promise<Address> - The address of the memecoin
*/
memecoin(tokenId: bigint): Promise<`0x${string}`>;
}
//# sourceMappingURL=AnyFlaunchClient.d.ts.map