YokaiSwap / yokaiswap-farm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YokaiSwap Farming

Local Development

The following assumes the use of node@>=14.

Install Dependencies

yarn install

Compile Contracts

yarn compile

Deployment

Prerequisites

You need to deploy YokaiSwap Core frist.

Setup

Create a .env file, remember to replace placeholders with real value.

cat > .env <<EOF
DEPLOYER_PRIVATE_KEY=< replace with your private key >
RPC_URL=< polyjuice web3 rpc >
NETWORK_SUFFIX=< gw-testnet or gw-mainnet >

ROLLUP_TYPE_HASH=< replace with godwoken rollup type hash >
ETH_ACCOUNT_LOCK_CODE_HASH=< replace with godwoken eth-account-lock code hash >

FACTORY_ADDRESS=< replace with deployed yokai factory contract address >
EOF

Deploy

Then compile and deploy.

yarn compile
yarn deploy

forked from pancakeswap/pancake-farm

About

License:Do What The F*ck You Want To Public License


Languages

Language:Solidity 84.8%Language:TypeScript 14.9%Language:JavaScript 0.2%Language:Shell 0.1%