{"version":3,"file":"getWithdrawInstruction.cjs","sources":["../../../../src/staking/getWithdrawInstruction.ts"],"sourcesContent":["import { Address, TransactionSigner } from \"@solana/kit\";\nimport { getWithdrawInstruction } from \"@solana-program/stake\";\nimport { SYSVAR_CLOCK, SYSVAR_STAKE_HISTORY } from \"./types\";\n\nexport const makeGetWithdrawInstruction =\n  () =>\n  (\n    owner: TransactionSigner<string> | Address,\n    stakeAccount: Address,\n    destination: Address,\n    lamports: number | bigint\n  ) =>\n    getWithdrawInstruction({\n      stake: stakeAccount,\n      recipient: destination,\n      clockSysvar: SYSVAR_CLOCK,\n      stakeHistory: SYSVAR_STAKE_HISTORY,\n      withdrawAuthority: owner as any,\n      args: lamports,\n    });\n"],"names":["getWithdrawInstruction","SYSVAR_CLOCK","SYSVAR_STAKE_HISTORY"],"mappings":";;;;;AAIO,MAAM,0BAA0B,GACrC,MACA,CACE,KAA0C,EAC1C,YAAqB,EACrB,WAAoB,EACpB,QAAyB,KAEzBA,4BAAsB,CAAC;AACrB,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,WAAW,EAAEC,kBAAY;AACzB,IAAA,YAAY,EAAEC,0BAAoB;AAClC,IAAA,iBAAiB,EAAE,KAAY;AAC/B,IAAA,IAAI,EAAE,QAAQ;AACf,CAAA;;;;"}