Skip to content

YokaiSwap/yokai-swap-periphery

 
 

Repository files navigation

YokaiSwap Periphery

Local Development

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

Install Dependencies

yarn install

Compile Contracts

Link yokai-swap-core frist.

cd $PATH_TO_YOKAISWAP_CORE
yarn link
cd -
yarn link yokai-swap-core

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 >
WCKB_ADDRESS=< replace with wckb contract address >
EOF

Deploy

Then compile and deploy.

yarn compile
yarn deploy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 86.7%
  • TypeScript 12.6%
  • Other 0.7%