{"version":"0.1.4","name":"permalock","instructions":[{"name":"createPermalock","accounts":[{"name":"base","isMut":false,"isSigner":true},{"name":"permalock","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"Permalock"},{"kind":"account","type":"publicKey","path":"base"}]}},{"name":"locker","isMut":false,"isSigner":false},{"name":"escrow","isMut":true,"isSigner":false},{"name":"permalockPendingTokens","isMut":false,"isSigner":false},{"name":"owner","isMut":false,"isSigner":false},{"name":"payer","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"lockedVoterProgram","isMut":false,"isSigner":false}],"args":[{"name":"escrowBump","type":"u8"}]},{"name":"refreshLock","accounts":[{"name":"permalock","isMut":false,"isSigner":false},{"name":"locker","isMut":true,"isSigner":false},{"name":"escrow","isMut":true,"isSigner":false},{"name":"escrowTokens","isMut":true,"isSigner":false},{"name":"permalockPendingTokens","isMut":true,"isSigner":false},{"name":"lockedVoterProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"setVoteDelegate","accounts":[{"name":"permalock","isMut":false,"isSigner":false},{"name":"escrow","isMut":true,"isSigner":false},{"name":"newDelegate","isMut":false,"isSigner":false},{"name":"owner","isMut":false,"isSigner":true},{"name":"lockedVoterProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"setOwner","accounts":[{"name":"permalock","isMut":true,"isSigner":false},{"name":"owner","isMut":false,"isSigner":true},{"name":"newOwner","isMut":false,"isSigner":false}],"args":[]}],"accounts":[{"name":"Permalock","type":{"kind":"struct","fields":[{"name":"base","type":"publicKey"},{"name":"bump","type":"u8"},{"name":"padding","type":{"array":["u8",7]}},{"name":"escrow","type":"publicKey"},{"name":"stakedTokenMint","type":"publicKey"},{"name":"pendingTokens","type":"publicKey"},{"name":"owner","type":"publicKey"}]}}],"errors":[{"code":6000,"name":"UnauthorizedNotOwner","msg":"Only the owner of the Permalock may execute this instruction."},{"code":6001,"name":"UnauthorizedNotOperator","msg":"Only the operator of the Permalock may execute this instruction."},{"code":6002,"name":"CopyRewardsEpochIsZero","msg":"Current rewards epoch must be non-zero to copy."},{"code":6003,"name":"CopyWrongEpochGauge","msg":"Provided epoch gauge must be of the current rewards epoch."},{"code":6004,"name":"TAPExpired","msg":"The supplied token of appreciation may no longer be minted."},{"code":6005,"name":"GaugeMappingNotEnabled","msg":"The gauge mapping is not enabled."},{"code":6006,"name":"TAPDecimalMismatch","msg":"The TAP decimals must be equivalent to the staked token's decimals."},{"code":6007,"name":"UnauthorizedNotBenefactor","msg":"Only the benefactor of the TAP may execute this instruction."}]}