@coinbase/agentkit
Version:
Coinbase AgentKit core primitives
26 lines (25 loc) • 1.09 kB
TypeScript
import { Address, Hex, TransactionReceipt } from "viem";
import { EvmWalletProvider } from "../../wallet-providers";
/**
* Gets the memecoin address from the transaction receipt
*
* @param receipt - The transaction receipt
* @param chainId - The chain id
* @returns The memecoin address
*/
export declare function getMemecoinAddressFromReceipt(receipt: TransactionReceipt, chainId: string): Address;
/**
* Calculates the ETH required to flaunch a token, takes into account the ETH for premine and the flaunching fee
*
* @param walletProvider - The EVM wallet provider
* @param params - The flaunch parameters
* @param params.premineAmount - The amount to premine
* @param params.initialPriceParams - The initial price parameters
* @param params.slippagePercent - The slippage percentage (optional, defaults to 5%)
* @returns Promise that resolves to the ETH amount required
*/
export declare function ethRequiredToFlaunch(walletProvider: EvmWalletProvider, params: {
premineAmount: bigint;
initialPriceParams: Hex;
slippagePercent?: number;
}): Promise<bigint>;