Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Feat/futures #453

Draft
wants to merge 59 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
2c6f87a
Merge branch 'l2' into feat/futures
0xclem Jun 10, 2021
001cd87
add futures to navbar
andytcf Jun 11, 2021
2431de5
add wallet overview
andytcf Jun 11, 2021
c5607b7
add performance chart
andytcf Jun 11, 2021
128333e
add position cards
andytcf Jun 11, 2021
069e119
imtoken added
0xclem Jun 15, 2021
e4712fc
finish position cards
andytcf Jun 15, 2021
96bf2bb
Revert "imtoken added"
0xclem Jun 15, 2021
833cd68
Finish market table
andytcf Jun 16, 2021
f67816a
fixes
andytcf Jun 16, 2021
97f5626
Merge pull request #392 from Synthetixio/feat/futures-layout
andytcf Jun 16, 2021
c611985
add chart
andytcf Jun 17, 2021
ed42237
add page title rates
andytcf Jun 17, 2021
fab4b8f
Merge branch 'feat/futures' of https://github.com/Synthetixio/kwenta …
0xclem Jun 18, 2021
043fef4
Merge branch 'l2' into feat/futures
0xclem Jun 18, 2021
820d02c
add market info
andytcf Jun 21, 2021
aeae18b
add tabs for positions
andytcf Jun 21, 2021
8c748d3
finish position card
andytcf Jun 28, 2021
d3ca5c8
finish order table
andytcf Jun 29, 2021
19d5423
finish trades table
andytcf Jun 29, 2021
2693f7c
finalise number format
andytcf Jun 29, 2021
886bb87
Merge pull request #425 from Synthetixio/feat/single-market-view
andytcf Jun 30, 2021
2fec40c
work on the trade card
andytcf Jul 5, 2021
464432f
refactor gasPrice, feeRate, feeCost and add slippage component
andytcf Jul 6, 2021
ed12dd9
aggregate translation files in common place
andytcf Jul 6, 2021
5d16337
improve slippage select
andytcf Jul 6, 2021
431e931
add margin elements
andytcf Jul 6, 2021
92b5ce6
correct typo in component spelling
andytcf Jul 8, 2021
247905c
css touchup
andytcf Jul 8, 2021
7adc450
Merge pull request #439 from Synthetixio/futures/trading-panel
andytcf Jul 8, 2021
ac7bb44
Merge branch 'master' into dev
0xclem Jul 13, 2021
b664d04
bn format
0xclem Jul 13, 2021
62f39d9
markets added
0xclem Jul 13, 2021
e8209e6
markets OK
0xclem Jul 20, 2021
96e5aa2
UI for margin section
0xclem Jul 21, 2021
17944e1
Merge pull request #442 from Synthetixio/feat/futures-data
0xclem Jul 21, 2021
ee853b5
merge conflicts fixed
0xclem Jul 21, 2021
15b8ddb
add margin ok
0xclem Jul 26, 2021
040f1a4
Merge branch 'dev' into futures-merge
0xclem Jul 30, 2021
cd71576
Merge branch 'master' into feat/futures
0xclem Jul 30, 2021
951df2e
Trades table
0xclem Aug 24, 2021
963eb7e
feat(charts/tooltips): Add tooltips to candlesticks charts (#8)
kmeraz Aug 26, 2021
0c6d649
withdraw margin added
0xclem Aug 26, 2021
1c8fd5a
Add Issue and PR Templates (#16)
platschi Aug 30, 2021
7faecb9
Add Contribution & Contact Information (#15)
platschi Aug 30, 2021
340aae7
redesign of leverage section
0xclem Aug 31, 2021
341e760
leverage input OK
0xclem Aug 31, 2021
4c923cb
trading volume
0xclem Aug 31, 2021
905a3eb
fix(etherscanInstance): remove EtherScan provider in favor of BlockEx…
kmeraz Aug 31, 2021
ce22aba
Merge pull request #18 from Kwenta/master
kmeraz Aug 31, 2021
982ccad
UI fixes
0xclem Sep 1, 2021
a430d16
trade confirmation popup + UI fixes
0xclem Sep 2, 2021
08bdaaf
Merge branch 'dev' into mergeFutures
0xclem Sep 2, 2021
b948410
rollback to using default chart
0xclem Sep 3, 2021
9403669
linter fix
0xclem Sep 3, 2021
5e043e0
Merge branch 'dev' into feat/futures
0xclem Sep 3, 2021
c9c04bf
refetch queries on position close
0xclem Sep 3, 2021
ac4a43a
linter fix
0xclem Sep 4, 2021
8175abe
console warnings removed
0xclem Sep 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Report a bug
about: I would like to report a bug with Kwenta
labels: 'bug'
assignees: ''
---

### Subject of the issue
Describe your issue here.

### Your environment
* Network used (Mainnet? L2?)
* Which browser and its version

### Expected behaviour
Tell us what should happen

### Actual behaviour
Tell us what happens instead

### Steps to reproduce
Tell us how to reproduce this issue.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Request a feature
about: I would like to propose a feature
title: ''
labels: 'enhancement'
assignees: ''
---

### Feature Proposal
Describe your proposal in detail here.

### Rationale
Why should this feature exist? Provide at least one use-case.

### Implementation
Do you have ideas how this feature could be implemented?
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Related issue
<!--- If it fixes an open issue, please link to the issue here. -->

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# #!/bin/sh
# . "$(dirname "$0")/_/husky.sh"

npm run lint
#npm run lint
73 changes: 73 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Contributors Guide

Kwenta is a dApp enabling derivates trading with infinite liquidity - powered by the Synthetix protocol. We're community driven and welcome all contribution. We aim to provide a constructive, respectful and fun environment for collaboration.

This guide is geared towards beginners. If you're an open-source veteran feel free to just skim this document and get straight into crushing issues.

## Why Contribute

There are many reasons you might contribute to Kwenta. For example, you may wish to:

- contribute to the Ethereum ecosystem.
- establish yourself as an Ethereum developer.
- work on cutting-edge technology.
- learn how to participate in open-source projects.
- expand your software development skills.
- flex your skills in a public forum to expand your career
opportunities (or simply for the fun of it).
- grow your network by working with fellow Ethereum developers.

## How to Contribute

Regardless of the reason, the process to begin contributing is very much the same. We operate like a typical open-source project operating on GitHub: the repository [Issues](https://github.com/kwenta/kwenta/issues) is where we track what needs to be done and [Pull Requests](https://github.com/kwenta/kwenta/pulls) is where code gets reviewed. We use [discord](https://discord.gg/HUPyQ63TFF) to chat informally.

### General Work-Flow

We recommend the following work-flow for contributors:

1. **Find an issue** to work on, either because it's interesting or suitable to your skill-set. Use comments to communicate your intentions and ask questions.
2. **Work in a feature branch** of your personal fork (github.com/YOUR_NAME/kwenta) of the main repository (github.com/kwenta/kwenta).
3. Once you feel you have addressed the issue, **create a pull-request** to merge your changes in to the main repository.
4. Wait for the repository maintainers to **review your changes** to ensure the issue is addressed satisfactorily. Optionally, mention your PR on [discord](https://discord.gg/HUPyQ63TFF).
5. If the issue is addressed the repository maintainers will **merge your pull-request** and you'll be an official contributor!

Generally, you find an issue you'd like to work on and announce your intentions to start work in a comment on the issue. Then, do your work on a separate branch (a "feature branch") in your own fork of the main repository. Once you're happy and you think the issue has been addressed, create a pull request
into the main repository.

### First-time Set-up

First time contributors can get their git environment up and running with these steps:

1. [Create a fork](https://help.github.com/articles/fork-a-repo/#fork-an-example-repository) and [clone it](https://help.github.com/articles/fork-a-repo/#step-2-create-a-local-clone-of-your-fork) to your local machine.
2. [Add an _"upstream"_ branch](https://help.github.com/articles/fork-a-repo/#step-3-configure-git-to-sync-your-fork-with-the-original-spoon-knife-repository) that tracks github.com/kwenta/kwenta using `$ git remote add upstream
https://github.com/kwenta/kwenta.git` (pro-tip: [use SSH](https://help.github.com/articles/connecting-to-github-with-ssh/) instead of HTTPS).
3. Create a new feature branch with `$ git checkout -b your_feature_name`. The name of your branch isn't critical but it should be short and instructive. E.g., if you're fixing a bug with serialization, you could name your branch `fix_serialization_bug`.
4. Make sure you sign your commits. See [relevant doc](https://help.github.com/en/github/authenticating-to-github/about-commit-signature-verification).
5. Commit your changes and push them to your fork with `$ git push origin your_feature_name`.
6. Go to your fork on github.com and use the web interface to create a pull request into the kwenta/kwenta repo.

From there, the repository maintainers will review the PR and either accept it or provide some constructive feedback.

There's a great [guide](https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/) by Rob Allen that provides much more detail on each of these steps, if you're having trouble. As always, jump on [discord](https://discord.gg/HUPyQ63TFF) if you get stuck.

## FAQs

### I don't think I have anything to add

There's lots to be done and there's all sorts of tasks. You can do anything from correcting typos through to writing core dApp code. If you reach out, we'll include you.

### I'm not sure my programming level is good enough

We're open to developers of all levels. If you create a PR and your code doesn't meet our standards, we'll help you fix it and we'll share the reasoning with you. Contributing to open-source is a great way to learn.

### I'm not sure I know enough about Ethereum

No problems, there's plenty of tasks that don't require extensive Ethereum knowledge. You can learn about Ethereum as you go.

### I'm afraid of making a mistake and looking silly

Don't be. We're all about personal development and constructive feedback. If you make a mistake and learn from it, everyone wins.

### I don't like the way you do things

Please, make an issue and explain why. We're open to constructive criticism and will happily change our ways.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
npm run build
npm start
```

## Contributing

Kwenta welcomes contributors. Regardless of the time you have available, everyone can provide meaningful contributions to the project by submitting bug reports, feature requests or even the smallest of fixes! To submit your contribution, please fork, fix, commit and create a pull-request describing your work in detail. For more details, please have a look at the [Contribution guidelines](CONTRIBUTING.md).

## Contact

Join the community on the [Kwenta Discord server](https://discord.gg/HUPyQ63TFF)!
Loading