We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example in amm deposit instruction, Where to get the amm、amm_authority eg? plz add ts test code.
pub struct ProxyDeposit<'info> { /// CHECK: Safe pub amm_program: UncheckedAccount<'info>, /// CHECK: Safe. Amm Account #[account(mut)] pub amm: UncheckedAccount<'info>, /// CHECK: Safe. Amm authority, a PDA create with seed = [b"amm authority"] #[account()] pub amm_authority: UncheckedAccount<'info>, /// CHECK: Safe. AMM open_orders Account. #[account()] pub amm_open_orders: UncheckedAccount<'info>, /// CHECK: Safe. AMM target orders account. To store plan orders infomations. #[account(mut)] pub amm_target_orders: UncheckedAccount<'info>, /// CHECK: Safe. LP mint account. Must be empty, owned by $authority. #[account(mut)] pub amm_lp_mint: UncheckedAccount<'info>, /// CHECK: Safe. amm_coin_vault account, $authority can transfer amount. #[account(mut)] pub amm_coin_vault: UncheckedAccount<'info>, /// CHECK: Safe. amm_pc_vault account, $authority can transfer amount. #[account(mut)] pub amm_pc_vault: UncheckedAccount<'info>, /// CHECK: Safe. OpenBook market account, OpenBook program is the owner. pub market: UncheckedAccount<'info>, /// CHECK: Safe. OpenBook market event queue account, OpenBook program is the owner. pub market_event_queue: UncheckedAccount<'info>, /// CHECK: Safe. User token coin to deposit into. #[account(mut)] pub user_token_coin: UncheckedAccount<'info>, /// CHECK: Safe. User token pc to deposit into. #[account(mut)] pub user_token_pc: UncheckedAccount<'info>, /// CHECK: Safe. User lp token, to deposit the generated tokens, user is the owner #[account(mut)] pub user_token_lp: UncheckedAccount<'info>, /// CHECK: Safe. User wallet account #[account(mut)] pub user_owner: Signer<'info>, /// CHECK: Safe. The spl token program pub token_program: Program<'info, Token>, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example in amm deposit instruction, Where to get the amm、amm_authority eg? plz add ts test code.
The text was updated successfully, but these errors were encountered: