Giter Site home page Giter Site logo

0xleopard / gateway-sol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renproject/gateway-sol

0.0 0.0 0.0 1.5 MB

Ren gateway contracts written in Solidity

License: GNU General Public License v3.0

JavaScript 0.34% Solidity 42.65% TypeScript 56.47% Handlebars 0.54%

gateway-sol's Introduction

⛩️ 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

gateway-sol's People

Contributors

0x31 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.