Type alias AnchorQuarryMergeMine
Anchor Quarry Merge Mine: { accounts: [ { name: "mergePool" ; type: { fields: [ { name: "primaryMint" ; type: "publicKey" } , { name: "bump" ; type: "u8" } , { name: "replicaMint" ; type: "publicKey" } , { name: "mmCount" ; type: "u64" } , { name: "totalPrimaryBalance" ; type: "u64" } , { name: "totalReplicaBalance" ; type: "u64" } , { name: "reserved" ; type: { array: [ "u64" , 16 ] } } ] ; kind: "struct" } } , { name: "mergeMiner" ; type: { fields: [ { name: "pool" ; type: "publicKey" } , { name: "owner" ; type: "publicKey" } , { name: "bump" ; type: "u8" } , { name: "index" ; type: "u64" } , { name: "primaryBalance" ; type: "u64" } , { name: "replicaBalance" ; type: "u64" } ] ; kind: "struct" } } ] ; errors: [ { code: 6000 ; msg: "Unauthorized." ; name: "Unauthorized" } , { code: 6001 ; msg: "Insufficient balance." ; name: "InsufficientBalance" } , { code: 6002 ; msg: "Invalid miner for the given quarry." ; name: "InvalidMiner" } , { code: 6003 ; msg: "Cannot withdraw a replica mint." ; name: "CannotWithdrawReplicaMint" } , { code: 6004 ; msg: "User must first withdraw from all replica quarries." ; name: "OutstandingReplicaTokens" } , { code: 6005 ; msg: "The replica mint must have the same number of decimals as the primary mint." ; name: "ReplicaDecimalsMismatch" } , { code: 6006 ; msg: "The replica mint must have zero supply." ; name: "ReplicaNonZeroSupply" } ] ; events: [ { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "primaryMint" ; type: "publicKey" } ] ; name: "NewMergePoolEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "primaryMint" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } ] ; name: "InitMergeMinerEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } ] ; name: "InitMinerEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "StakePrimaryEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "StakeReplicaEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "UnstakePrimaryEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "UnstakeReplicaEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "mint" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "WithdrawTokensEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "mint" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } , { index: false ; name: "initialBalance" ; type: "u64" } , { index: false ; name: "endBalance" ; type: "u64" } ] ; name: "ClaimEvent" } ] ; instructions: [ { accounts: [ { isMut: true ; isSigner: false ; name: "pool" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergePool" } , { account: "Mint" ; kind: "account" ; path: "primary_mint" ; type: "publicKey" } ] } } , { isMut: false ; isSigner: false ; name: "primaryMint" } , { isMut: true ; isSigner: false ; name: "replicaMint" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "ReplicaMint" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "rent" } ] ; args: [ { name: "bump" ; type: "u8" } , { name: "mintBump" ; type: "u8" } ] ; name: "newPool" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergePool" } , { account: "Mint" ; kind: "account" ; path: "primary_mint" ; type: "publicKey" } ] } } , { isMut: false ; isSigner: false ; name: "primaryMint" } , { isMut: true ; isSigner: false ; name: "replicaMint" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "ReplicaMint" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "rent" } ] ; args: [ ] ; name: "newPoolV2" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "owner" } , { isMut: true ; isSigner: false ; name: "mm" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergeMiner" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } , { kind: "account" ; path: "owner" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } ] ; args: [ { name: "bump" ; type: "u8" } ] ; name: "initMergeMiner" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "owner" } , { isMut: true ; isSigner: false ; name: "mm" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergeMiner" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } , { kind: "account" ; path: "owner" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } ] ; args: [ ] ; name: "initMergeMinerV2" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "mm" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "tokenMint" } , { isMut: false ; isSigner: false ; name: "minerVault" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "mineProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ { name: "bump" ; type: "u8" } ] ; name: "initMiner" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "mm" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "tokenMint" } , { isMut: false ; isSigner: false ; name: "minerVault" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "mineProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ ] ; name: "initMinerV2" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "mmPrimaryTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "stakePrimaryMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "replicaMint" } , { isMut: true ; isSigner: false ; name: "replicaMintTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "stakeReplicaMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "mmPrimaryTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ { name: "amount" ; type: "u64" } ] ; name: "unstakePrimaryMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "replicaMint" } , { isMut: true ; isSigner: false ; name: "replicaMintTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "unstakeAllReplicaMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "owner" } , { isMut: false ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "withdrawMint" } , { isMut: true ; isSigner: false ; name: "mmTokenAccount" } , { isMut: true ; isSigner: false ; name: "tokenDestination" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ ] ; name: "withdrawTokens" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: false ; isSigner: false ; name: "mergePool" } , { isMut: false ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerTokenAccount" } , { isMut: true ; isSigner: false ; name: "destinationTokenAccount" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ ] ; name: "rescueTokens" } , { accounts: [ { isMut: true ; isSigner: false ; name: "mintWrapper" } , { isMut: false ; isSigner: false ; name: "mintWrapperProgram" } , { isMut: true ; isSigner: false ; name: "minter" } , { isMut: true ; isSigner: false ; name: "rewardsTokenMint" } , { isMut: true ; isSigner: false ; name: "rewardsTokenAccount" } , { isMut: true ; isSigner: false ; name: "claimFeeTokenAccount" } , { isMut: true ; isSigner: false ; name: "stakeTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "claimRewards" } ] ; name: "quarry_merge_mine" ; version: "5.3.0" }
Type declaration
accounts: [ { name: "mergePool" ; type: { fields: [ { name: "primaryMint" ; type: "publicKey" } , { name: "bump" ; type: "u8" } , { name: "replicaMint" ; type: "publicKey" } , { name: "mmCount" ; type: "u64" } , { name: "totalPrimaryBalance" ; type: "u64" } , { name: "totalReplicaBalance" ; type: "u64" } , { name: "reserved" ; type: { array: [ "u64" , 16 ] } } ] ; kind: "struct" } } , { name: "mergeMiner" ; type: { fields: [ { name: "pool" ; type: "publicKey" } , { name: "owner" ; type: "publicKey" } , { name: "bump" ; type: "u8" } , { name: "index" ; type: "u64" } , { name: "primaryBalance" ; type: "u64" } , { name: "replicaBalance" ; type: "u64" } ] ; kind: "struct" } } ]
errors: [ { code: 6000 ; msg: "Unauthorized." ; name: "Unauthorized" } , { code: 6001 ; msg: "Insufficient balance." ; name: "InsufficientBalance" } , { code: 6002 ; msg: "Invalid miner for the given quarry." ; name: "InvalidMiner" } , { code: 6003 ; msg: "Cannot withdraw a replica mint." ; name: "CannotWithdrawReplicaMint" } , { code: 6004 ; msg: "User must first withdraw from all replica quarries." ; name: "OutstandingReplicaTokens" } , { code: 6005 ; msg: "The replica mint must have the same number of decimals as the primary mint." ; name: "ReplicaDecimalsMismatch" } , { code: 6006 ; msg: "The replica mint must have zero supply." ; name: "ReplicaNonZeroSupply" } ]
events: [ { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "primaryMint" ; type: "publicKey" } ] ; name: "NewMergePoolEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "primaryMint" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } ] ; name: "InitMergeMinerEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } ] ; name: "InitMinerEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "StakePrimaryEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "StakeReplicaEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "UnstakePrimaryEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "miner" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "UnstakeReplicaEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "owner" ; type: "publicKey" } , { index: false ; name: "mint" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } ] ; name: "WithdrawTokensEvent" } , { fields: [ { index: false ; name: "pool" ; type: "publicKey" } , { index: false ; name: "mm" ; type: "publicKey" } , { index: false ; name: "mint" ; type: "publicKey" } , { index: false ; name: "amount" ; type: "u64" } , { index: false ; name: "initialBalance" ; type: "u64" } , { index: false ; name: "endBalance" ; type: "u64" } ] ; name: "ClaimEvent" } ]
instructions: [ { accounts: [ { isMut: true ; isSigner: false ; name: "pool" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergePool" } , { account: "Mint" ; kind: "account" ; path: "primary_mint" ; type: "publicKey" } ] } } , { isMut: false ; isSigner: false ; name: "primaryMint" } , { isMut: true ; isSigner: false ; name: "replicaMint" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "ReplicaMint" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "rent" } ] ; args: [ { name: "bump" ; type: "u8" } , { name: "mintBump" ; type: "u8" } ] ; name: "newPool" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergePool" } , { account: "Mint" ; kind: "account" ; path: "primary_mint" ; type: "publicKey" } ] } } , { isMut: false ; isSigner: false ; name: "primaryMint" } , { isMut: true ; isSigner: false ; name: "replicaMint" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "ReplicaMint" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "rent" } ] ; args: [ ] ; name: "newPoolV2" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "owner" } , { isMut: true ; isSigner: false ; name: "mm" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergeMiner" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } , { kind: "account" ; path: "owner" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } ] ; args: [ { name: "bump" ; type: "u8" } ] ; name: "initMergeMiner" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "owner" } , { isMut: true ; isSigner: false ; name: "mm" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "MergeMiner" } , { account: "MergePool" ; kind: "account" ; path: "pool" ; type: "publicKey" } , { kind: "account" ; path: "owner" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } ] ; args: [ ] ; name: "initMergeMinerV2" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "mm" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "tokenMint" } , { isMut: false ; isSigner: false ; name: "minerVault" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "mineProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ { name: "bump" ; type: "u8" } ] ; name: "initMiner" } , { accounts: [ { isMut: false ; isSigner: false ; name: "pool" } , { isMut: false ; isSigner: false ; name: "mm" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "tokenMint" } , { isMut: false ; isSigner: false ; name: "minerVault" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "mineProgram" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ ] ; name: "initMinerV2" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "mmPrimaryTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "stakePrimaryMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "replicaMint" } , { isMut: true ; isSigner: false ; name: "replicaMintTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "stakeReplicaMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "mmPrimaryTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ { name: "amount" ; type: "u64" } ] ; name: "unstakePrimaryMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: true ; isSigner: false ; name: "replicaMint" } , { isMut: true ; isSigner: false ; name: "replicaMintTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "unstakeAllReplicaMiner" } , { accounts: [ { isMut: false ; isSigner: true ; name: "owner" } , { isMut: false ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "withdrawMint" } , { isMut: true ; isSigner: false ; name: "mmTokenAccount" } , { isMut: true ; isSigner: false ; name: "tokenDestination" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ ] ; name: "withdrawTokens" } , { accounts: [ { isMut: false ; isSigner: true ; name: "mmOwner" } , { isMut: false ; isSigner: false ; name: "mergePool" } , { isMut: false ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerTokenAccount" } , { isMut: true ; isSigner: false ; name: "destinationTokenAccount" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } ] ; args: [ ] ; name: "rescueTokens" } , { accounts: [ { isMut: true ; isSigner: false ; name: "mintWrapper" } , { isMut: false ; isSigner: false ; name: "mintWrapperProgram" } , { isMut: true ; isSigner: false ; name: "minter" } , { isMut: true ; isSigner: false ; name: "rewardsTokenMint" } , { isMut: true ; isSigner: false ; name: "rewardsTokenAccount" } , { isMut: true ; isSigner: false ; name: "claimFeeTokenAccount" } , { isMut: true ; isSigner: false ; name: "stakeTokenAccount" } , { accounts: [ { isMut: true ; isSigner: false ; name: "pool" } , { isMut: true ; isSigner: false ; name: "mm" } , { isMut: false ; isSigner: false ; name: "rewarder" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: true ; isSigner: false ; name: "miner" } , { isMut: true ; isSigner: false ; name: "minerVault" } , { isMut: false ; isSigner: false ; name: "tokenProgram" } , { isMut: false ; isSigner: false ; name: "mineProgram" } ] ; name: "stake" } ] ; args: [ ] ; name: "claimRewards" } ]
name: "quarry_merge_mine"
version: "5.3.0"
Defined in src/idls/quarry_merge_mine.ts:1182