NEVM contracts for the Syscoin <=> NEVM bridge.
If you are new to the Syscoin <=> NEVM bridge, please check the docs repository first.
- SyscoinRelay contract
- Informs SyscoinVaultManager contract when a Syscoin transaction locked or unlocked funds.
- Parsing/working with Syscoin blocks, txs and merkle trees
- SyscoinVaultManager contract
- The vault manager contract to hold deposits or and transfer funds on unlock
- Tokens are minted or transferred when coins are locked on the Syscoin blockchain.
- Tokens are destroyed when coins should go back to the Syscoin blockchain (balances are saved for when moving back to NEVM).
-
Install prerequisites
-
Clone this repo.
-
Install npm dependencies.
- cd to the directory where the repo is cloned.
npm install
-
Compile contracts
# compile contracts npx truffle compile --all
-
Run tests:
# first start ganache-cli - and do this again once your gas ran out npx ganache-cli --gasLimit 4000000000000 -e 1000000 # run tests npx truffle test
To deploy the contracts
- A Rinkeby/Mainnet client running with rpc enabled
- Run
./scripts/exportAndInit.sh
MIT License
Copyright (c) 2019 Blockchain Foundry Inc
License