Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
da4e0c6
Updated SwapDexInfoItem component.
b8zeek Jan 19, 2023
363bde5
Updated CurrencyItem component.
b8zeek Jan 25, 2023
aecdf81
Updated CurrencyItem component.
b8zeek Jan 25, 2023
e2f713a
Created Currency type.
b8zeek Jan 25, 2023
57185c4
Updated Swap component.
b8zeek Jan 25, 2023
f38b725
Updated CurrencyItem component.
b8zeek Jan 25, 2023
bad34b7
Updated Currency type and Swap component.
b8zeek Jan 25, 2023
e91cd35
Updated CurrencyItem component.
b8zeek Jan 25, 2023
e184966
Created useSwapbox service.
b8zeek Jan 25, 2023
6b7d555
Updated useSwapbox service.
b8zeek Jan 26, 2023
d3bd5e2
Updated Swap component.
b8zeek Jan 26, 2023
575183c
Updated CurrencyItem component.
b8zeek Jan 26, 2023
762d5a9
Updated Swap component.
b8zeek Jan 26, 2023
ce9bbd6
Updated CurrencyItem component.
b8zeek Jan 26, 2023
7d65e01
Started working on TokenPicker component.
b8zeek Jan 26, 2023
4357b9e
Working on TokenPicker component...
b8zeek Jan 26, 2023
84d3bb9
Created Input component.
b8zeek Jan 26, 2023
6698bbb
Created TokenPicker component.
b8zeek Jan 26, 2023
8adc96e
Added SVG token assets.
b8zeek Jan 26, 2023
95e1406
Updated TokenPicker component.
b8zeek Jan 26, 2023
1c60d3c
Updated TokenPicker component.
b8zeek Jan 31, 2023
e718e7f
Working on TokenPicker component.
b8zeek Jan 31, 2023
8734cb9
Fixed SVG token assets.
b8zeek Jan 31, 2023
0b1f029
Updated TokenPicker.
b8zeek Feb 1, 2023
e3de257
Updated useSwapbox hook.
b8zeek Feb 1, 2023
ac9e297
Updated Swap component.
b8zeek Feb 1, 2023
d4d27ef
Updated TokenPicker and CurrencyItem components.
b8zeek Feb 1, 2023
9075c90
Updated CurrencyItem and TokenPicker components.
b8zeek Feb 1, 2023
21fd896
Added Framer Motion package.
b8zeek Feb 1, 2023
0212fdf
Updated TokenPicker component, added animations.
b8zeek Feb 1, 2023
167e674
Updated useSwapbox hook.
b8zeek Feb 1, 2023
6e975f3
Updated TokenPicker component.
b8zeek Feb 1, 2023
b4aa09d
Working on SearchList...
b8zeek Feb 1, 2023
211b008
Working on SearchList component...
b8zeek Feb 2, 2023
df9f0e0
Updated TokenPicker component.
b8zeek Feb 2, 2023
089969a
Created icons.ts.
b8zeek Feb 2, 2023
e7bb24c
Created renderCurrencyLogo util function.
b8zeek Feb 2, 2023
ff133e2
Created TokenItem component.
b8zeek Feb 2, 2023
30c791e
Updated TokenPicker component.
b8zeek Feb 2, 2023
1fb4a3e
Created SearchTokenItem component.
b8zeek Feb 2, 2023
95c68fb
Updated icons.ts.
b8zeek Feb 2, 2023
dbe6aac
Updated renderCurrencyLogo function.
b8zeek Feb 2, 2023
7f26293
Updated SearchTokenItem component.
b8zeek Feb 2, 2023
4e6cefd
Added animation to SwapInfo component.
b8zeek Feb 2, 2023
9a75bff
Merged develop branch into swapbox-2.0.
b8zeek Feb 14, 2023
e29a37a
Working on Swapbox...
b8zeek Feb 21, 2023
a586cbb
Currencies amount inputs connected to the logic.
b8zeek Feb 21, 2023
6134d53
Created CurrencyBalance component.
b8zeek Feb 21, 2023
ce0c2be
Updated swapbox.
b8zeek Feb 21, 2023
a0e8ffb
Implemented logic for CurrencyBalance component.
b8zeek Feb 21, 2023
0a2c18b
Created CurrencyAmountWorth component.
b8zeek Feb 22, 2023
ea734a0
Updated useSwap hook.
b8zeek Feb 22, 2023
8ba2610
Updated CurrencyItem component.
b8zeek Feb 22, 2023
91e404d
Created CurrencySymbol component.
b8zeek Feb 22, 2023
29f663a
Updated CurrencyItem component.
b8zeek Feb 22, 2023
481dd03
Created CurrencyType component.
b8zeek Feb 22, 2023
bd40880
Created CurrencyLogo component.
b8zeek Feb 22, 2023
1a77b80
Created TokenList component.
b8zeek Feb 23, 2023
2481bff
Created Heading component.
b8zeek Feb 23, 2023
b5ec15e
Created CommonTokens component.
b8zeek Feb 23, 2023
9d4b65e
Updated TokenItem component.
b8zeek Feb 23, 2023
3aae625
Updated TokenPicker component.
b8zeek Feb 23, 2023
6ab37b8
Updated Swapbox, implemented currency select functionality.
b8zeek Feb 23, 2023
e547904
Updated SwitchCurrenciesButton component.
b8zeek Mar 9, 2023
6e2ddf9
Updated Swap component.
b8zeek Mar 9, 2023
57b2931
Updated CurrencyAmountWorth component.
b8zeek Mar 9, 2023
f267824
Updates Swap component.
b8zeek Mar 9, 2023
1576e58
Updated TokenPicker component.
b8zeek Mar 9, 2023
3dca738
Working on TokenPicker component...
b8zeek Mar 9, 2023
7b8930d
Updated TokenPicker component.
b8zeek Mar 9, 2023
ac51ae7
Working on searching token functionality...
b8zeek Mar 10, 2023
317b806
Created filteredTokens function.
b8zeek Mar 10, 2023
681dd24
Tokens are now being sorted...
b8zeek Mar 10, 2023
24cedbd
Added filteredSortedTokensWithNativeCurrency functionality.
b8zeek Mar 10, 2023
193a606
Filtered tokens are now being presented.
b8zeek Mar 10, 2023
b814c79
Created SearchItem component.
b8zeek Mar 10, 2023
e41c5bc
Updated SearchItem component.
b8zeek Mar 10, 2023
60c29bd
Updated SearchItem component.
b8zeek Mar 11, 2023
73f76d4
Added token name to the search token item.
b8zeek Mar 11, 2023
07ea23e
Updated TokenPicker component, finished search tokens functionality.
b8zeek Mar 11, 2023
14dfff1
Updated search item's container.
b8zeek Mar 12, 2023
74e13d9
Updated currency item's layout.
b8zeek Mar 13, 2023
3f3417b
Working on CurrencyItem's layout.
b8zeek Mar 13, 2023
e8861dd
Working on currency info's layout.
b8zeek Mar 13, 2023
a1dabc7
Updated CurrencyLogo component.
b8zeek Mar 13, 2023
1a96ebd
Updated filtered currencies list layout.
b8zeek Mar 13, 2023
c4a06f4
Working on SwapButton component.
b8zeek Mar 13, 2023
64b6b06
SwapButton connected to the actual state.
b8zeek Mar 14, 2023
c4608d5
Updated SwapButton component.
b8zeek Mar 14, 2023
8e5931c
Passed loading prop to SwapButton component.
b8zeek Mar 14, 2023
4324118
Updated SwapButton component.
b8zeek Mar 14, 2023
550a469
Updated SwapButton component.
b8zeek Mar 14, 2023
aa368aa
Updated SwapButton component.
b8zeek Mar 14, 2023
74a543b
Updated useSwap hook.
b8zeek Mar 14, 2023
9d94db9
Updated SwapInfo component.
b8zeek Mar 14, 2023
3fc06f3
Updated SwapInfo component.
b8zeek Mar 15, 2023
79bb509
Created SwapInfoDetailed component.
b8zeek Mar 15, 2023
3a59990
Updated SwapInfo component.
b8zeek Mar 15, 2023
f268fe4
Updated SwapInfoDetailed component.
b8zeek Mar 15, 2023
f25d67a
Updated SwapDexInfoItem component.
b8zeek Mar 15, 2023
c9adb1c
Updated SwapDexInfoItem, now it presents value to be get.
b8zeek Mar 15, 2023
dfb034e
Updated SwapButton component.
b8zeek Mar 16, 2023
439dc8c
Passed selectedTrade prop to SwapInfo component.
b8zeek Mar 16, 2023
62c5b4f
Added present selected platform functionality.
b8zeek Mar 16, 2023
55d4800
Added onClick prop to SwapDexInfoItem component.
b8zeek Mar 16, 2023
1427643
Added select trading platform functionality.
b8zeek Mar 16, 2023
ce11c30
CurrencyItem and its sub-components moved into separate folder.
b8zeek Mar 16, 2023
df7b213
Added logic for presentation of Best Route Selected badge.
b8zeek Mar 16, 2023
828a30d
Added logic for presentation of output currency to SwapDexInfoItem.
b8zeek Mar 16, 2023
8246447
Finished output currency presentation logic for SwapInfo component.
b8zeek Mar 16, 2023
4fd15b4
SwapInfo components moved to its own folder, updated imports.
b8zeek Mar 16, 2023
e6af16e
Updated folder structure.
b8zeek Mar 17, 2023
6d305f6
CurrencyItem sub-components grouped up.
b8zeek Mar 17, 2023
422bcbb
Updated folder structure.
b8zeek Mar 17, 2023
112b129
Updated SwitchCurrenciesButton component.
b8zeek Mar 17, 2023
4d0ba3b
Updated CurrencyAmount component.
b8zeek Mar 17, 2023
cb22e10
Updated dependencies, removed unused code.
b8zeek Mar 17, 2023
30a1573
Removed unused stuff from Swap component.
b8zeek Mar 20, 2023
5bc3b3e
Updated Swap component's layout.
b8zeek Mar 20, 2023
7efb05c
Updated new Swapbox page layout.
b8zeek Mar 20, 2023
a339929
Created SwapInfoBasics component.
b8zeek Mar 20, 2023
d5b9850
Updated SwapNew component.
b8zeek Mar 20, 2023
6bb9960
Added count of available trades functionality.
b8zeek Mar 20, 2023
a500b40
Added show / hide state and show / hide animation to SwapInfo.
b8zeek Mar 20, 2023
11458c8
Added down arrow rotating effect.
b8zeek Mar 20, 2023
b472770
Created CurrencyConversionRate component.
b8zeek Mar 20, 2023
c030dec
Updated SwapInfoBasics component.
b8zeek Mar 20, 2023
0505fa6
Added show conversion rate logic.
b8zeek Mar 20, 2023
2d22de0
Conversion rate is no presented in a proper format.
b8zeek Mar 20, 2023
f14512a
Updated token picker component's exit animation.
b8zeek Mar 21, 2023
e206695
Removed unused code, improved naming.
b8zeek Mar 21, 2023
7dc859f
Created SearchList component.
b8zeek Mar 21, 2023
82d87c0
Created CloseButton component.
b8zeek Mar 21, 2023
d8ad79b
Added close icon SVG asset.
b8zeek Mar 21, 2023
4473007
Updated CloseButton component.
b8zeek Mar 21, 2023
91d2fdc
Added hover and active effect states to CloseButton component.
b8zeek Mar 21, 2023
f5da9b5
Added close TokenPicker functionality to the button's click.
b8zeek Mar 21, 2023
275e908
Updated protection indicator functionality.
b8zeek Mar 21, 2023
f228d3d
Added proper functionality to slippage tolerance indicator.
b8zeek Mar 21, 2023
191d766
Updated Indicator component.
b8zeek Mar 21, 2023
8f17f67
Added magnifying glass SVG asset.
b8zeek Mar 21, 2023
dd844cd
Updated platforms indicator.
b8zeek Mar 22, 2023
78d49d1
Added dynamic platforms colour functionality.
b8zeek Mar 22, 2023
b95d538
Updated SwapButton component, added disabled state.
b8zeek Mar 22, 2023
38d9432
Added select max balance functionality.
b8zeek Mar 22, 2023
05b3f22
Passed showWrap prop to SwapButton component.
b8zeek Mar 22, 2023
9bb9495
Added and tested wrapping functionality.
b8zeek Mar 22, 2023
de87d35
Updated wrapping label.
b8zeek Mar 23, 2023
432f02e
Added connect wallet state to SwapButton component.
b8zeek Mar 23, 2023
b4b5d35
Swap button styles separated to its own file.
b8zeek Mar 23, 2023
c394e88
Created and tested ConnectWalletButton component.
b8zeek Mar 23, 2023
d84a4ec
Created WrapButton component, tested.
b8zeek Mar 23, 2023
4e820ba
Created LoadingButton component.
b8zeek Mar 23, 2023
51ae2f7
Updated LoadingButton component.
b8zeek Mar 23, 2023
0ed3944
Removed unnecessary code.
b8zeek Mar 23, 2023
19a84b8
Working on show approve flow...
b8zeek Mar 24, 2023
9dbf4af
Created ApproveButton component.
b8zeek Mar 24, 2023
fed5970
Working on approval flow...
b8zeek Mar 24, 2023
51504d0
Connected approve handler with ApproveButton.
b8zeek Mar 24, 2023
6e3a608
Working on approve flow...
b8zeek Mar 24, 2023
c65e9e6
Updated ApproveButton component, tested approve flow.
b8zeek Mar 24, 2023
9832961
Removed unnecessary props.
b8zeek Mar 27, 2023
6a439e6
Updated naming.
b8zeek Mar 27, 2023
6269efe
Created separate SwapButton component.
b8zeek Mar 27, 2023
61900a9
Updated SwapboxButton component.
b8zeek Mar 27, 2023
6c552e5
Updated SwapboxButton disabled state.
b8zeek Mar 27, 2023
83dc573
Added switch currencies functionality.
b8zeek Mar 27, 2023
beff325
Fixed the issue with keys in SearchList.
b8zeek Mar 27, 2023
b1865e8
Added SwitchButton component's style constants.
b8zeek Mar 27, 2023
4c47ae7
Updated SwitchCurrenciesButton.
b8zeek Mar 27, 2023
0cb1305
Updated SearchList, now it checks for currencies balance.
b8zeek Mar 27, 2023
4f0adbb
Updated SearchItem to receive balance.
b8zeek Mar 27, 2023
8d8d003
Updated SearchItem component's layout.
b8zeek Mar 27, 2023
9194f42
Updated scroll styling in SearchList component.
b8zeek Mar 28, 2023
4083857
Updated TokenPicker component.
b8zeek Mar 28, 2023
6ca66f7
Created separate Input component.
b8zeek Mar 28, 2023
b576dd3
Updated Input component.
b8zeek Mar 28, 2023
1b8330f
Updated Input component.
b8zeek Mar 28, 2023
bae0f21
Updated Input component.
b8zeek Mar 28, 2023
8eae6d8
Added clear input functionality.
b8zeek Mar 28, 2023
583ea7c
Updated SwapDexInfoItem component.
b8zeek Mar 28, 2023
48ffb76
Updated Indicator styling.
b8zeek Mar 28, 2023
30ea459
Updated Indicator styling.
b8zeek Mar 29, 2023
69cb4b5
Presented gas value in SwapInfoBasics component.
b8zeek Mar 29, 2023
202b97c
Fixed the issue with undefined gas.
b8zeek Mar 29, 2023
da2b52a
Added change color based on platform functionality to SwapButton.
b8zeek Mar 29, 2023
6cc6353
Updated SwapButton component.
b8zeek Mar 29, 2023
361d828
Added 1Inch color.
b8zeek Mar 29, 2023
c8fca2f
Added a few platform colors.
b8zeek Mar 29, 2023
4102dc4
Added a few more platform colors.
b8zeek Mar 29, 2023
ab6140e
Added missing platform colors.
b8zeek Mar 29, 2023
64055c2
Removed console logs.
b8zeek Mar 29, 2023
41041ae
Connected currency amount input disabled state.
b8zeek Mar 30, 2023
eb92634
Remove unnecessary functionalities from useSwapbox hook.
b8zeek Mar 30, 2023
a7b66ce
Removed unused code, connected swapCallbackError prop with swap button.
b8zeek Mar 30, 2023
92ecd7b
Removed unused props.
b8zeek Mar 30, 2023
5210c55
Updated folder structure, removed unused stuff.
b8zeek Mar 30, 2023
eefbe9d
Removed unnecessary file.
b8zeek Mar 30, 2023
4696f0b
Currency amount input connected with disabled prop.
b8zeek Mar 30, 2023
2f80344
Removed unused SwapContext.
b8zeek Mar 31, 2023
efb5d74
Created README.md.
b8zeek Mar 31, 2023
098b4d5
Updated README.md.
b8zeek Mar 31, 2023
1e1a35d
Updated README.md.
b8zeek Mar 31, 2023
3a7b59d
Updated README.md.
b8zeek Mar 31, 2023
3ec5e7d
Updated README.md, described useSwapbox hook.
b8zeek Mar 31, 2023
1edeb49
Updated README.md file.
b8zeek Mar 31, 2023
b5a804b
Removed unused files.
b8zeek Mar 31, 2023
a1c3f2d
Updated README.md file.
b8zeek Mar 31, 2023
69df736
Updated constants with SwapboxButton colors.
b8zeek Mar 31, 2023
c071e25
Updated README.md file.
b8zeek Mar 31, 2023
34a152c
Font and border styling moved to constants, updated imports.
b8zeek Mar 31, 2023
49e31d6
Updated README.md.
b8zeek Mar 31, 2023
288241b
Updated README.md.
b8zeek Mar 31, 2023
f18acc9
Updated README.md.
b8zeek Mar 31, 2023
bb27f8a
Merge branch 'develop' into swapbox-2.0
0xVenky Apr 1, 2023
a05f515
Removed font family property from certain swapbox elements.
b8zeek Apr 3, 2023
eb5149b
Updated Indicator component.
b8zeek Apr 3, 2023
5abd2b9
Updated indicator colors exports.
b8zeek Apr 3, 2023
d78d0fa
Updated rotating arrow indicator in SwapInfoBasics component.
b8zeek Apr 3, 2023
0cbaadd
Removed unused import.
b8zeek Apr 3, 2023
a86385f
Removed unreachable code.
b8zeek Apr 3, 2023
9f7b941
Updated CurrencyLogo with nullish coalescing operator.
b8zeek Apr 3, 2023
8af46b3
Updated CurrencySymbol component.
b8zeek Apr 3, 2023
02ad378
Added disabled state to TokenItem component.
b8zeek Apr 3, 2023
db6462b
TokenPicker component now passes selectedCurrency prop.
b8zeek Apr 3, 2023
a029391
Added native currency token to the common tokens.
b8zeek Apr 3, 2023
e349903
Updated CloseButton's onClick prop.
b8zeek Apr 3, 2023
0ed8aef
Removed a few comments.
b8zeek Apr 3, 2023
fd3d9be
Fixed a typo.
b8zeek Apr 3, 2023
be5e403
Updated CurrencyAmountWorth component to alert on price impact severity.
b8zeek Apr 4, 2023
4d35641
Removed unused import.
b8zeek Apr 4, 2023
5d4a739
Created ErrorButton component.
b8zeek Apr 4, 2023
3636936
Updated SwapboxButton.
b8zeek Apr 4, 2023
bf1a0cb
Removed excess code from SwapButton component.
b8zeek Apr 4, 2023
0c2aa6e
Removed animation from SwapInfo component.
b8zeek Apr 4, 2023
9fbb436
Fixed the issue with application crashing on token switch.
b8zeek Apr 4, 2023
ddccb8e
Created Notification component.
b8zeek Apr 4, 2023
b0600a6
Updated Notification styling.
b8zeek Apr 4, 2023
5c0a8c1
Updated Notification component.
b8zeek Apr 4, 2023
d46fa3e
Updated Swapbox component.
b8zeek Apr 4, 2023
ee5e17f
Updated Notification component's styling.
b8zeek Apr 4, 2023
45d1087
Updated text wrapping.
b8zeek Apr 4, 2023
2ae07b3
Fixed the issue where native currency wasn't shown in token search list.
b8zeek Apr 5, 2023
4e52588
Added style constants for platform info item.
b8zeek Apr 5, 2023
d9c4910
Updated SwapDexInfoItem to dynamically change color based on trade.
b8zeek Apr 5, 2023
d6cb96e
Updated border styling of negative platform trade.
b8zeek Apr 5, 2023
948659f
Updated condition for selected badge presentation and styling.
b8zeek Apr 5, 2023
97047da
Updated Indicator component.
b8zeek Apr 5, 2023
5518a1e
Added price impact indicator to each platform trade item.
b8zeek Apr 5, 2023
152c174
Updated naming.
b8zeek Apr 5, 2023
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"decimal.js-light": "^2.5.1",
"ethers": "^5.4.4",
"etherscan-api": "10.3.0",
"framer-motion": "^9.0.1",
"git-revision-webpack-plugin": "^5.0.0",
"graphql": "^16.5.0",
"graphql-request": "^5.1.0",
Expand Down
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"installWeb3MobileBrowser": "Please visit us from a web3-enabled mobile browser such as Trust Wallet or Coinbase Wallet.",
"installMetamask": "Please visit us after installing Metamask on Chrome or Brave.",
"disconnected": "Disconnected",
"swapbox2": "Swapbox 2.0",
"swap": "Swap",
"send": "Send",
"sendAnyway": "Send Anyway",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/swapbox/banana.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/swapbox/close-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/swapbox/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/swapbox/currency-logo-eth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/swapbox/currency-logo-usdt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/swapbox/dex-logo-cow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/assets/swapbox/dex-logo-sushi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/swapbox/dex-logo-uniswap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading