forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Onchain pools tests (pancakeswap#721)
- Loading branch information
1 parent
f0cd3ab
commit 2000df1
Showing
2 changed files
with
113 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,270 +1,169 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IBEP20", | ||
"name": "_syrup", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_rewardPerBlock", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_startBlock", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_endBlock", | ||
"type": "uint256" | ||
} | ||
{ "internalType": "contract IBEP20", "name": "_syrup", "type": "address" }, | ||
{ "internalType": "contract IBEP20", "name": "_rewardToken", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_rewardPerBlock", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_startBlock", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_bonusEndBlock", "type": "uint256" } | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "Deposit", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "EmergencyWithdraw", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
{ "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": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "Withdraw", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "bonusEndBlock", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "poolInfo", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "lastRewardBlock", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "accRewardPerShare", | ||
"type": "uint256" | ||
} | ||
"inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], | ||
"name": "deposit", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], | ||
"name": "emergencyRewardWithdraw", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_from", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_to", "type": "uint256" } | ||
], | ||
"name": "getMultiplier", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "massUpdatePools", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [], | ||
"name": "rewardPerBlock", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "owner", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "startBlock", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], | ||
"name": "pendingReward", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "syrup", | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "poolInfo", | ||
"outputs": [ | ||
{ | ||
"internalType": "contract IBEP20", | ||
"name": "", | ||
"type": "address" | ||
} | ||
{ "internalType": "contract IBEP20", "name": "lpToken", "type": "address" }, | ||
{ "internalType": "uint256", "name": "allocPoint", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "accCakePerShare", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"name": "userInfo", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "rewardDebt", | ||
"type": "uint256" | ||
} | ||
], | ||
"inputs": [], | ||
"name": "rewardPerBlock", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_from", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_to", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "getMultiplier", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"inputs": [], | ||
"name": "rewardToken", | ||
"outputs": [{ "internalType": "contract IBEP20", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_user", | ||
"type": "address" | ||
} | ||
], | ||
"name": "pendingReward", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"inputs": [], | ||
"name": "startBlock", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "stopReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [], | ||
"name": "updatePool", | ||
"name": "syrup", | ||
"outputs": [{ "internalType": "contract IBEP20", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "deposit", | ||
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }], | ||
"name": "updatePool", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
"inputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"name": "userInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "amount", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "rewardDebt", "type": "uint256" } | ||
], | ||
"name": "withdraw", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "emergencyWithdraw", | ||
"inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], | ||
"name": "withdraw", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] | ||
] |