/** * pToken (Programmable Token) launcher. * * A pToken is a Token2022 mint with the TransferHook extension set to * the clawd_protocol program. On every transfer, the hook: * 1. Records the transfer in WalletBehavior PDAs (for behavioral burn scoring) * 2. Routes transfer_fee_bps of the amount into the vault fee_reserve * 3. Updates conviction scores for large locked positions * * This makes every token transfer "intelligent" — it feeds the vault * with real-time data about trading behaviour without any off-chain oracle. */ import { Connection, Keypair, PublicKey, type TransactionInstruction } from "@solana/web3.js"; import type { TokenLaunchConfig, SdkInstructions } from "../types/index.js"; export interface PTokenLaunchResult extends SdkInstructions { mintKeypair: Keypair; mintPubkey: PublicKey; creatorAta: PublicKey; extraAccountMetasPda: PublicKey; vaultPda: PublicKey; /** Call this instruction AFTER creating the mint to register hook accounts */ initExtraMetasInstruction: TransactionInstruction; } /** * Build instructions for a pToken — Token2022 + TransferHook to clawd_protocol. * * Two transaction groups required: * Tx 1: createAccount + extension initialisers + initializeMint + createATA + mintTo * Tx 2: initialize_extra_account_meta_list (registers vault + behavior PDAs with hook) */ export declare function buildPTokenLaunchInstructions(connection: Connection, payer: PublicKey, config: TokenLaunchConfig, feeReserveAccount: PublicKey): Promise; /** * pToken transfer: builds a Token2022 transfer with hook resolution. * The hook automatically calls clawd_protocol.transfer_hook. */ export declare function buildPTokenTransferAccounts(source: PublicKey, destination: PublicKey, mint: PublicKey, owner: PublicKey, vaultPda: PublicKey, feeReserveAccount: PublicKey, sourceBehavior: PublicKey, destinationBehavior: PublicKey, extraAccountMetasPda: PublicKey): PublicKey[]; //# sourceMappingURL=ptoken-launcher.d.ts.map