Bogdan Fazakas
5a6d267199
Highest liquidity correct assets order ( #736 )
...
* ordered subgraph did array before return
* updated aqua querry offset to fit multi network
* fixed typo and removed logs
* sort assets by oceanReserve
* added TVL label and rename Pool Creator Liquidity to Pool Creator Statistics
* remove obsolete comments
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-07-15 17:25:53 +02:00
Norbi
565c0324f9
Create wallet network switcher ( #676 )
...
* created component for wallet network switching
* component styling
* display network names
* created networks config
* fix get network config function
* wip
* moved switcher component inside consume
* use isAssetNetwork to show Switcher component, added to publish
* get network properties using networkList and oceanConfig
* error fix
* hide wallet network switcher if no provider
* use chainId from useAsset ddo
* added switcher component to Compute
* added component to edit metadata and compute settings
* added component to advance settings form
* fixed lint errors
* included component inside Web3Feedback
* updated text and icon design
* button design update, and Web3Feedback position on edit asset
* fixed lint error
* message update
* tag error fixes
* disabled pool and trade buttons if not asset network
* mainnet aquarius fallback url
* filename typo fix
* replace NetworkName component with getNetworkDisplayName function
* added method to switch to EthereumChain networks, removed logs
* fixed lint error
* style tweaks
* markup and styles simplification
* restrict add datatoken
Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-07-15 17:03:03 +02:00
Bogdan Fazakas
11b7146812
added back apollo typings until we can get all of them using graphql codegen
2021-07-09 11:36:43 +03:00
Bogdan Fazakas
5de2a6e330
remove apollo typings and generate schema using urql
2021-07-02 09:44:24 +03:00
Bogdan Fazakas
5e45fff361
wip replace apollo with urql
2021-06-22 08:52:49 +03:00
b516e95879
prettier formatting updates
2021-06-04 11:43:47 +02:00
Norbi
9ce9fc84c7
Display fiat value inside pool statistics ( #610 )
...
* fixed
* replaced ddo.price with price from useAsset
Co-authored-by: Norbi <katunanorbert@gmai.com>
2021-05-19 14:14:06 +02:00
Jamie Hewitt
0a739cbe93
Support for Moonbase Alpha ( #552 )
...
* upgrading to ocean.js 0.14.6
* proper ocean.js update
* make all explorer links work
* handle new moonbeamalpha config
* add moonbase alpha to chain user preferences
* more ocean.js v0.14 updates
* switch to grid
* upgrading ocean.js to 0.14.7
* lock to @oceanprotocol/contracts v0.5.16
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-04-29 14:48:57 +02:00
mihaisc
e4803fda9e
fix price value ( #544 )
...
* fix price value
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* proper price
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-04-21 18:03:13 +03:00
bdccb0966f
Web3/Ocean splitup + full Polygon/Matic support ( #433 )
2021-03-17 11:44:26 +01:00
Norby
b043eab047
Get pool shares using The Graph ( #360 )
...
* added graph query
* fixed negative liquidity value for input error
* used graph to get poolShares
* replaced total pool liquidity with user liquidity, get ddo on row
* get symbol from graph, calculate userLiquidity
* fixed userLiquidity price and sorted table by userLiquidity
* removed ordering by balance
* displayed pool and client liquidity, disabled table header hover
* order Your Liquidity before Pool Liquidity
* removed line height on asset title in pool shares table
* limit table to 5 rows, refactor liquidity comp, changed balance color
* code climate similar blocks fix
* changed lockedValue to valueLocked in pool shares query
* removed husky file
2021-02-10 17:16:24 +02:00
mihaisc
79715df435
Pool tx history ( #307 )
...
* graphql
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* ignore generated
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* delete generated
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix fetch
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix fetch
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update readme
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* pool creator liquidit& statistics
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* graph with the graph
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* cleanup
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update poll interval
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update graph url
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* ocean bump
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* run apollo codegen before starting gatsby
* put back graph loading state
* typing fix
* graph tweak, add error state
* readme update
* remove unused functions, move graph provider
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix package-lock
* fix graph when switching tabs
* generate apollo files into one folder
* fix loading
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* graph query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* tx query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix titles
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix text issues
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* local pagination
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* return refreshInterval to 10 sec
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix data set column
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-01-22 18:05:02 +01:00
mihaisc
273769388c
Pool statistics from the graph ( #288 )
...
* graphql
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* ignore generated
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* delete generated
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix fetch
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix fetch
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update readme
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* pool creator liquidit& statistics
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* graph with the graph
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* cleanup
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update poll interval
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update graph url
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* ocean bump
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* run apollo codegen before starting gatsby
* put back graph loading state
* typing fix
* graph tweak, add error state
* readme update
* remove unused functions, move graph provider
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix package-lock
* fix graph when switching tabs
* generate apollo files into one folder
* fix loading
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix codegen camelcase
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* bump apollo packages
* document subgraph usage, add example
* rewrite into Data Sources, add quick examples
* more data sources docs
* docs updates, typos
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-01-21 16:02:48 +01:00
960c5b3234
Update metadata, the proper way ( #292 )
...
* prototype view switching
* refactor, more UI
* formik form setup & data flow
* debug output, fixes, refactor
* description preview refactor
* publish/update date changes
* output created & updated date at top of asset
* use ddo.created & ddo.updated everywhere
* stop pushing metadata.main.datePublished
* owner check for edit link
* all the feedback states and switching between them: loading, error, success
* refactor feedback, one component for publish & edit
* action & date output fixes
* move all content, iterate form fields from it
* UI updates
* styling tweaks
* ddo dataflow refactor, more useAsset usage
* more useAsset usage
* form actions styling
* prepare edit history component
* metadata output tweaks
* copy
* safeguard against profile urls without protocol defined
* refetch ddo after edit
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* switch author for dataTokenOptions in metadata preview
* refactor
* copy
* showPricing fix
* validation: minimum characters for title & description
* disable submit button when validation fails
* form validation fixes
* manually trigger onChange validation in publish & edit forms
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-12-10 14:30:40 +01:00
f843641a45
More helpful output for Add Liquidity ( #277 )
...
* prototype
* add copy
* value update fixes
* calculation fun
* move copy
* move copy
* cleanup
* use Decimal
* fix
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
2020-12-02 12:44:07 +01:00
mihaisc
b5a11d6d0f
Handle price fetching better ( #265 )
...
* fix price refresh, add AssetProvider
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* price comment
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix trade
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix trade
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix pool liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix AssetProvider
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix import
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.log
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* pool refresh fix
* simplify, logging
* handle errors
* cleanup
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-11-20 14:31:28 +01:00
225613745c
hit Aquarius only when config is present ( #258 )
...
* hit Aquarius only when config is present
* more checks
2020-11-17 14:21:29 +01:00
7f2a5e7515
refresh interval tweaks ( #257 )
2020-11-17 13:10:12 +01:00
mihaisc
bb80c4df78
Swap tokens ( #204 )
...
* swap
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* validation and calculation
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactor
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove unused effect
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix interval
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* increase refresh timer, remove optional params
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* make inputs show up without wallet
* style fixes
* restyling
* styling
* more styling
* fix refresh price
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove test effect
* fixes, get data as early as possible from DDO and initial state
* refactor
* refactor
* refactor
* label tweaks
* copy
* typo
* prototype output
* remove price header
* ouput swap fee
* fix
* spacing
* copy
* refactor pool transaction titles
* copy
* update math
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* use messaging tweaks
* tab tweaks, output refactor
* fix dark mode selection style
* prototype output
* method tweaks
* slippage to 1%, added warnig banner
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* form tweaks
* error fix
* empty inputs by default
* longer intervals
* maxOcean validation fix
* slippage tolerance UI
* modified slippage UI
* refactor, refresh ocean user balance
* move typings/models around
* typing fix
* fixed output values
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* bump oceanlib
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.log
* remove placeholder
* tweak
* non-web3 browser tweak
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-11-16 16:21:15 +01:00
461fcaf8ae
Liquidity & price history graph ( #248 )
...
* graph prototype
* switch items
* liquidity history graph prototype
* more graph styling
* epoch times conversion
* get data in root component
* redraw fix
* more graph styling
* loading fix
* re-render fixes
* re-render fixes
* new Aquarius responses
* price graph and switch buttons
* spacing tweaks
2020-11-16 15:10:33 +01:00
mihaisc
f8a0ff41c3
purgatory updates ( #249 )
...
* purgatory updates
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* format
* update react hooks
* alert style, copy changes
* remove inverse style
* disable remove for purgatory owner
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove buy button for purgatory assets
* hide remove liquidity for owner
* query change
* query rollback
* query change
* query change
* query change
* change frontpage queries
* typings
* query refactor, make `all data sets` link work again
* footer fix
* test endpoint for stats
* fix pagination
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* partner query tweaks
* switch back market-stats endpoint
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-11-14 15:02:54 +01:00
9f211a14d9
output weights in pool statistics ( #218 )
...
* output weights in pool statistics
* switch to more simple output
* output weights only when present
2020-11-09 17:49:09 +01:00
be8307f34d
User pool transactions on asset details ( #193 )
...
* refactored pool transactions component, output pool transactions on asset details
* styling
* remove sticky around asset actions
* hasAddedLiquidity simplification
* owner from useMetadata
* refactor, styling, number formatting
* refactor
* toggle pattern
2020-11-02 19:18:21 +01:00
a5b7c66331
re-fetch pool numbers every 10 sec. ( #191 )
...
* re-fetch pool numbers every 10 sec.
* visual indicator
* refresh values on remove screen
* show indicator only when ocean connected
* put back await
2020-11-02 11:58:05 +01:00
08e2a3f22d
unify TokenList styles
2020-10-30 15:27:14 +01:00
0134610dbe
remove conversion display from pool price
2020-10-30 14:03:40 +01:00
mihaisc
5b3002fd82
add creator liquidity ( #178 )
...
* add creator liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove comments
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* check price update
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-10-30 14:39:00 +02:00
mihaisc
290e43199c
change weights ( #169 )
...
* change weights
* new defaults
* your liquidity fix
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-10-30 11:50:50 +01:00
mihaisc
d8dfe88e2a
refresh price and pool info ( #164 )
...
* refresh price and pool info
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* lib update
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove unused dependencies
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.log
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-10-29 15:53:27 +01:00
5a7488fa04
refactor add form
2020-10-26 20:54:07 +01:00
e14d4ad9e0
disabled buttons
2020-10-26 18:20:34 +01:00
99334f4d74
refactor pool data flow
2020-10-26 18:13:12 +01:00
6a7c6819e4
refactor EtherscanLink
2020-10-23 15:22:01 +02:00
a058af65f6
styling, content, datatoken info
2020-10-20 15:38:26 +02:00
287eea3c94
move all pool copy into content data file
2020-10-14 19:08:46 +02:00
207b61933a
combine both flows
2020-10-14 15:03:44 +02:00
1a71f0f66f
remove liquidity in OCEAN only
2020-10-14 15:03:44 +02:00
d7fed2deb5
make slider/output work
2020-10-14 15:03:44 +02:00
c068958513
use slider prototype
2020-10-14 15:03:44 +02:00
37b0f4f047
prototype
2020-10-14 15:03:43 +02:00
c1a0134c0a
bump ocean.js, totalSupply update
2020-10-14 10:36:16 +02:00
53188875c0
refactor
2020-10-12 13:29:18 +02:00
a629112ebb
cleanup
2020-10-12 12:40:14 +02:00
51ab425c35
refactor
2020-10-12 12:28:07 +02:00
80901b5bb4
new pool layout
2020-10-12 12:14:39 +02:00
753b5c2c9c
output pool shares by default
2020-10-12 11:41:05 +02:00
ed02d66609
output total pool liquidity
...
* convert everything in the pool to OCEAN, then convert to user currency
2020-10-08 17:56:26 +02:00
4b0f7c0042
typing fixes
2020-10-08 14:45:55 +02:00
50accc0065
refactor for new price
2020-10-08 14:32:59 +02:00
79ccff7905
output total pool liquidity value
2020-10-06 22:50:52 +02:00