{"version":"0.1.14","name":"pools","instructions":[{"name":"newPoolManager","accounts":[{"name":"poolManager","isMut":true,"isSigner":false},{"name":"base","isMut":false,"isSigner":true},{"name":"admin","isMut":false,"isSigner":false},{"name":"operator","isMut":false,"isSigner":false},{"name":"beneficiary","isMut":false,"isSigner":false},{"name":"payer","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"bump","type":"u8"}]},{"name":"importPoolPermissionless","accounts":[{"name":"poolManager","isMut":true,"isSigner":false},{"name":"swap","isMut":false,"isSigner":false},{"name":"pool","isMut":true,"isSigner":false},{"name":"tokenAFees","isMut":false,"isSigner":false},{"name":"tokenBFees","isMut":false,"isSigner":false},{"name":"lpMint","isMut":false,"isSigner":false},{"name":"payer","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"bump","type":"u8"}]},{"name":"importPoolAsOperator","accounts":[{"name":"adminOrOperator","isMut":false,"isSigner":true},{"name":"importPool","accounts":[{"name":"poolManager","isMut":true,"isSigner":false},{"name":"swap","isMut":false,"isSigner":false},{"name":"pool","isMut":true,"isSigner":false},{"name":"tokenAFees","isMut":false,"isSigner":false},{"name":"tokenBFees","isMut":false,"isSigner":false},{"name":"lpMint","isMut":false,"isSigner":false},{"name":"payer","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false}]}],"args":[{"name":"bump","type":"u8"}]},{"name":"rampA","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true}],"args":[{"name":"targetAmp","type":"u64"},{"name":"stopRampTs","type":"i64"}]},{"name":"stopRampA","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true}],"args":[]},{"name":"pauseSwap","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true}],"args":[]},{"name":"unpauseSwap","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true}],"args":[]},{"name":"commitNewAdmin","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true},{"name":"newAdmin","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"applyNewAdmin","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true}],"args":[]},{"name":"setNewFees","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"swap","isMut":true,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"swapProgram","isMut":false,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true}],"args":[{"name":"newFees","type":{"defined":"SwapFees"}}]},{"name":"sendFeesToBeneficiary","accounts":[{"name":"poolManager","isMut":false,"isSigner":false},{"name":"pool","isMut":false,"isSigner":false},{"name":"feeAccount","isMut":true,"isSigner":false},{"name":"beneficiaryAccount","isMut":true,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"setOperator","accounts":[{"name":"poolManager","isMut":true,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true},{"name":"operator","isMut":false,"isSigner":false}],"args":[]},{"name":"setBeneficiary","accounts":[{"name":"poolManager","isMut":true,"isSigner":false},{"name":"admin","isMut":false,"isSigner":true},{"name":"beneficiary","isMut":false,"isSigner":false}],"args":[]}],"accounts":[{"name":"PoolManager","type":{"kind":"struct","fields":[{"name":"base","type":"publicKey"},{"name":"bump","type":"u8"},{"name":"numPools","type":"u64"},{"name":"admin","type":"publicKey"},{"name":"pendingAdmin","type":"publicKey"},{"name":"initialFees","type":{"defined":"SwapFees"}},{"name":"minPermissionlessAmpFactor","type":"u64"},{"name":"maxPermissionlessAmpFactor","type":"u64"},{"name":"operator","type":"publicKey"},{"name":"beneficiary","type":"publicKey"}]}},{"name":"Pool","type":{"kind":"struct","fields":[{"name":"manager","type":"publicKey"},{"name":"mintA","type":"publicKey"},{"name":"mintB","type":"publicKey"},{"name":"bump","type":"u8"},{"name":"swap","type":"publicKey"},{"name":"index","type":"u64"},{"name":"tokenAFees","type":"publicKey"},{"name":"tokenBFees","type":"publicKey"},{"name":"lpMint","type":"publicKey"},{"name":"tokenDecimals","type":"u8"},{"name":"permissionlessImport","type":"bool"}]}}],"types":[{"name":"SwapFees","type":{"kind":"struct","fields":[{"name":"adminTradeFeeNumerator","type":"u64"},{"name":"adminTradeFeeDenominator","type":"u64"},{"name":"adminWithdrawFeeNumerator","type":"u64"},{"name":"adminWithdrawFeeDenominator","type":"u64"},{"name":"tradeFeeNumerator","type":"u64"},{"name":"tradeFeeDenominator","type":"u64"},{"name":"withdrawFeeNumerator","type":"u64"},{"name":"withdrawFeeDenominator","type":"u64"}]}}],"errors":[{"code":6000,"name":"NotAdmin","msg":"Must be admin to perform this action."},{"code":6001,"name":"NotAdminOrOperator","msg":"Must be admin or operator to perform this action."},{"code":6002,"name":"InitialAmpOutOfRange","msg":"Initial amp factor out of range."},{"code":6003,"name":"InitialFeesMismatch","msg":"Swap fees do not match the configured initial parameters."},{"code":6004,"name":"SwapTokensNotSorted","msg":"Swap's token mints must be sorted."},{"code":6005,"name":"SwapTokensCannotBeEqual","msg":"Swap's token mints cannot be the same."},{"code":6006,"name":"InvalidFeeAccount","msg":"Specified fee account invalid."}]}