export type VeadminIDL = { "version": "0.1.0"; "name": "veadmin"; "instructions": [ { "name": "initializeVeadmin"; "docs": [ "Initialize a veadmin account.", "This instruction is only call once.", "Veadmin is the PDA that the admin of the lock pool, it can control initialize the lock position.", "", "### Parameters", "- None.", "", "#### Special Errors", "- None." ]; "accounts": [ { "name": "payer"; "isMut": true; "isSigner": true; "docs": [ "`payer` is should be the mutable." ]; }, { "name": "veadmin"; "isMut": true; "isSigner": false; "docs": [ "`veadmin` is the PDA that the admin of the lock pool." ]; }, { "name": "systemProgram"; "isMut": false; "isSigner": false; "docs": [ "`system_program` is solana system program." ]; }, { "name": "rent"; "isMut": false; "isSigner": false; "docs": [ "`rent` is used to initialize the token account." ]; } ]; "args": []; }, { "name": "adminAccept"; "docs": [ "Veadmin accept the admin of the lock pool.", "This instruction can be called by anyonce, but the lock pool should be transfer to the veadmin first.", "", "### Parameters", "- None.", "", "#### Special Errors", "- None." ]; "accounts": [ { "name": "pool"; "isMut": true; "isSigner": false; "docs": [ "`pool` is used to assign to the transferrable pool." ]; }, { "name": "veadmin"; "isMut": true; "isSigner": false; "docs": [ "`veadmin` is the PDA that save the admin of the lock pool." ]; }, { "name": "streamflowProgram"; "isMut": false; "isSigner": false; "docs": [ "`streamflow_program` is the streamflow program that call by CPI." ]; } ]; "args": []; }, { "name": "initializePosition"; "docs": [ "Veadmin initialize the lock position for the specified refund position(veNFT).", "This instruction can be called by anyonce.", "### Parameters", "- None.", "", "#### Special Errors", "- None." ]; "accounts": [ { "name": "veadmin"; "isMut": true; "isSigner": false; "docs": [ "`veadmin` is the admin of the lock pool." ]; }, { "name": "payer"; "isMut": true; "isSigner": true; "docs": [ "`payer` is should be the mutable." ]; }, { "name": "pool"; "isMut": true; "isSigner": false; "docs": [ "`pool` is the lock pool unchecked account." ]; }, { "name": "authorityNftMint"; "isMut": false; "isSigner": false; "docs": [ "`authority_nft_mint` can only be bound to a unique pool." ]; }, { "name": "position"; "isMut": true; "isSigner": false; "docs": [ "`position` is the lock position unchecked account." ]; }, { "name": "refundPosition"; "isMut": true; "isSigner": false; "docs": [ "`refund_position` is the refund position will mint an nft.", "Must check refund_position is owner by lp_refund program." ]; }, { "name": "systemProgram"; "isMut": false; "isSigner": false; "docs": [ "`system_program` is the solana system program." ]; }, { "name": "rent"; "isMut": false; "isSigner": false; "docs": [ "`rent` is the rent program." ]; }, { "name": "streamflowProgram"; "isMut": false; "isSigner": false; "docs": [ "`streamflow_program` is the streamflow program." ]; } ]; "args": []; } ]; "accounts": [ { "name": "Position"; "docs": [ "This account is from lp_refund program." ]; "type": { "kind": "struct"; "fields": [ { "name": "swapAccount"; "type": "publicKey"; }, { "name": "positionMint"; "type": "publicKey"; }, { "name": "bump"; "type": "u8"; }, { "name": "nftTokenId"; "type": "publicKey"; }, { "name": "lowerTick"; "type": "i32"; }, { "name": "upperTick"; "type": "i32"; }, { "name": "liquity"; "type": "u128"; }, { "name": "feeGrowthInsideALast"; "type": "u128"; }, { "name": "feeGrowthInsideBLast"; "type": "u128"; }, { "name": "tokenAFee"; "type": "u128"; }, { "name": "tokenBFee"; "type": "u128"; }, { "name": "originTokenAAmount"; "type": "u64"; }, { "name": "originTokenBAmount"; "type": "u64"; }, { "name": "refundTokenAAmount"; "type": "u64"; }, { "name": "refundTokenBAmount"; "type": "u64"; }, { "name": "crmAmount"; "docs": [ "`crm_amount` is the amount the position locked." ]; "type": "u64"; }, { "name": "isRefunded"; "docs": [ "if `is_refunded` is true, the position should create an venft and locked position." ]; "type": "bool"; } ]; }; }, { "name": "Veadmin"; "docs": [ "PDA: the vault of the veadmin program.", "`Veadmin` is the PDA that the admin of the lock pool." ]; "type": { "kind": "struct"; "fields": [ { "name": "bump"; "type": { "array": [ "u8", 1 ]; }; } ]; }; } ]; "events": [ { "name": "InitVeadminEvent"; "fields": [ { "name": "veadmin"; "type": "publicKey"; "index": false; } ]; }, { "name": "InitPositionEvent"; "fields": [ { "name": "pool"; "type": "publicKey"; "index": false; }, { "name": "authorityNftMint"; "type": "publicKey"; "index": false; }, { "name": "position"; "type": "publicKey"; "index": false; }, { "name": "startTime"; "type": "u64"; "index": false; }, { "name": "endTime"; "type": "u64"; "index": false; }, { "name": "lockedAmount"; "type": "u64"; "index": false; } ]; }, { "name": "AdminAcceptEvent"; "fields": [ { "name": "pool"; "type": "publicKey"; "index": false; } ]; } ]; "errors": [ { "code": 6000; "name": "PositionNotRefund"; "msg": "Position is not refunded"; }, { "code": 6001; "name": "InvalidRefundPosition"; "msg": "Invalid rufund position"; }, { "code": 6002; "name": "NoneCrmAmount"; "msg": "NoneCrmAmount"; } ]; }; export declare const VeadminJSON: VeadminIDL; export declare const VeadminErrors: import("@saberhq/anchor-contrib").ErrorMap; //# sourceMappingURL=veadmin.d.ts.map