QuarryMineIDL: { accounts: [{ name: "Rewarder"; type: { fields: [{ name: "base"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "authority"; type: "publicKey" }, { name: "pendingAuthority"; type: "publicKey" }, { name: "numQuarries"; type: "u16" }, { name: "annualRewardsRate"; type: "u64" }, { name: "totalRewardsShares"; type: "u64" }, { name: "mintWrapper"; type: "publicKey" }, { name: "rewardsTokenMint"; type: "publicKey" }, { name: "claimFeeTokenAccount"; type: "publicKey" }, { name: "maxClaimFeeMillibps"; type: "u64" }, { name: "pauseAuthority"; type: "publicKey" }, { name: "isPaused"; type: "bool" }]; kind: "struct" } }, { name: "Quarry"; type: { fields: [{ name: "rewarder"; type: "publicKey" }, { name: "tokenMintKey"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "index"; type: "u16" }, { name: "tokenMintDecimals"; type: "u8" }, { name: "famineTs"; type: "i64" }, { name: "lastUpdateTs"; type: "i64" }, { name: "rewardsPerTokenStored"; type: "u128" }, { name: "annualRewardsRate"; type: "u64" }, { name: "rewardsShare"; type: "u64" }, { name: "totalTokensDeposited"; type: "u64" }, { name: "numMiners"; type: "u64" }]; kind: "struct" } }, { name: "Miner"; type: { fields: [{ name: "quarry"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "tokenVaultKey"; type: "publicKey" }, { name: "rewardsEarned"; type: "u64" }, { name: "rewardsPerTokenPaid"; type: "u128" }, { name: "balance"; type: "u64" }, { name: "index"; type: "u64" }]; kind: "struct" } }]; errors: [{ code: 6000; msg: "You are not authorized to perform this action."; name: "Unauthorized" }, { code: 6001; msg: "Insufficient staked balance for withdraw request."; name: "InsufficientBalance" }, { code: 6002; msg: "Pending authority not set"; name: "PendingAuthorityNotSet" }, { code: 6003; msg: "Invalid quarry rewards share"; name: "InvalidRewardsShare" }, { code: 6004; msg: "Insufficient allowance."; name: "InsufficientAllowance" }, { code: 6005; msg: "New vault not empty."; name: "NewVaultNotEmpty" }, { code: 6006; msg: "Not enough tokens."; name: "NotEnoughTokens" }, { code: 6007; msg: "Invalid timestamp."; name: "InvalidTimestamp" }, { code: 6008; msg: "Invalid max claim fee."; name: "InvalidMaxClaimFee" }, { code: 6009; msg: "Max annual rewards rate exceeded."; name: "MaxAnnualRewardsRateExceeded" }, { code: 6010; msg: "Rewarder is paused."; name: "Paused" }, { code: 6011; msg: "Rewards earned exceeded quarry's upper bound."; name: "UpperboundExceeded" }]; events: [{ fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "stakedToken"; type: "publicKey" }, { index: false; name: "rewardsToken"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "fees"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "ClaimEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "quarry"; type: "publicKey" }, { index: false; name: "miner"; type: "publicKey" }]; name: "MinerCreateEvent" }, { fields: [{ index: false; name: "tokenMint"; type: "publicKey" }, { index: false; name: "timestamp"; type: "i64" }]; name: "QuarryCreateEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "timestamp"; type: "i64" }]; name: "NewRewarderEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "token"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "StakeEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "token"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "WithdrawEvent" }, { fields: [{ index: false; name: "previousRate"; type: "u64" }, { index: false; name: "newRate"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "RewarderAnnualRewardsUpdateEvent" }, { fields: [{ index: false; name: "tokenMint"; type: "publicKey" }, { index: false; name: "annualRewardsRate"; type: "u64" }, { index: false; name: "rewardsShare"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "QuarryRewardsUpdateEvent" }]; instructions: [{ accounts: [{ isMut: false; isSigner: true; name: "base" }, { isMut: true; isSigner: false; name: "rewarder"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Rewarder" }, { kind: "account"; path: "base"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "initialAuthority" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: false; isSigner: false; name: "unusedAccount" }, { isMut: false; isSigner: false; name: "mintWrapper" }, { isMut: false; isSigner: false; name: "rewardsTokenMint" }, { isMut: false; isSigner: false; name: "claimFeeTokenAccount" }]; args: [{ name: "bump"; type: "u8" }]; name: "newRewarder" }, { accounts: [{ isMut: false; isSigner: true; name: "base" }, { isMut: true; isSigner: false; name: "rewarder"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Rewarder" }, { kind: "account"; path: "base"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "initialAuthority" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: false; isSigner: false; name: "mintWrapper" }, { isMut: false; isSigner: false; name: "rewardsTokenMint" }, { isMut: false; isSigner: false; name: "claimFeeTokenAccount" }]; args: []; name: "newRewarderV2" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: false; isSigner: false; name: "newPauseAuthority" }]; args: []; name: "setPauseAuthority" }, { accounts: [{ isMut: false; isSigner: true; name: "pauseAuthority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: []; name: "pause" }, { accounts: [{ isMut: false; isSigner: true; name: "pauseAuthority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: []; name: "unpause" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: [{ name: "newAuthority"; type: "publicKey" }]; name: "transferAuthority" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: []; name: "acceptAuthority" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }]; args: [{ name: "newRate"; type: "u64" }]; name: "setAnnualRewards" }, { accounts: [{ isMut: true; isSigner: false; name: "quarry"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Quarry" }, { account: "MutableRewarderWithAuthority"; kind: "account"; path: "auth.rewarder"; type: { defined: "Account<'info,Rewarder>" } }, { account: "Mint"; kind: "account"; path: "token_mint"; type: "publicKey" }] } }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "unusedAccount" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createQuarry" }, { accounts: [{ isMut: true; isSigner: false; name: "quarry"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Quarry" }, { account: "MutableRewarderWithAuthority"; kind: "account"; path: "auth.rewarder"; type: { defined: "Account<'info,Rewarder>" } }, { account: "Mint"; kind: "account"; path: "token_mint"; type: "publicKey" }] } }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: []; name: "createQuarryV2" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: true; isSigner: false; name: "quarry" }]; args: [{ name: "newShare"; type: "u64" }]; name: "setRewardsShare" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: false; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: true; isSigner: false; name: "quarry" }]; args: [{ name: "famineTs"; type: "i64" }]; name: "setFamine" }, { accounts: [{ isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "rewarder" }]; args: []; name: "updateQuarryRewards" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Miner" }, { account: "Quarry"; kind: "account"; path: "quarry"; type: "publicKey" }, { kind: "account"; path: "authority"; type: "publicKey" }] } }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "rewarder" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: false; isSigner: false; name: "minerVault" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createMiner" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Miner" }, { account: "Quarry"; kind: "account"; path: "quarry"; type: "publicKey" }, { kind: "account"; path: "authority"; type: "publicKey" }] } }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "rewarder" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: false; isSigner: false; name: "minerVault" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "createMinerV2" }, { 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" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "unusedMinerVault" }, { isMut: false; isSigner: false; name: "unusedTokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; name: "claim" }]; args: []; name: "claimRewards" }, { 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" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; name: "claim" }]; args: []; name: "claimRewardsV2" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: true; isSigner: false; name: "minerVault" }, { isMut: true; isSigner: false; name: "tokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; args: [{ name: "amount"; type: "u64" }]; name: "stakeTokens" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: true; isSigner: false; name: "minerVault" }, { isMut: true; isSigner: false; name: "tokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; args: [{ name: "amount"; type: "u64" }]; name: "withdrawTokens" }, { accounts: [{ isMut: false; isSigner: false; name: "miner" }, { isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "minerTokenAccount" }, { isMut: true; isSigner: false; name: "destinationTokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "rescueTokens" }, { accounts: [{ isMut: false; isSigner: false; name: "rewarder" }, { isMut: true; isSigner: false; name: "claimFeeTokenAccount" }, { isMut: true; isSigner: false; name: "feeToTokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "extractFees" }]; name: "quarry_mine"; types: [{ name: "StakeAction"; type: { kind: "enum"; variants: [{ name: "Stake" }, { name: "Withdraw" }] } }]; version: "5.3.0" }
Type declaration
-
accounts: [{ name: "Rewarder"; type: { fields: [{ name: "base"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "authority"; type: "publicKey" }, { name: "pendingAuthority"; type: "publicKey" }, { name: "numQuarries"; type: "u16" }, { name: "annualRewardsRate"; type: "u64" }, { name: "totalRewardsShares"; type: "u64" }, { name: "mintWrapper"; type: "publicKey" }, { name: "rewardsTokenMint"; type: "publicKey" }, { name: "claimFeeTokenAccount"; type: "publicKey" }, { name: "maxClaimFeeMillibps"; type: "u64" }, { name: "pauseAuthority"; type: "publicKey" }, { name: "isPaused"; type: "bool" }]; kind: "struct" } }, { name: "Quarry"; type: { fields: [{ name: "rewarder"; type: "publicKey" }, { name: "tokenMintKey"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "index"; type: "u16" }, { name: "tokenMintDecimals"; type: "u8" }, { name: "famineTs"; type: "i64" }, { name: "lastUpdateTs"; type: "i64" }, { name: "rewardsPerTokenStored"; type: "u128" }, { name: "annualRewardsRate"; type: "u64" }, { name: "rewardsShare"; type: "u64" }, { name: "totalTokensDeposited"; type: "u64" }, { name: "numMiners"; type: "u64" }]; kind: "struct" } }, { name: "Miner"; type: { fields: [{ name: "quarry"; type: "publicKey" }, { name: "authority"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "tokenVaultKey"; type: "publicKey" }, { name: "rewardsEarned"; type: "u64" }, { name: "rewardsPerTokenPaid"; type: "u128" }, { name: "balance"; type: "u64" }, { name: "index"; type: "u64" }]; kind: "struct" } }]
-
errors: [{ code: 6000; msg: "You are not authorized to perform this action."; name: "Unauthorized" }, { code: 6001; msg: "Insufficient staked balance for withdraw request."; name: "InsufficientBalance" }, { code: 6002; msg: "Pending authority not set"; name: "PendingAuthorityNotSet" }, { code: 6003; msg: "Invalid quarry rewards share"; name: "InvalidRewardsShare" }, { code: 6004; msg: "Insufficient allowance."; name: "InsufficientAllowance" }, { code: 6005; msg: "New vault not empty."; name: "NewVaultNotEmpty" }, { code: 6006; msg: "Not enough tokens."; name: "NotEnoughTokens" }, { code: 6007; msg: "Invalid timestamp."; name: "InvalidTimestamp" }, { code: 6008; msg: "Invalid max claim fee."; name: "InvalidMaxClaimFee" }, { code: 6009; msg: "Max annual rewards rate exceeded."; name: "MaxAnnualRewardsRateExceeded" }, { code: 6010; msg: "Rewarder is paused."; name: "Paused" }, { code: 6011; msg: "Rewards earned exceeded quarry's upper bound."; name: "UpperboundExceeded" }]
-
events: [{ fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "stakedToken"; type: "publicKey" }, { index: false; name: "rewardsToken"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "fees"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "ClaimEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "quarry"; type: "publicKey" }, { index: false; name: "miner"; type: "publicKey" }]; name: "MinerCreateEvent" }, { fields: [{ index: false; name: "tokenMint"; type: "publicKey" }, { index: false; name: "timestamp"; type: "i64" }]; name: "QuarryCreateEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "timestamp"; type: "i64" }]; name: "NewRewarderEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "token"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "StakeEvent" }, { fields: [{ index: false; name: "authority"; type: "publicKey" }, { index: false; name: "token"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "WithdrawEvent" }, { fields: [{ index: false; name: "previousRate"; type: "u64" }, { index: false; name: "newRate"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "RewarderAnnualRewardsUpdateEvent" }, { fields: [{ index: false; name: "tokenMint"; type: "publicKey" }, { index: false; name: "annualRewardsRate"; type: "u64" }, { index: false; name: "rewardsShare"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "QuarryRewardsUpdateEvent" }]
-
instructions: [{ accounts: [{ isMut: false; isSigner: true; name: "base" }, { isMut: true; isSigner: false; name: "rewarder"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Rewarder" }, { kind: "account"; path: "base"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "initialAuthority" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: false; isSigner: false; name: "unusedAccount" }, { isMut: false; isSigner: false; name: "mintWrapper" }, { isMut: false; isSigner: false; name: "rewardsTokenMint" }, { isMut: false; isSigner: false; name: "claimFeeTokenAccount" }]; args: [{ name: "bump"; type: "u8" }]; name: "newRewarder" }, { accounts: [{ isMut: false; isSigner: true; name: "base" }, { isMut: true; isSigner: false; name: "rewarder"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Rewarder" }, { kind: "account"; path: "base"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "initialAuthority" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: false; isSigner: false; name: "mintWrapper" }, { isMut: false; isSigner: false; name: "rewardsTokenMint" }, { isMut: false; isSigner: false; name: "claimFeeTokenAccount" }]; args: []; name: "newRewarderV2" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: false; isSigner: false; name: "newPauseAuthority" }]; args: []; name: "setPauseAuthority" }, { accounts: [{ isMut: false; isSigner: true; name: "pauseAuthority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: []; name: "pause" }, { accounts: [{ isMut: false; isSigner: true; name: "pauseAuthority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: []; name: "unpause" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: [{ name: "newAuthority"; type: "publicKey" }]; name: "transferAuthority" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; args: []; name: "acceptAuthority" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }]; args: [{ name: "newRate"; type: "u64" }]; name: "setAnnualRewards" }, { accounts: [{ isMut: true; isSigner: false; name: "quarry"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Quarry" }, { account: "MutableRewarderWithAuthority"; kind: "account"; path: "auth.rewarder"; type: { defined: "Account<'info,Rewarder>" } }, { account: "Mint"; kind: "account"; path: "token_mint"; type: "publicKey" }] } }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "unusedAccount" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createQuarry" }, { accounts: [{ isMut: true; isSigner: false; name: "quarry"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Quarry" }, { account: "MutableRewarderWithAuthority"; kind: "account"; path: "auth.rewarder"; type: { defined: "Account<'info,Rewarder>" } }, { account: "Mint"; kind: "account"; path: "token_mint"; type: "publicKey" }] } }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: []; name: "createQuarryV2" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: true; isSigner: false; name: "quarry" }]; args: [{ name: "newShare"; type: "u64" }]; name: "setRewardsShare" }, { accounts: [{ accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: false; isSigner: false; name: "rewarder" }]; name: "auth" }, { isMut: true; isSigner: false; name: "quarry" }]; args: [{ name: "famineTs"; type: "i64" }]; name: "setFamine" }, { accounts: [{ isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "rewarder" }]; args: []; name: "updateQuarryRewards" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Miner" }, { account: "Quarry"; kind: "account"; path: "quarry"; type: "publicKey" }, { kind: "account"; path: "authority"; type: "publicKey" }] } }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "rewarder" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: false; isSigner: false; name: "minerVault" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createMiner" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Miner" }, { account: "Quarry"; kind: "account"; path: "quarry"; type: "publicKey" }, { kind: "account"; path: "authority"; type: "publicKey" }] } }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "rewarder" }, { isMut: false; isSigner: false; name: "systemProgram" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "tokenMint" }, { isMut: false; isSigner: false; name: "minerVault" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "createMinerV2" }, { 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" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "unusedMinerVault" }, { isMut: false; isSigner: false; name: "unusedTokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; name: "claim" }]; args: []; name: "claimRewards" }, { 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" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; name: "claim" }]; args: []; name: "claimRewardsV2" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: true; isSigner: false; name: "minerVault" }, { isMut: true; isSigner: false; name: "tokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; args: [{ name: "amount"; type: "u64" }]; name: "stakeTokens" }, { accounts: [{ isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "miner" }, { isMut: true; isSigner: false; name: "quarry" }, { isMut: true; isSigner: false; name: "minerVault" }, { isMut: true; isSigner: false; name: "tokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }, { isMut: false; isSigner: false; name: "rewarder" }]; args: [{ name: "amount"; type: "u64" }]; name: "withdrawTokens" }, { accounts: [{ isMut: false; isSigner: false; name: "miner" }, { isMut: false; isSigner: true; name: "authority" }, { isMut: true; isSigner: false; name: "minerTokenAccount" }, { isMut: true; isSigner: false; name: "destinationTokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "rescueTokens" }, { accounts: [{ isMut: false; isSigner: false; name: "rewarder" }, { isMut: true; isSigner: false; name: "claimFeeTokenAccount" }, { isMut: true; isSigner: false; name: "feeToTokenAccount" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "extractFees" }]
-
name: "quarry_mine"
-
types: [{ name: "StakeAction"; type: { kind: "enum"; variants: [{ name: "Stake" }, { name: "Withdraw" }] } }]
-
version: "5.3.0"