import { Buffer } from 'buffer';
import { solPaymentBeet, } from '@metaplex-foundation/mpl-candy-guard';
import { createSerializerFromBeet, lamports, mapSerializer, } from '../../../types';
/** @internal */
export const solPaymentGuardManifest = {
    name: 'solPayment',
    settingsBytes: 40,
    settingsSerializer: mapSerializer(createSerializerFromBeet(solPaymentBeet), (settings) => (Object.assign(Object.assign({}, settings), { amount: lamports(settings.lamports) })), (settings) => (Object.assign(Object.assign({}, settings), { lamports: settings.amount.basisPoints }))),
    mintSettingsParser: ({ settings }) => {
        return {
            arguments: Buffer.from([]),
            remainingAccounts: [
                {
                    isSigner: false,
                    address: settings.destination,
                    isWritable: true,
                },
            ],
        };
    },
};
//# sourceMappingURL=solPayment.js.map