Giter Site home page Giter Site logo

delta-www's Introduction

This is a Next.js project bootstrapped with create-next-app.

Run the site

First, run the development server:

npm run dev
# or
yarn dev

How to create a static build

yarn build && yarn export

The static version of the app in the out directory.

Simulate ending the LSW

Run a local node from the CORE-secret repo

cd ~/CORE-secret/src
yarn run build
npx hardhat node
 # Then, in a new terminal window
./liveTest.sh tests_live/operations/delta/end_lsw.js --local

Your local node will now have a forked mainnet that has the LSW already ending, you can point metamask to this node and test the site on localhost:3000

Check out our Next.js deployment documentation for more details.

Running with the hardhat node

In the core contracts repository start the hardhat local node.

$ cd src
$ npx hardhat node --config hardhat.v076.config.js

When the hardhat node is started it should show a list of account and their associated private key which can be imported to metamask.

Once started, open another window in the core contract repo and run the operation on the local hardhat node that ends the LSW. This operation also transfer some DELTA to account1.

$ cd src
$ ./liveTest.sh tests_live/operations/setup_website_env.js  --local

Once ran, it should display the DELTA token address. This address should be replaced in the one inside config/inodex.js addressMap.delta

Make sure the other address listen in the console are updated as well, if needed.

In metamask, import account1 and connect to the local RPC localhost network. Chain id should be set to 1 and the other values left to default.

delta-www's People

Contributors

notsegfault avatar dev-eth avatar 0xrevert avatar koussay-khelil avatar x3devships avatar leonboripgs avatar incrediblehub999 avatar 0xopsimath avatar nightdrive-84 avatar

Forkers

0xopsimath

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.