decentralizedderivatives / drct_standard_dapp Goto Github PK
View Code? Open in Web Editor NEWDaxia dApp
Home Page: http://dapp.daxia.us
License: MIT License
Daxia dApp
Home Page: http://dapp.daxia.us
License: MIT License
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)
Now it has the addresses, let's put in the same names that pop up in the orderbook
The little instructons on the bottom should be better descriptors of each tab
Contract address showing the oracle address instead of contract address from the bulletin board after clicking on an orderId
Make sure it works
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)
API in main.js and any others found
Make a 7 row max for all tables and then it should go to a scroll bar
/src/__tests__
folder, using Jest.npm run test
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).
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]});
});
Add a pop up if you're not on the correct metamask network (or no metamask)
To the my portfolio page
Any other takers?
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)
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);
Adjust gas limits for each send transaction to what they should actually be
Enter both sides, then you can have other buttons for 'short btc' or simple similar products
This project may or may not require a rewriting of the code
Nice loading splash screen
Then if this looks good we can start adding more computation up front
This issue will just stay open and we can put in new small things to do:
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)
Calculate gas cost of an entire contract
Calculate gas cost per user for the contract executor
Only choose from list of available dates
Add a component for the ddaList functionality (just us)
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
We should have personal balances on the sidebar (and open positions, token balances, etc.)
We have to go through and calculate the amount of gas to send with each function call
The boxes go vertical, but somethings off
query the oracle using a button
Maybe a drct_standard issue
Allow anyone to create a start date, allow it to automatically detect what future start dates are created
The my swaps and open swaps could both use a better interface
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.
Over session variables
Increased input validation and choice selection for all fields
Connect to the new (more public) oracle
Have a button for calling and pushing to the Oracle
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
Needs some sort of confirmation of success/error when placing an order.
Clone current style on remix
Have orderbook above, graph below on left and then buttons above/recent trades below on right
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.
It should be seamless. Click 'create contract' and the DApp tells when it goes through
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
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.
Allow participants to trade tokens (no orderbook, just allow them to send to an address).
Possibly combine with token balances
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.