Coder Social home page Coder Social logo

keydonix / dai-hrd Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 6.0 734 KB

DAI: Hodl Rated DAI - A DAI token wrapper that benefits from the Dai Savings Rate (interest).

License: The Unlicense

JavaScript 1.19% TypeScript 59.95% Dockerfile 0.09% CSS 0.27% HTML 0.37% Solidity 38.13%

dai-hrd's Introduction

DAI-HRD

DAI: Hodl Rated DAI - A DAI token wrapper that benefits from the Dai Savings Rate (interest).

Development

Setup

npm install --ignore-scripts

Compile the Contracts

npm run compile

A build-cache folder will be created in the root directory that contains both the solc input JSON and the output JSON. A generated folder will also be created in the root directory that contains TypeScript interfaces to the contracts.

Deploy to Ganache

npm run compile
npm run start-ganache
npm run deploy

Test against Ganache

npm run compile
npm run test

Web App

npm run compile
npm run start-ganache # background, consider using VSCode task
npm run deploy
npx ts-node ./scripts/seed/seed-maker.ts
cd dapp
npm run build
npm run serve # consider background, consider using VSCode task

Open http://127.0.0.1:8081/index.html

IPFS Deployment

cd dapp

# start IPFS daemon inside a docker container (note: this step will leave IPFS running, you won't need to repeat in the future)
docker container run -d --restart=on-failure --name ipfs --mount 'type=volume,source=ipfs-export,dst=/export' --mount 'type=volume,source=ipfs,dst=/data/ipfs' -p 4001:4001 -p 8080:8080 ipfs/go-ipfs

# build the project inside a docker container (controlled environment)
docker image build --tag dai-hrd-ipfs-deployer .

# copy the files to IPFS volume
docker container run --rm -it --mount 'type=volume,source=ipfs-export,dst=/export' dai-hrd-ipfs-deployer

# hash and pin the files in running IPFS instance
docker container exec -it ipfs ipfs add --recursive --pin=true /export/dai-hrd

dai-hrd's People

Contributors

epheph avatar micahzoltu avatar dependabot[bot] avatar

Stargazers

drozdowsky avatar Noel Maersk avatar Alexander avatar Shane Fontaine avatar  avatar Vincenz avatar James Young avatar Michael Demarais avatar

Watchers

 avatar James Cloos avatar  avatar Michael Demarais avatar

dai-hrd's Issues

About contract 0x9b869c2eaae08136c43d824ea75a2f376f1aa983 DAI-HRD (DAI-HRD)

Good day.

Sorry for writing here, I could not find other contacts.

How can I contact the owner of the address 0x2938a347d93145d49289e0dad06489121a8b6daa from which the contract 0x9b869c2eaae08136c43d824ea75a2f376f1aa983 DAI-HRD (DAI-HRD) was created?
I have a very good and interesting business proposal for him. This is not a redemption of the address, not an investment, not a prepayment, etc.
Contact me please at email [email protected]

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.