Skip to content

davidtperk/gateway-sol

 
 

Repository files navigation

⛩️ gateway-sol

Ren gateway contracts written in Solidity

Setup

If you are using VSCode, put this into .vscode/settings.json:

{
    "solidity.packageDefaultDependenciesContractsDirectory": "",
    "solidity.compileUsingRemoteVersion": "v0.5.17+commit.d19bba13"
}

Tests

Install the dependencies.

yarn install

Run the ganache-cli or an alternate Ethereum test RPC server on port 8545. The -d flag will use a deterministic mnemonic for reproducibility.

yarn ganache-cli -d

Run the Truffle test suite.

yarn run test

Coverage

Run the Truffle test suite with coverage.

yarn run coverage

Open the coverage file.

open ./coverage/index.html

Deploying

Add a .env, filling in the mnemonic and Infura key:

MNEMONIC_TESTNET="..."
MNEMONIC_MAINNET="..."
INFURA_KEY="..."

Deploy to Kovan:

NETWORK=kovan yarn run deploy

Verifying Contract Code

Add an Etherscan API key to your .env:

ETHERSCAN_KEY="..."

For now, follow the same steps as in ./VERIFY.md until a script is written.

For contracts that use a Proxy, you then need to go to the Etherscan page, select "More Options" and then "Is this a proxy?":

image

About

Ren gateway contracts written in Solidity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.6%
  • Solidity 42.6%
  • Other 0.8%