Code Monkey home page Code Monkey logo

drct_standard_dapp's People

Contributors

brendaloya avatar cadidadi avatar evgeniuz avatar gainsboroughtech avatar jdlee23 avatar markx3 avatar raygreycloud avatar samuelljackson avatar taihelsel avatar themandalore avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

drct_standard_dapp's Issues

Position and Transaction Component

From the slack:
I think the MyPositions and MyTransactions components could be removed and replaced with a single table component that takes all the data as props. (edited)

ex props)

  • title
  • lables
  • rows (data)

Names vs token address

In Bulletin and My Portfolio where the row (‘token’ or ‘my tokens’), lets have those be words with the duration and asset: aka (BTC/USD – 7 days – 1X)

100% Jest Test coverage

  • Create additional tests in the /src/__tests__ folder, using Jest.
  • Run existing tests using npm run test
  • Check coverage status using npm run coverage

Although check coverage should be 100%, it's ok if it's a little lower if only certain things are omitted (third party libraries, constants, in-line styling, or other piece with a valid reason not to test).

Calling web3 api in each component

The line of code below should be called once in the parent component and passed down as props to any child that needs the information.

    web3.eth.getAccounts((error, accounts) => {
      this.setState({myAccount: accounts[0]});
    });

Network warning

Add a pop up if you're not on the correct metamask network (or no metamask)

New Date Button

Button (in create contract modal) to create a new token date,
The button will open a new modal with a date selector tool and a submit button.
The code will then run the factory function: deployTokenContract, with the only input being the GMT unix datestamp for the day selected (aka the start date)

Issue getting user orders

Problem:
Getting the error message below in dev the console when trying to get the user's orders.

Error getting orders Error: Invalid number of arguments to Solidity function

Culprit:
Line 51 in the Unlist component.

const books = await exchange.userOrders.call(this.state.myAccount);

Create splash screen

Nice loading splash screen

Then if this looks good we can start adding more computation up front

Minor edits

This issue will just stay open and we can put in new small things to do:

How To page

Update how to page
Include the graphic on the products page (www.ddacoop.org) with a write up either beside or below (depending on room/feel) on whats happening. Use base language for the DRCT at the top of the picture (grab from website and documentation). At end, put in our email address ([email protected]) for help and a small disclaimer (beta mode, no real money)

Gas estimates

Calculate gas cost of an entire contract
Calculate gas cost per user for the contract executor

Way to send funds to created contracts (manually enter swap address)

If the party does the first part of 'create contract' they will have a swap address. I want to have a way to still send funds if you click away during the creation process. This should be a link at the bottom of the 'Create Contract' modal that says 'Already Have a created contract?' and then it gives you a field to paste in an address and will let you send funds to it

Base side bar

We should have personal balances on the sidebar (and open positions, token balances, etc.)

Proper Gas Values

We have to go through and calculate the amount of gas to send with each function call

Custom Start Date

Allow anyone to create a start date, allow it to automatically detect what future start dates are created

Open Contracts Button

Under the "OPEN CONTRACTS" page add button on open contracts for contracts with no matched long or short party.

It should make it easier for someone who wants to enter into a currently open/created contract that has no counter party. Instead of having to copy into the "CREATE CONTRACT" page.

Input validation

Increased input validation and choice selection for all fields

New Oracle

Connect to the new (more public) oracle

Have a button for calling and pushing to the Oracle

material-ui package depreciated

Material UI v1.2.0 is out and the npm material-ui package has been depreciated.
The new versions are:
@material-ui/core
@material-ui/icons

No @material-ui implementation of pickers
For material-ui-pickers, latest is: v1.0.0-rc.9

Styling

Clone current style on remix

Update Bulletin layout

Have orderbook above, graph below on left and then buttons above/recent trades below on right

Allow for multiple factory contracts

Currently we have factory contracts hardcoded in. We will want to have multiple different factories:

Factory Address 0x15bd4d9dd2dfc5e01801be8ed17392d8404f9642 – BTC/USD
Factory Address 0xbb966cce6e880b17d35d2575f5124d880e0c247f – ETH/USD

The factory contract will need to change, (so all portions where we hard code it in).

For create contract, we will need to update the dropdown (it currently just has the first one) with multiple contracts. Once selected, the factory will change and the number of available dates (for the next dropdown) will also need to update. The usercontract will change (you can call the factory contract to get this address).

On the contract details component, you will need to update which factory gets called you click a row.

On myPortfolio, you will just need to loop through the multiple different factories.

We should also make this easy enough to add new contracts in the future.

Sample website

If no metamask (or on mobile), we should have a page with sample page (no functions called) that shows what it would look like if it did work

Move components from Header

Currently the Header component contains the components CreateContract, HowTo and CashOut. That means those components will re-render whenever the Header re-renders. I think those components should "live" in MyPortfolio, with Links to them in the Header.

Add trader tab

Allow participants to trade tokens (no orderbook, just allow them to send to an address).

Possibly combine with token balances

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.