Skip to content

syscoin/sysethereum-contracts

Repository files navigation

Sysethereum contracts

Build Status

NEVM contracts for the Syscoin <=> NEVM bridge.

If you are new to the Syscoin <=> NEVM bridge, please check the docs repository first.

Core components

  • 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).

Running the Tests

  • 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
    

Deployment

To deploy the contracts

Requirements

  • A Rinkeby/Mainnet client running with rpc enabled

Deployment

  • Run ./scripts/exportAndInit.sh

License

MIT License
Copyright (c) 2019 Blockchain Foundry Inc
License

About

Syscoin <=> Ethereum bridge smart contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published