Type alias QuarryOperatorIDL
Quarry OperatorIDL: { accounts: [ { name: "Operator" ; type: { fields: [ { name: "base" ; type: "publicKey" } , { name: "bump" ; type: "u8" } , { name: "rewarder" ; type: "publicKey" } , { name: "admin" ; type: "publicKey" } , { name: "rateSetter" ; type: "publicKey" } , { name: "quarryCreator" ; type: "publicKey" } , { name: "shareAllocator" ; type: "publicKey" } , { name: "lastModifiedTs" ; type: "i64" } , { name: "generation" ; type: "u64" } ] ; kind: "struct" } } ] ; errors: [ { code: 6000 ; msg: "Signer is not authorized to perform this action." ; name: "Unauthorized" } , { code: 6001 ; msg: "Pending authority must be set to the created operator." ; name: "PendingAuthorityNotSet" } , { code: 6002 ; msg: "Operator is not the Rewarder authority." ; name: "OperatorNotRewarderAuthority" } ] ; instructions: [ { accounts: [ { isMut: false ; isSigner: true ; name: "base" } , { isMut: true ; isSigner: false ; name: "operator" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "Operator" } , { kind: "account" ; path: "base" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "admin" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; args: [ { name: "bump" ; type: "u8" } ] ; name: "createOperator" } , { accounts: [ { isMut: false ; isSigner: true ; name: "base" } , { isMut: true ; isSigner: false ; name: "operator" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "Operator" } , { kind: "account" ; path: "base" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "admin" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; args: [ ] ; name: "createOperatorV2" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setAdmin" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setRateSetter" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setQuarryCreator" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setShareAllocator" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } ] ; args: [ { name: "newRate" ; type: "u64" } ] ; name: "delegateSetAnnualRewards" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } , { 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: "delegateCreateQuarry" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: false ; isSigner: false ; name: "tokenMint" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } ] ; args: [ ] ; name: "delegateCreateQuarryV2" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } ] ; args: [ { name: "newShare" ; type: "u64" } ] ; name: "delegateSetRewardsShare" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } ] ; args: [ { name: "famineTs" ; type: "i64" } ] ; name: "delegateSetFamine" } ] ; name: "quarry_operator" ; version: "5.3.0" }
Type declaration
accounts: [ { name: "Operator" ; type: { fields: [ { name: "base" ; type: "publicKey" } , { name: "bump" ; type: "u8" } , { name: "rewarder" ; type: "publicKey" } , { name: "admin" ; type: "publicKey" } , { name: "rateSetter" ; type: "publicKey" } , { name: "quarryCreator" ; type: "publicKey" } , { name: "shareAllocator" ; type: "publicKey" } , { name: "lastModifiedTs" ; type: "i64" } , { name: "generation" ; type: "u64" } ] ; kind: "struct" } } ]
errors: [ { code: 6000 ; msg: "Signer is not authorized to perform this action." ; name: "Unauthorized" } , { code: 6001 ; msg: "Pending authority must be set to the created operator." ; name: "PendingAuthorityNotSet" } , { code: 6002 ; msg: "Operator is not the Rewarder authority." ; name: "OperatorNotRewarderAuthority" } ]
instructions: [ { accounts: [ { isMut: false ; isSigner: true ; name: "base" } , { isMut: true ; isSigner: false ; name: "operator" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "Operator" } , { kind: "account" ; path: "base" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "admin" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; args: [ { name: "bump" ; type: "u8" } ] ; name: "createOperator" } , { accounts: [ { isMut: false ; isSigner: true ; name: "base" } , { isMut: true ; isSigner: false ; name: "operator" ; pda: { seeds: [ { kind: "const" ; type: "string" ; value: "Operator" } , { kind: "account" ; path: "base" ; type: "publicKey" } ] } } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "admin" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; args: [ ] ; name: "createOperatorV2" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setAdmin" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setRateSetter" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setQuarryCreator" } , { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "admin" } , { isMut: false ; isSigner: false ; name: "delegate" } ] ; args: [ ] ; name: "setShareAllocator" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } ] ; args: [ { name: "newRate" ; type: "u64" } ] ; name: "delegateSetAnnualRewards" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } , { 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: "delegateCreateQuarry" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } , { isMut: false ; isSigner: false ; name: "tokenMint" } , { isMut: true ; isSigner: true ; name: "payer" } , { isMut: false ; isSigner: false ; name: "systemProgram" } ] ; args: [ ] ; name: "delegateCreateQuarryV2" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } ] ; args: [ { name: "newShare" ; type: "u64" } ] ; name: "delegateSetRewardsShare" } , { accounts: [ { accounts: [ { isMut: true ; isSigner: false ; name: "operator" } , { isMut: false ; isSigner: true ; name: "delegate" } , { isMut: true ; isSigner: false ; name: "rewarder" } , { isMut: false ; isSigner: false ; name: "quarryMineProgram" } ] ; name: "withDelegate" } , { isMut: true ; isSigner: false ; name: "quarry" } ] ; args: [ { name: "famineTs" ; type: "i64" } ] ; name: "delegateSetFamine" } ]
name: "quarry_operator"
version: "5.3.0"
Defined in src/idls/quarry_operator.ts:3