-
Node v>=16
-
Yarn
- Clone the repository
- Run
npm i
to install common environment packagedotenv
- Create a
.env
file, copy all fields from.env.example
to created file and paste your private keys
cd core
yarn
yarn compile
yarn test
yarn chain
-
Milkomeda Testnet deployment:
yarn deploy-testnet
-
Milkomeda Mainnet deployment:
yarn deploy-mainnet
-
Local blockchain deployment:
yarn deploy-dev
Note: After core contracts deployment replace acutual PairCodeHash in periphery/contracts/libraries/AdaswapLibrary.sol pairFor
function
cd periphery
yarn
yarn compile
yarn test
yarn chain
-
Milkomeda Testnet deployment:
yarn deploy-testnet
-
Milkomeda Mainnet deployment:
yarn deploy-mainnet
-
Local blockchain deployment:
yarn deploy-dev
cd lib
yarn
yarn compile
-
Rebuild Whole Contracts by run:
yarn compile
-
Npm account login:
yarn login
-
Publish package:
yarn publish --access restricted