crossswap is a cross chain swap bridge, includes functions:
- A bridge to connect two chains.
- Automatically mint token and swap on chain with good liquidity.
npm install
To start, run ganache-cli --fork
to fork and run a local simulated Ethereum environment.
ganache-cli --fork https://eth-mainnet.alchemyapi.io/v2/<api-key> --networkId 999
Run truffle migrate
to compile all the contracts.
truffle migrate --network mainnet_fork
Run truffle test
to test smart contracts.
truffle test test/test-swapbridge.js --network mainnet_fork
- relayer layer to monitor status change and relay message between to chains.
- SendBridge Smart Contract.
- Curtain (yellowcurtain3@gmail.com)