Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial #2

Open
wants to merge 310 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 123 commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
aa6b947
updated styles of home/tokentable and portfolio/top-up history;
Nov 15, 2021
ee2fedd
updated footer links;
Nov 15, 2021
62168e1
updated home bonding curve;
Nov 16, 2021
390bd52
fixed styles of claim form;
Nov 16, 2021
6ff4212
updated launchpad sales summary;
Nov 16, 2021
8a82fa0
removed text stroke;
Nov 16, 2021
4d7bd09
fixed white gap in home footer;
Nov 16, 2021
2f60432
updated staking/vesting tables;
Nov 16, 2021
149b077
updated staking page before engaging wallet;
Nov 16, 2021
a27bbc2
updated home/bonding curve;
Nov 16, 2021
b1d79ca
home page titles: updated font-weight;
Nov 16, 2021
43a2ef4
updated styling of proposals table;
Nov 16, 2021
9027aca
updated styling of propose page;
Nov 16, 2021
0b15106
minor styling in home page;
Nov 16, 2021
1f7bca2
updated governance routing;
Nov 17, 2021
9e468b5
removed promotion banner from home page;
Nov 17, 2021
823ef08
fixed issue of sovryns unite section at home;
Nov 17, 2021
93371cb
removed helpDesk link;
Nov 17, 2021
dd41b7e
updated home currencies table;
Nov 17, 2021
f55e866
fixed porfolio styling without wallet connection;
Nov 17, 2021
8cf2cfb
updated app title;
Nov 17, 2021
11b4b1c
staking page: assets/vests; style of title;
Nov 17, 2021
ed644ca
updated skeleton of portfolio page;
Nov 17, 2021
2ebc3ab
updated topUp/vesting history tables; home show in USD;
Nov 17, 2021
ca30aba
styling of proposal details page;
Nov 18, 2021
baa7d55
updated governance routing to load over proposals page;
Nov 18, 2021
95dc93c
fixed vote status issue;
Nov 18, 2021
34fd1e6
updated menu font family;
Nov 18, 2021
7a2a1e5
updated wallet-connect alert at staking page;
Nov 18, 2021
549fb54
updated launchpad/disclaimer page;
Nov 18, 2021
9f2f43d
action for load all proposals;
Nov 18, 2021
5360900
updated title -> sovryn origins;
Nov 18, 2021
c126500
revert important information page;
Nov 18, 2021
8d63632
updated onload disclaimer;
Nov 18, 2021
74f49ba
bold the page titles;
Nov 18, 2021
796b812
fixed gap height under header;
Nov 18, 2021
549df15
list FISH only at claim page;
Nov 24, 2021
39865ff
updated EngageWalletStep component;
Nov 24, 2021
c4b50b2
[launchpad] show buy section only when sale is live;
Nov 24, 2021
7a256dd
WIP: bonding curve graph;
Nov 25, 2021
19094b5
home page graph updated with tooltip position;
Nov 26, 2021
9b4ce4e
home page graph done;
Nov 26, 2021
0d3bbe2
updated buysection: styled -> css module;
Nov 29, 2021
9317700
updated DepositLimit part;
Nov 29, 2021
174c07b
updated buy information sectoin;
Nov 29, 2021
6cba822
updated buySection UI;
Nov 30, 2021
cdedc31
updated buySection/amount input;
Nov 30, 2021
d6619cd
added AMM to the buySection;
Nov 30, 2021
e8f4429
in progroess with claim page;
charles-dr Nov 30, 2021
a4dda43
updated launchpad with blockSync and new addreses;
charles-dr Dec 1, 2021
67a8c3d
implemented claim form;
charles-dr Dec 1, 2021
1b74712
added routing under launchpad; updated styles using module css;
charles-dr Dec 1, 2021
a86f6c3
updated portfolio page with OG token;
charles-dr Dec 1, 2021
077d772
updated dapp disclaimer content;
charles-dr Dec 1, 2021
6a1d66c
updated engageWallet text content;
charles-dr Dec 1, 2021
c0ae5aa
updated logo & favicon;
charles-dr Dec 2, 2021
027bfa3
centered engage wallet texts;
charles-dr Dec 2, 2021
76240f8
updated launchpad/importantInformation content;
charles-dr Dec 2, 2021
19d6b76
add staking done;
charles-dr Dec 2, 2021
a25f740
fixed usd value in current stakes table; extend staking works;
charles-dr Dec 2, 2021
170f490
removed withdrawable fee part from staking page;
charles-dr Dec 2, 2021
fd77751
updated style of current stakes table;
charles-dr Dec 2, 2021
eb30dfe
updated vesting, governance addresses;
charles-dr Dec 2, 2021
65c309c
updated i18n text at home page;
charles-dr Dec 2, 2021
424b2e7
fixed table header of vested history;
charles-dr Dec 3, 2021
b04fec3
updated addStakingForm;
charles-dr Dec 3, 2021
6ec9926
fixed style of StakingDateCalculator;
charles-dr Dec 3, 2021
d70ed7e
updated extendStakeForm;
charles-dr Dec 3, 2021
06a1e41
fixed translation at extendStakeForm;
charles-dr Dec 3, 2021
0a36844
updated increaseStakeForm;
charles-dr Dec 3, 2021
79cad3c
updated translation at stake page;
charles-dr Dec 6, 2021
b4d832c
completed increaseStakeForm;
charles-dr Dec 6, 2021
3396a68
completed unstake;
charles-dr Dec 6, 2021
8971fb8
fixed decimals for staking modals;
charles-dr Dec 6, 2021
d2278f0
fixed minor issues;
charles-dr Dec 6, 2021
9ae13f7
styled staking history table;
charles-dr Dec 6, 2021
877d975
changed color or explorer link;
charles-dr Dec 6, 2021
cb8f1eb
load staking history on page loading;
charles-dr Dec 6, 2021
7e43c80
configured loading current vests;
charles-dr Dec 6, 2021
017a171
Merge branch 'initial' of https://github.com/Sovryn-Origins/origins-f…
charles-dr Dec 6, 2021
c2e41bf
show staking history after clicking button;
charles-dr Dec 6, 2021
6f49907
Buy-page added
songil88620 Dec 6, 2021
d4fe908
buy-page transaction state updated
songil88620 Dec 6, 2021
6e4c2a9
swap issue fixed
songil88620 Dec 8, 2021
89b4b30
Bonding Curve UI added
songil88620 Dec 8, 2021
77008d8
updated governance page layout;
charles-dr Dec 8, 2021
9462fb6
removed governorOwner from contracts;
charles-dr Dec 8, 2021
ec481cf
fixed governance_propose;
charles-dr Dec 8, 2021
c3dac6d
fixed issue of increase staking amount;
charles-dr Dec 8, 2021
7b225fd
fixed stakeForm with input issue;
charles-dr Dec 8, 2021
52bf195
fixed increaseStakeForm with input issue;
charles-dr Dec 8, 2021
e97e065
fixed listing proposals;
charles-dr Dec 9, 2021
da98d6b
fixed link to the proposal detail page;
charles-dr Dec 9, 2021
b209204
updated flow of sending a proposal;
charles-dr Dec 10, 2021
46b5e8b
updated style of proposal detail page;
charles-dr Dec 10, 2021
11149e1
token adding...
songil88620 Dec 10, 2021
4304e94
popover2 version changed;
charles-dr Dec 12, 2021
37dfdb6
small change to update the token list under bonding curve;
charles-dr Dec 12, 2021
8db19d1
Merge branch 'buy-page' of https://github.com/songil88620/origins-fe …
charles-dr Dec 12, 2021
ca26590
fixed issue in eventReader & governance page;
charles-dr Dec 14, 2021
800c4d6
removed image from the proposal detail page;
charles-dr Dec 14, 2021
bcf99c8
removed unused import;
charles-dr Dec 15, 2021
0c420fc
added translation, removed old components;
charles-dr Dec 15, 2021
0970c21
added translation to the votecaster;
charles-dr Dec 15, 2021
f3a1b6f
configured casting votes;
charles-dr Dec 15, 2021
eb7073f
show voteCaster if already casted;
charles-dr Dec 15, 2021
b6720ec
updated proposal transaction table;
charles-dr Dec 15, 2021
c1dfba6
show integer voting power in the stake modal;
charles-dr Dec 16, 2021
7aae765
added translation to vote caster;
charles-dr Dec 16, 2021
457324b
removed username from voting table;
charles-dr Dec 16, 2021
9e651a9
updated style of proposals table;
charles-dr Dec 16, 2021
9e98198
show statusbar for active proposals;
charles-dr Dec 16, 2021
6b62ca0
proposals page: scss -> tailwind css;
charles-dr Dec 16, 2021
85efcda
updated style of ProposalRowStateBadge;
charles-dr Dec 16, 2021
984036e
VoteCaster: show votes available for casting;
charles-dr Dec 17, 2021
87e361a
fixed validation of increase staking amount;
charles-dr Dec 17, 2021
dbac7b6
clear the unused code;
charles-dr Dec 20, 2021
8cad23b
updated AcceptedCurrencies styled->module scss;
charles-dr Dec 20, 2021
45901ae
refactored AssetSelect;
charles-dr Dec 20, 2021
187be7a
refactored Button styling;
charles-dr Dec 20, 2021
d73ba5d
refactored Footer;
charles-dr Dec 20, 2021
71e226a
refactored Form/Input;
charles-dr Dec 20, 2021
9afb516
refactored Header/Burger;
charles-dr Dec 20, 2021
d3d7072
minor change in Header/Burger;
charles-dr Dec 20, 2021
f4baae0
refactored Header;
charles-dr Dec 20, 2021
5b59f2a
bonding curve added
songil88620 Dec 20, 2021
a053d71
hide vote caster for inactive proposals;
charles-dr Dec 20, 2021
26b7af2
bonding curve added
songil88620 Dec 20, 2021
894d457
fix small issues
songil88620 Dec 20, 2021
e928dbd
updated logo/loading text of dapp initial page;
charles-dr Dec 21, 2021
c35d23f
removed components for SwapPage, RewardPage, BuySovPage, SportTrading…
charles-dr Dec 21, 2021
b8207fd
removed components for /cross-chain;
charles-dr Dec 21, 2021
56b4390
removed containers/EmailPage;
charles-dr Dec 21, 2021
6b39836
removed pages/MarginTradePage;
charles-dr Dec 21, 2021
573fb48
removed containers/MarginTradeForm;
charles-dr Dec 21, 2021
93a0cbb
removed containers/StatsPage;
charles-dr Dec 21, 2021
1145f2e
removed components using backend API;
charles-dr Dec 21, 2021
396abd2
updated localStorage keys;
charles-dr Dec 22, 2021
917ce64
removed unused components from LandingPage;
charles-dr Dec 22, 2021
5dba1b8
removed unused webhooks: app/hooks/lending;
charles-dr Dec 22, 2021
82be7e8
removed unused swap-related hooks;
charles-dr Dec 22, 2021
0de15ca
removed app/hooks/protocol;
charles-dr Dec 22, 2021
f178082
removed unused hooks related to trading, contracts and tutorials;
charles-dr Dec 22, 2021
fc2976a
removed app/hooks/amm;
charles-dr Dec 22, 2021
5cf3ad1
removed unused models and dictionaries;
charles-dr Dec 22, 2021
cbbd556
removed unused codes - trade, wallet page components;
charles-dr Dec 22, 2021
e5ef8ed
small issues fixed
songil88620 Dec 22, 2021
86a765c
small issues fixed
songil88620 Dec 22, 2021
c4f6c07
updated export status of CryptocurrencyPrices components;
charles-dr Dec 23, 2021
7a010e2
extracted listingTokens for other reference;
charles-dr Dec 23, 2021
17672df
updated lanuchpad routing;
charles-dr Dec 23, 2021
ea4a03b
removed unused svg in launchpad;
charles-dr Dec 23, 2021
4e8b2dc
added Mynt sale to the launchpad;
charles-dr Dec 23, 2021
cb39010
prevent user from entering claim form without connecting wallet;
charles-dr Dec 23, 2021
7874056
styled components -> module css in launchpad;
charles-dr Dec 23, 2021
0ab9f35
updated WalletConnector with module css;
charles-dr Dec 27, 2021
30c938e
show connect wallet button for the small width screens;
charles-dr Dec 27, 2021
7afac4a
recovered deposit/withdraw of wallet page;
charles-dr Dec 27, 2021
173226e
moved bridge-network-dictionary;
charles-dr Dec 27, 2021
0dbd8c8
updated useProposalLists;
charles-dr Dec 28, 2021
ad1ee5d
updated rpcNodes urls for governance;
charles-dr Dec 28, 2021
c869901
fixed banner image height;
charles-dr Dec 29, 2021
3784622
fixed font of token name at landing page;
charles-dr Dec 29, 2021
30bb0fb
aligned bonding curve text;
charles-dr Dec 29, 2021
ecbb48e
fixed bonding curve content width;
charles-dr Dec 29, 2021
77c0236
fixed footer font;
charles-dr Dec 29, 2021
68017ca
updated footer discord link;
charles-dr Dec 29, 2021
7619a53
fixed header padding;
charles-dr Dec 29, 2021
6d04e18
fixed format of claim form;
charles-dr Dec 29, 2021
797086a
fixed styles of stake page;
charles-dr Dec 30, 2021
a3ee658
all bonding data fetched
songil88620 Jan 3, 2022
4941ff1
bonding curve small fix for new design
songil88620 Jan 4, 2022
37142fc
fixed conflict and compile errors;
charles-dr Jan 4, 2022
0ccb8fd
fixed compile warnings;
charles-dr Jan 4, 2022
d8f2174
Merge branch 'songil88620-buy-page' into initial
charles-dr Jan 4, 2022
29fda34
updated style of BuyFormContainer;
charles-dr Jan 4, 2022
b0b91df
BuyPage/Tabbar: styled components -> module css;
charles-dr Jan 4, 2022
105c25f
BuyPage/SwapAssetSelector: styled compoments -> module css;
charles-dr Jan 4, 2022
4fe8643
removed unused import;
charles-dr Jan 5, 2022
d9b9135
fixed propose button line height;
charles-dr Jan 5, 2022
94471a0
fixed Sip presale text;
charles-dr Jan 5, 2022
0471e3b
fixed styles of proposal details page;
charles-dr Jan 5, 2022
f0eb699
fixed style of engage wallet button;
charles-dr Jan 5, 2022
c0a2934
fixed style of portfolio page tab;
charles-dr Jan 5, 2022
6b99ea9
updated portfolio page tabs & buttons;
charles-dr Jan 5, 2022
b86349c
use extended tailwind css for line height;
charles-dr Jan 5, 2022
4a0a33a
use extended tailwind css for the line height - 2;
charles-dr Jan 5, 2022
c3d8772
updated tab in buy page;
charles-dr Jan 6, 2022
c1c74a5
fixed sovyrn swap/input placeholder;
charles-dr Jan 6, 2022
d7534dd
updated SwapAssetSelector;
charles-dr Jan 6, 2022
8a1c057
fixed syvryn swap form;
charles-dr Jan 6, 2022
14afa1c
minor changes;
charles-dr Jan 7, 2022
2d11217
updated disabled style of buy button of launchpad;
charles-dr Jan 7, 2022
d2559a8
buySection: update source token accroding to the sale info changes;
charles-dr Jan 7, 2022
4272bbf
reverted changes in useSendContractTx;
charles-dr Jan 7, 2022
63412f8
updated SwapHistory styles;
charles-dr Jan 7, 2022
bda51f8
added translation for sovryn swap;
charles-dr Jan 7, 2022
1c8e9e3
buy page fixed tab issue;
charles-dr Jan 7, 2022
87a06c5
updated BuyPage/BondingCurve;
charles-dr Jan 7, 2022
2adefea
added more social icons to the footer;
charles-dr Jan 10, 2022
78a52ed
updated help link;
charles-dr Jan 11, 2022
a16aa40
launchpad: redirect to the stored path after address verified;
charles-dr Jan 11, 2022
0d26ee7
launchpad: added new verification type: ByStake;
charles-dr Jan 11, 2022
550b6a0
get deposit token from contract, reset input amount after transaction…
charles-dr Jan 11, 2022
68df986
updated claimform to show the valid date based on tier;
charles-dr Jan 11, 2022
6874531
claimform: refresh amount with blocksync; removed gaslimit for claim;
charles-dr Jan 12, 2022
55bf4b2
fixed 'View Governance' button;
charles-dr Jan 12, 2022
69e250b
updated to get dollar value of OG;
charles-dr Jan 12, 2022
c03b45e
updated staking amount input;
charles-dr Jan 12, 2022
8efe02f
fixed staking increase amount input;
charles-dr Jan 12, 2022
71649a2
minor change in Staking HistoryEventsTable;
charles-dr Jan 12, 2022
9f3d8be
show voting delegation for current vests;
charles-dr Jan 13, 2022
201b836
minor changes;
charles-dr Jan 13, 2022
4f2b1a5
withdrawable from waitedTS;
charles-dr Jan 14, 2022
b54bc98
added equivalent deposit amount on launchpad;
charles-dr Jan 14, 2022
614e3be
exception for OG dollar value;
charles-dr Jan 14, 2022
9141450
removed the dependency of useDollarValueOg;
charles-dr Jan 14, 2022
e63fa21
updated buysection with min/max limit;
charles-dr Jan 14, 2022
bf87712
vesting: updated dollar value calculation;
charles-dr Jan 17, 2022
2d9aee0
updated vesting withdraw;
charles-dr Jan 17, 2022
556c8a3
adding a transaction modal for vesting withdraw;
charles-dr Jan 17, 2022
2856591
updated bonding curve styles;
charles-dr Jan 18, 2022
3efad50
fixed increaseStakingForm with amount input;
charles-dr Jan 18, 2022
43498b5
added bonding curve configuration for Mynt;
charles-dr Jan 20, 2022
cdeb86f
fixed expected value of bonding curve;
charles-dr Jan 20, 2022
0c2d726
fixed slippagemodal of bonding curve;
charles-dr Jan 20, 2022
2d9a670
wip: placing order of bonding curve;
charles-dr Jan 20, 2022
57da840
removed bonding curve history from swap history table;
charles-dr Jan 21, 2022
84de16c
initialized BondingCurveHistory;
charles-dr Jan 21, 2022
a8533e9
[bondingCurve] make the history table stable; wip: history table;
charles-dr Jan 21, 2022
0c090bd
updated loading bonding curve history;
charles-dr Jan 21, 2022
f4f573e
fixed bonding curve history with toAmount;
charles-dr Jan 24, 2022
0a12741
fixed datetime of bonding curve history;
charles-dr Jan 24, 2022
c3998bb
getting claim orders of bonding curve swaps;
charles-dr Jan 25, 2022
f9ee418
configured the status of bonding curve record;
charles-dr Jan 25, 2022
65c01d4
updated the structure of bonding curve;
charles-dr Jan 26, 2022
0e9e308
updated pagination of bonding curve history;
charles-dr Jan 26, 2022
4cb54b2
wip: bonding curve order flow;
charles-dr Jan 27, 2022
17c2dd5
fixed openOrder with gas limit;
charles-dr Jan 27, 2022
e7807e3
wip: bonding curve form works upto claimOrder;
charles-dr Jan 27, 2022
d3b8eae
configured TxDialog of bonding curve;
charles-dr Jan 28, 2022
f432e01
[bonding curve] start claiming after user confirms;
charles-dr Jan 28, 2022
b416953
updated styles of tx dialog;
charles-dr Jan 28, 2022
e2f74d4
updated dialog button; fixed tx dialog status;
charles-dr Jan 28, 2022
42e483e
arranged the unuseful TxStatus;
charles-dr Jan 28, 2022
6a70b85
updated tx dialog of bonding curve;
charles-dr Jan 29, 2022
017d43a
fixed TxDialog on close after success;
charles-dr Jan 29, 2022
fe9ef2e
get received amount from claim order event;
charles-dr Jan 29, 2022
ae8cc5e
[bonding curve history] show claim order hash for the claimed ones;
charles-dr Jan 29, 2022
e7463a6
updated status text of bonding curve history;
charles-dr Feb 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .npmrc.pages

This file was deleted.

36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sovryn DApp
# Origins DApp

---

Expand Down Expand Up @@ -57,63 +57,63 @@ To authenticate by adding your personal access token to your `~/.npmrc` file (**
Note: this step is only required if yarn install fails for you because of missing access to charting-library repository.
If yarn install fails after these steps please ask for read access to the charting-library repository (for external contributors please see the section below).

#### External Contributors
<!-- #### External Contributors

Due to the terms of our licensing agreement with Trading View, we are unable to grant access to the charting-library repository to external contributors. In order to allow running of this repo locally, we have set up the `development_external` and `master_external` branches which exclude this dependency and is synched to the latest changes from `development`/`master` branches.

Any new Pull Requests should target the non-external versions of these branches as outlined in the "Which Branch?" section below.
Any new Pull Requests should target the non-external versions of these branches as outlined in the "Which Branch?" section below. -->

## Contributing

<a href="https://github.com/DistributedCollective/Sovryn-frontend/graphs/contributors">
<img src="https://contrib.rocks/image?repo=DistributedCollective/Sovryn-frontend" />
<a href="https://github.com/DistributedCollective/origins-fe/graphs/contributors">
<img src="https://contrib.rocks/image?repo=DistributedCollective/origins-fe" />
</a>

### Bug Reports

To foster active collaboration, Sovryn strongly encourages pull requests, not just bug reports. "Bug reports" may also be sent in the form of a pull request containing a failing test.
To foster active collaboration, Origins strongly encourages pull requests, not just bug reports. "Bug reports" may also be sent in the form of a pull request containing a failing test.

However, if you file a bug report, your issue should contain a title and a clear description of the issue. You should also include as much relevant information as possible. The goal of a bug report is to make it easy for yourself - and others - to replicate the bug and develop a fix.

Remember, bug reports are created in the hope that others with the same problem will be able to collaborate with you on solving it. Do not expect that the bug report will automatically see any activity or that others will jump to fix it. Creating a bug report serves to help yourself and others start on the path of fixing the problem. If you want to chip in, you can help out by fixing any bugs listed in our [issue trackers](https://github.com/issues?q=is%3Aopen+is%3Aissue+label%3Abug+user%3Adistributedcollective).
Remember, bug reports are created in the hope that others with the same problem will be able to collaborate with you on solving it. Do not expect that the bug report will automatically see any activity or that others will jump to fix it. Creating a bug report serves to help yourself and others start on the path of fixing the problem. If you want to chip in, you can help out by fixing any bugs listed in our [issue trackers]().

### Support Questions

Sovryn's GitHub issue trackers are not intended to provide help or support. Instead, use one of the following channels:
Origins's GitHub issue trackers are not intended to provide help or support. Instead, use one of the following channels:

- [Discord](https://discord.gg/J22WS6z)
- [Wiki Pages](https://wiki.sovryn.app)
- [Sovryn Forum](https://forum.sovryn.app)
- [Sovryn Blog](https://sovryn.app/blog/)
- [Discord]()
- [Wiki Pages]()
- [Origins Forum]()

### Core Development Discussion

You may propose new features or improvements of existing DApp behavior in the Sovryn Ideas issue board. If you propose a new feature, please be willing to implement at least some of the code that would be needed to complete the feature.
You may propose new features or improvements of existing DApp behavior in the Origins Ideas issue board. If you propose a new feature, please be willing to implement at least some of the code that would be needed to complete the feature.

Informal discussion regarding bugs, new features, and implementation of existing features takes place in the #sorcery channel of the Sovryn Discord server.
Informal discussion regarding bugs, new features, and implementation of existing features takes place in the #sorcery channel of the Origins Discord server.

### Which Branch?

**All** bug fixes should be sent to the latest stable (master) branch. Bug fixes should never be sent to the development branch unless they fix features that exist only in the upcoming release.
**All** bug fixes should be sent to the latest stable (main) branch. Bug fixes should never be sent to the development branch unless they fix features that exist only in the upcoming release.

**Minor** features that are fully backward compatible with the current release may be sent to the latest stable branch.

**Major** new features should always be sent to the development branch, which contains the upcoming release.

If you are unsure if your feature qualifies as a major or minor, please ask in the #sorcery channel of the Sovryn Discord server.
If you are unsure if your feature qualifies as a major or minor, please ask in the #sorcery channel of the Origins Discord server.

### Working With UI

All UI designs used for this repository should be available publically in [Google Drive folder as Adobe XD files](https://drive.google.com/drive/folders/1e_VljWpANJe0o4VmIkKU5Ewo56l9iMaM?usp=sharing)

<!--
## Security Vulnerabilities

If you discover a security vulnerability within DApp, please submit your bug report to [Immunefi](https://immunefi.com/bounty/sovryn/) (there is bounty rewards). All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability within DApp, please submit your bug report to [Immunefi](https://immunefi.com/bounty/origins/) (there is bounty rewards). All security vulnerabilities will be promptly addressed. -->

## Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

## Licence

The Sovryn DApp is open-sourced software licensed under the [MIT license](LICENSE).
The Origins DApp is open-sourced software licensed under the [MIT license](LICENSE).
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"dependencies": {
"@babel/core": "7.9.0",
"@blueprintjs/core": "3.42.0",
"@blueprintjs/popover2": "0.12.8",
"@blueprintjs/select": "3.13.7",
"@distributedcollective/charting-library": "1.0.0",
"@fortawesome/fontawesome-svg-core": "1.2.30",
"@fortawesome/free-solid-svg-icons": "5.14.0",
"@fortawesome/react-fontawesome": "0.1.11",
"@hookstate/core": "3.0.6",
"@makerdao/multicall": "0.12.0",
"@redux-saga/delay-p": "1.1.2",
"@reduxjs/toolkit": "1.5.1",
"@rsksmart/rsk3": "0.3.4",
Expand Down Expand Up @@ -50,6 +51,7 @@
"create-file-webpack-plugin": "1.0.1",
"cross-env": "7.0.2",
"css-loader": "3.4.2",
"d3": "7.1.1",
"d3-array": "2.8.0",
"dayjs": "1.10.6",
"debounce": "1.2.0",
Expand Down Expand Up @@ -114,11 +116,13 @@
"react-app-polyfill": "^1.0.6",
"react-copy-to-clipboard": "5.0.2",
"react-countdown": "2.3.1",
"react-custom-scrollbars": "4.2.1",
"react-dev-utils": "^11.0.4",
"react-dom": "16.13.0",
"react-ga": "3.3.0",
"react-helmet-async": "1.0.4",
"react-i18next": "11.3.4",
"react-linkify": "1.0.0-alpha",
"react-mailchimp-subscribe": "2.1.0",
"react-minimal-pie-chart": "8.2.0",
"react-multi-carousel": "^2.6.3",
Expand Down Expand Up @@ -299,7 +303,9 @@
"@storybook/preset-create-react-app": "^3.2.0",
"@storybook/react": "^6.3.7",
"@storybook/theming": "^6.3.7",
"@types/d3": "7.1.0",
"@types/mathjs": "6.0.5",
"@types/react-linkify": "1.0.1",
"@types/socket.io-client": "1.4.34",
"auto-changelog": "2.2.1",
"git-revision-webpack-plugin": "3.0.6",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
Binary file modified public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
console.log('<%= process.env.REACT_APP_GIT_COMMIT_ID %>');
</script>

<title>Sovryn</title>
<title>Sovryn Origins</title>

<style>
:root {
Expand Down Expand Up @@ -187,12 +187,5 @@
console.warn(e);
}
</script>
<a
href="https://sovryn.freshdesk.com/support/home"
class="feedback-button"
rel="noreferrer noopener"
target="_blank"
>Help Desk</a
>
</body>
</html>
Binary file modified public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
process.exit(1);
}

// Copy Tradingview Chart library to /public folder
const copyLibs = require('./copy-chart-libs');

// Generate configuration
const config = configFactory(process.env.NODE_ENV);

Expand All @@ -59,7 +56,6 @@ checkBrowsers(paths.appPath, isInteractive)
// Remove all content but keep the directory so that
// if you're in it, you don't end up in Trash
fs.emptyDirSync(paths.appBuild);
await copyLibs();
// Merge with the public folder
copyPublicFolder();
// Start the webpack build
Expand Down
32 changes: 0 additions & 32 deletions scripts/copy-chart-libs.js

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ process.on('unhandledRejection', err => {
// Ensure environment variables are read.
require('../config/env');

// Copy Tradingview Chart library to /public folder
const copyLibs = require('./copy-chart-libs');
copyLibs();

const fs = require('fs');
const chalk = require('react-dev-utils/chalk');
const webpack = require('webpack');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { ListShowWrapper } from '../../styled';
import { AssetRenderer } from 'app/components/AssetRenderer';
import { translations } from 'locales/i18n';
import { AcceptedCurrencies } from 'types/asset';

export const ListShow: React.FC = () => {
const { t } = useTranslation();
return (
<ListShowWrapper>
<div className="tw-text-xs tw-tracking-normal tw-uppercase tw-mb-3">
{t(
translations.originsLaunchpad.saleDay.buyStep.buyInformationLabels
.acceptedCurrencies,
)}
</div>
<ul>
{AcceptedCurrencies.map((currency, i) => (
<li key={i}>
<AssetRenderer asset={currency} />
</li>
))}
</ul>
</ListShowWrapper>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import { AssetRenderer } from 'app/components/AssetRenderer';
import { TruncatedWrapper } from '../../styled';
import { AcceptedCurrencies } from 'types/asset';

export const SimpleShow: React.FC = () => {
return (
<div>
<TruncatedWrapper>
{AcceptedCurrencies.map((currency, i) => (
<AssetRenderer
className="tw-mr-2 tw-text-lg tw-font-rowdies"
asset={currency}
key={i}
/>
))}
</TruncatedWrapper>
</div>
);
};
36 changes: 36 additions & 0 deletions src/app/components/AcceptedCurrencies/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React, { useState } from 'react';
import { SimpleShow } from './components/SimpleShow';
import { ListShow } from './components/ListShow';
import { ToggleButton } from './styled';
import chevronDown from 'assets/images/chevron-down.svg';
import chevronUp from 'assets/images/chevron-up.svg';

interface AcceptedCurrciesProps {
showMore?: boolean;
}

export const AcceptedCurrencies: React.FC<AcceptedCurrciesProps> = ({
showMore: defaultShowMore,
}) => {
const [showMore, setShowMore] = useState<boolean>(defaultShowMore || false);
return (
<div>
<div className="tw-relative tw-h-6 tw-w-full">
{!showMore && <SimpleShow />}
{showMore && <ListShow />}
<ToggleButton
className="tw-cursor-pointer"
onClick={() => setShowMore(!showMore)}
>
<span className="tw-pr-3 tw-text-xs tw-font-rowdies tw-text-yellow-3">
{showMore ? 'LESS' : 'MORE'}
</span>
<img
src={showMore ? chevronUp : chevronDown}
alt="Toggle Show More/Less"
/>
</ToggleButton>
</div>
</div>
);
};
32 changes: 32 additions & 0 deletions src/app/components/AcceptedCurrencies/styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import styled from 'styled-components';

export const ToggleButton = styled.div`
position: absolute;
right: 0.5rem;
bottom: 0.2rem;
z-index: 2;
min-width: 6rem;
display: flex;
justify-content: flex-end;
`;

export const TruncatedWrapper = styled.div`
position: absolute;
left: 0;
bottom: 0;
width: calc(100% - 5rem);
white-space: nowrap;
overflow: hidden;
/* text-overflow: ellipsis; */
`;

export const ListShowWrapper = styled.div`
position: absolute;
bottom: 0;
left: 0;
background-color: #474747;
width: 100%;
padding: 1.25rem;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
`;
18 changes: 0 additions & 18 deletions src/app/components/ActiveBorrowTable/BorrowAmount.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions src/app/components/ActiveBorrowTable/CollateralAmount.tsx

This file was deleted.

Loading