Skip to content
Open
363 changes: 363 additions & 0 deletions src/connectors/pancakeswap/PancakeswapV3Masterchef.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,363 @@
[
{
"inputs": [
{ "internalType": "contract IERC20", "name": "_CAKE", "type": "address" },
{
"internalType": "contract INonfungiblePositionManager",
"name": "_nonfungiblePositionManager",
"type": "address"
},
{ "internalType": "address", "name": "_WETH", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [{ "internalType": "uint256", "name": "pid", "type": "uint256" }],
"name": "DuplicatedPool",
"type": "error"
},
{ "inputs": [], "name": "InconsistentAmount", "type": "error" },
{ "inputs": [], "name": "InsufficientAmount", "type": "error" },
{ "inputs": [], "name": "InvalidNFT", "type": "error" },
{ "inputs": [], "name": "InvalidPeriodDuration", "type": "error" },
{ "inputs": [], "name": "InvalidPid", "type": "error" },
{ "inputs": [], "name": "NoBalance", "type": "error" },
{ "inputs": [], "name": "NoLMPool", "type": "error" },
{ "inputs": [], "name": "NoLiquidity", "type": "error" },
{ "inputs": [], "name": "NotEmpty", "type": "error" },
{ "inputs": [], "name": "NotOwner", "type": "error" },
{ "inputs": [], "name": "NotOwnerOrOperator", "type": "error" },
{ "inputs": [], "name": "NotPancakeNFT", "type": "error" },
{ "inputs": [], "name": "WrongReceiver", "type": "error" },
{ "inputs": [], "name": "ZeroAddress", "type": "error" },
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
{ "indexed": true, "internalType": "contract IPancakeV3Pool", "name": "v3Pool", "type": "address" },
{ "indexed": true, "internalType": "contract ILMPool", "name": "lmPool", "type": "address" }
],
"name": "AddPool",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "liquidity", "type": "uint256" },
{ "indexed": false, "internalType": "int24", "name": "tickLower", "type": "int24" },
{ "indexed": false, "internalType": "int24", "name": "tickUpper", "type": "int24" }
],
"name": "Deposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "sender", "type": "address" },
{ "indexed": false, "internalType": "address", "name": "to", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256" }
],
"name": "Harvest",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "deployer", "type": "address" }],
"name": "NewLMPoolDeployerAddress",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "operator", "type": "address" }],
"name": "NewOperatorAddress",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "uint256", "name": "periodDuration", "type": "uint256" }],
"name": "NewPeriodDuration",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }],
"name": "NewReceiver",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "periodNumber", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "startTime", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "endTime", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "cakePerSecond", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "cakeAmount", "type": "uint256" }
],
"name": "NewUpkeepPeriod",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "bool", "name": "emergency", "type": "bool" }],
"name": "SetEmergency",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" }
],
"name": "SetPool",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": true, "internalType": "address", "name": "farmBoostContract", "type": "address" }],
"name": "UpdateFarmBoostContract",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "indexed": false, "internalType": "int128", "name": "liquidity", "type": "int128" },
{ "indexed": false, "internalType": "int24", "name": "tickLower", "type": "int24" },
{ "indexed": false, "internalType": "int24", "name": "tickUpper", "type": "int24" }
],
"name": "UpdateLiquidity",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "periodNumber", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "oldEndTime", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "newEndTime", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "remainingCake", "type": "uint256" }
],
"name": "UpdateUpkeepPeriod",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
{ "indexed": false, "internalType": "address", "name": "to", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "Withdraw",
"type": "event"
},
{
"inputs": [],
"name": "BOOST_PRECISION",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CAKE",
"outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FARM_BOOSTER",
"outputs": [{ "internalType": "contract IFarmBooster", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LMPoolDeployer",
"outputs": [{ "internalType": "contract ILMPoolDeployer", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_BOOST_PRECISION",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_DURATION",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_DURATION",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PERIOD_DURATION",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PRECISION",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "WETH",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_allocPoint", "type": "uint256" },
{ "internalType": "contract IPancakeV3Pool", "name": "_v3Pool", "type": "address" },
{ "internalType": "bool", "name": "_withUpdate", "type": "bool" }
],
"name": "add",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
"name": "balanceOf",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "_tokenId", "type": "uint256" }],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "cakeAmountBelongToMC",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_v3Pool", "type": "address" }],
"name": "getLatestPeriodInfo",
"outputs": [
{ "internalType": "uint256", "name": "cakePerSecond", "type": "uint256" },
{ "internalType": "uint256", "name": "endTime", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }],
"name": "getLatestPeriodInfoByPid",
"outputs": [
{ "internalType": "uint256", "name": "cakePerSecond", "type": "uint256" },
{ "internalType": "uint256", "name": "endTime", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_tokenId", "type": "uint256" },
{ "internalType": "address", "name": "_to", "type": "address" }
],
"name": "harvest",
"outputs": [{ "internalType": "uint256", "name": "reward", "type": "uint256" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "latestPeriodCakePerSecond",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestPeriodEndTime",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestPeriodNumber",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestPeriodStartTime",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }],
"name": "multicall",
"outputs": [{ "internalType": "bytes[]", "name": "results", "type": "bytes[]" }],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "nonfungiblePositionManager",
"outputs": [{ "internalType": "contract INonfungiblePositionManager", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "v3PoolAddressPid",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_tokenId", "type": "uint256" },
{ "internalType": "address", "name": "_to", "type": "address" }
],
"name": "withdraw",
"outputs": [{ "internalType": "uint256", "name": "reward", "type": "uint256" }],
"stateMutability": "nonpayable",
"type": "function"
},
{ "stateMutability": "payable", "type": "receive" }
]
Loading