Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
feat(jpegd): Add new staking pool (#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Jan 4, 2023
1 parent ce7672f commit 0450194
Show file tree
Hide file tree
Showing 10 changed files with 1,545 additions and 9 deletions.
223 changes: 223 additions & 0 deletions src/apps/jpegd/contracts/abis/jpegd-lp-farm-v-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
[
{
"inputs": [{ "internalType": "address", "name": "_jpeg", "type": "address" }],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "Claim",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "ClaimAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "addr", "type": "address" },
{ "indexed": false, "internalType": "bool", "name": "isWhitelisted", "type": "bool" }
],
"name": "ContractWhitelistChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "Deposit",
"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": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "Withdraw",
"type": "event"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_allocPoint", "type": "uint256" },
{ "internalType": "contract IERC20", "name": "_lpToken", "type": "address" }
],
"name": "add",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{ "inputs": [], "name": "claimAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [
{ "internalType": "uint256", "name": "_pid", "type": "uint256" },
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "deposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "epoch",
"outputs": [
{ "internalType": "uint256", "name": "startBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "endBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "rewardPerBlock", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "jpeg",
"outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_startBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "_endBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "_rewardPerBlock", "type": "uint256" }
],
"name": "newEpoch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_pid", "type": "uint256" },
{ "internalType": "address", "name": "_user", "type": "address" }
],
"name": "pendingReward",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"name": "poolInfo",
"outputs": [
{ "internalType": "contract IERC20", "name": "lpToken", "type": "address" },
{ "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
{ "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "accRewardPerShare", "type": "uint256" },
{ "internalType": "uint256", "name": "depositedAmount", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "poolLength",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "view", "type": "function" },
{
"inputs": [
{ "internalType": "uint256", "name": "_pid", "type": "uint256" },
{ "internalType": "uint256", "name": "_allocPoint", "type": "uint256" }
],
"name": "set",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "addr", "type": "address" },
{ "internalType": "bool", "name": "isWhitelisted", "type": "bool" }
],
"name": "setContractWhitelisted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalAllocPoint",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "", "type": "uint256" },
{ "internalType": "address", "name": "", "type": "address" }
],
"name": "userInfo",
"outputs": [
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
{ "internalType": "uint256", "name": "lastAccRewardPerShare", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "whitelistedContracts",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_pid", "type": "uint256" },
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 0450194

Please sign in to comment.