@airswap/batch-call
@airswap/pool
@airswap/registry
@airswap/staking
@airswap/swap
@airswap/swap-erc20
@airswap/wrapper
flowchart TD;
utils-->stores;
utils-->pool;
utils-->registry;
utils-->staking;
utils-->swap;
utils-->swap-erc20;
utils-->wrapper;
utils-->batch-call;
staking-->swap-erc20;
swap-erc20-->wrapper;
swap-erc20-->batch-call;
swap-->batch-call;
utils-->libraries;
pool-->libraries;
registry-->libraries;
staking-->libraries;
swap-->libraries;
swap-erc20-->libraries;
wrapper-->libraries;
batch-call-->libraries;
libraries-->airswap-ref-server;
stores-->airswap-ref-server;
libraries-->airswap-cli;
libraries-->airswap-web;
- Install Node v18.19.0 and install dependencies with
yarn
- Edit parameters in
scripts/generate-token-list
, run the script and commit and push the new token list for the chain - Add configuration parameters to the following files:
- Bump version number in
tools/utils/package.json
and commit the changes - Rebuild
@tools/utils
withyarn compile
and create a new package withnpm pack
- Create a new release on GitHub and upload
airswap-utils-xxx.tgz
- Update the
@airswap/utils
version in allpackage.json
files and update dependencies withyarn
- Get an account with a few ATNs for funding the deployments
- Set the
PRIVATE_KEY
environment variable in.env
- Deploy the mock AirSwap token from
misc/ast
and the contracts fromsource
withyarn deploy --network NAME
in the order specified in the dependency graph above - Bump version numbers in
package.json
of all affected packages and commit the updateddeploys.js
files - Update dependency versions in all
package.json
files - Create packages with
yarn dist
- Upload packages from the
dist
directory to the new release on GitHub - Update dependency versions in
package.json
in the following repositories: - Create a new clearmatics/airswap-cli release on GitHub according to its documentation
- Install airswap-cli from the new release with
npm i -g <package-URL>
- Set the
CHAIN_ID
,PRIVATE_KEY
andPROTOCOL_FEE
environment variables for clearmatics/airswap-ref-server and deploy the server - Set the
SERVER_URL
environment variable in.env
and configure the registry contract withscripts/configure-registry
- Check whether configuration was successful with
airswap registry:status
- Update
src/constants/supportedNetworks.ts
in clearmatics/airswap-web and add network icon topublic/images/networks/
- Redeploy clearmatics/airswap-web