Type alias AnchorQuarryRedeemer
AnchorQuarryRedeemer: { accounts: [{ name: "redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } }]; errors: [{ code: 6000; msg: "Unauthorized."; name: "Unauthorized" }]; events: [{ fields: [{ index: false; name: "user"; type: "publicKey" }, { index: false; name: "iouMint"; type: "publicKey" }, { index: false; name: "redemptionMint"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "RedeemTokensEvent" }]; instructions: [{ accounts: [{ isMut: true; isSigner: false; name: "redeemer"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Redeemer" }, { account: "Mint"; kind: "account"; path: "iou_mint"; type: "publicKey" }, { account: "Mint"; kind: "account"; path: "redemption_mint"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "iouMint" }, { isMut: false; isSigner: false; name: "redemptionMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createRedeemer" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: [{ name: "amount"; type: "u64" }]; name: "redeemTokens" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "redeemAllTokens" }]; name: "quarry_redeemer"; version: "5.3.0" }
Type declaration
-
accounts: [{ name: "redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } }]
-
errors: [{ code: 6000; msg: "Unauthorized."; name: "Unauthorized" }]
-
events: [{ fields: [{ index: false; name: "user"; type: "publicKey" }, { index: false; name: "iouMint"; type: "publicKey" }, { index: false; name: "redemptionMint"; type: "publicKey" }, { index: false; name: "amount"; type: "u64" }, { index: false; name: "timestamp"; type: "i64" }]; name: "RedeemTokensEvent" }]
-
instructions: [{ accounts: [{ isMut: true; isSigner: false; name: "redeemer"; pda: { seeds: [{ kind: "const"; type: "string"; value: "Redeemer" }, { account: "Mint"; kind: "account"; path: "iou_mint"; type: "publicKey" }, { account: "Mint"; kind: "account"; path: "redemption_mint"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "iouMint" }, { isMut: false; isSigner: false; name: "redemptionMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createRedeemer" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: [{ name: "amount"; type: "u64" }]; name: "redeemTokens" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "redeemAllTokens" }]
-
name: "quarry_redeemer"
-
version: "5.3.0"