import { PublicKey } from '@solana/web3.js';
export async function handleShield(ctx, input) {
    const result = await ctx.b402.shield({
        mint: new PublicKey(input.mint),
        amount: BigInt(input.amount),
    });
    return {
        signature: result.signature,
        commitment: result.commitment.toString(),
        leafIndex: result.leafIndex.toString(),
        cluster: ctx.cluster,
    };
}
//# sourceMappingURL=shield.js.map