Bogdan Fazakas
50b1af53ac
fix compute status text display
2022-05-16 08:08:15 +03:00
Bogdan Fazakas
feb1f41d5c
fix conditions and cleanups
2022-05-16 07:57:48 +03:00
Bogdan Fazakas
be21be9559
order fixes
2022-05-13 10:27:41 +03:00
Bogdan Fazakas
936985a0f8
merge v4
2022-05-12 14:42:28 +03:00
Bogdan Fazakas
15af847a9c
wip compute initialize
2022-05-12 14:39:14 +03:00
5f3ee32ca2
Test setup tweaks ( #1415 )
...
* unused package cleanup
* make storybook use webpack 5
* see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#webpack-5
* bump react, cleanup
* button story tweaks
* add Alert stories
* bump Jest to v28.1.0
* try original storyshots initialization
* split up build & test CI jobs
* stop testing Node.js v14
* set jest coverage flag
* downgrade paambaati/codeclimate-action again
* move jest config files, remove coverageReporter override
* collect coverage from `src/` only
* another paambaati/codeclimate-action bump test
* create additional button markup test
* downgrade paambaati/codeclimate-action again
* more downgrade
* render default button without optional style prop
* ignore some folders for Jest
* full coverage for Alert
* more package updates
* add eslint-plugin-testing-library & eslint-plugin-jest-dom
* bump ESLint packages, follow new rules
* start storybook in quiet mode
* update docs
* test storybook build as part of CI
* more testing docs clarification
* add jest:watch command
* add body background colors switch in toolbar
* TypeScript voodoo
* test codeclimate-action@v2.7.3 for default coverageCommand
* downgrade codeclimate-action and running in debug mode
* make coverage artifacts OS agnostic
* subgraph typings as artifact for coverage job
* disable coverage sending job for now
Co-authored-by: Enzo Vezzaro <enzo-vezzaro@live.it>
2022-05-12 11:35:07 +01:00
Jamie Hewitt
8819a66e67
Remove risks warning ( #1420 )
...
* Removing risks warning from add liquidity tab
* Removing risks warning from add trade tab
* Removing isWarningAccepted state variable
2022-05-11 13:29:07 +01:00
mihaisc
aa54795c2b
add decimals to pool calls ( #1393 )
...
* add decimals to pool calls
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix lock
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix ssh
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update ocean
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update ocean
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove screen fixes
* update lib, contracts
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix package-lock
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-05-10 14:19:41 +03:00
EnzoVezzaro
1fcc3b1356
sanitize urls as code scanning suggestions ( #1412 )
...
* sanitize url on DebugEditMetadata as code scanning suggestion
* sanitize urls
2022-05-10 10:11:53 +01:00
Bogdan Fazakas
ab48abe73c
merge feature/v4 into feature/v4-c2d
2022-05-05 17:09:33 +03:00
Bogdan Fazakas
692fb509f6
fix compute jobs table auto refresh and details modal closing
2022-05-05 17:06:11 +03:00
claudiaHash
6324e85b0f
Incorrect wallet balance on trade tab fix ( #1310 )
...
* display the actual base token wallet amount
* delete logs
* balance dt fix
* width changes
* remove last commit changes
* sell values
* balance fix for dt item
* logs and comments removed
* fix max calculations
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* disable inputs on trade actions
* clear inputs after submit and catch tx errors
* fix dep
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fetch reserver from contracts
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix null and tag key
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* label change and cleanup
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Enzo Vezzaro <enzo-vezzaro@live.it>
2022-05-05 15:14:37 +03:00
EnzoVezzaro
1ed3fd8a04
added enableReinitialize to update price value on edit view ( #1385 )
2022-05-05 12:48:52 +01:00
Bogdan Fazakas
dff4a0ca1c
merge feature/v4 into feature/v4-c2d
2022-05-04 15:55:59 +03:00
Bogdan Fazakas
83c271dbab
fix selecting algorithms when on different network
2022-05-04 14:04:06 +03:00
Bogdan Fazakas
86c7e7f7cc
fix algo with pool price and fees fetching
2022-05-04 11:27:44 +03:00
EnzoVezzaro
23f256b36c
added optional chaining to oceanConfig ( #1380 )
2022-05-03 11:15:39 +01:00
Jamie Hewitt
4fd310cf6e
Converting accountId and owner to lowercase for the comparison to avoid problems caused by inconsistent cases ( #1377 )
...
* Showing loader on the edit formm until everything has loaded
* Changing logic so that loader is the fallback
* Making sure account Ids are in lowercase when comparing them
* Fix crash when no account is connected
2022-05-03 11:42:41 +03:00
Bogdan Fazakas
31a7703822
more decimal fixes
2022-05-03 11:14:00 +03:00
Bogdan Fazakas
5030b346e1
partial fix for asset with pool fees, algo not working yet
2022-05-02 18:46:32 +03:00
Bogdan Fazakas
f3fabdd3d9
some decimal fixes
2022-05-02 17:36:51 +03:00
Bogdan Fazakas
06dde32177
removed swp file
2022-05-02 15:12:27 +03:00
Bogdan Fazakas
ff353753ba
show token symbol for free assets also on compute price output
2022-05-02 14:26:39 +03:00
Bogdan Fazakas
e8fc728523
fix compute form
2022-05-02 11:15:50 +03:00
Bogdan Fazakas
e23e4b6b97
merge feature/v4 into feature/v4-c2d fix conflicts
2022-05-02 09:25:18 +03:00
mihaisc
2107eab979
Fix order and price ( #1375 )
...
* fix loading
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add order fee
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix opc
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove cache from urql
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update urlq dep
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update urlq dep
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix lock
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix states
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-29 21:14:14 +02:00
Bogdan Fazakas
72bf0da6c5
disable edit compute settings for algorithms
2022-04-29 10:30:55 +03:00
Bogdan Fazakas
759c9332a0
fix your compute jobs section when asset network not selected
2022-04-29 10:18:26 +03:00
Bogdan Fazakas
ad9ecd034c
fix conflicts
2022-04-28 14:59:30 +03:00
Bogdan Fazakas
09fcd6ac30
fix build
2022-04-28 14:43:02 +03:00
EnzoVezzaro
6ef2082724
restore order for assets with fixed pricing ( #1360 )
...
* restore button if there's not pool data
* restore order for fixed pricing and download button after purchase
* minor fixes
- avoid errors when providerFee is null
- fix disabled download/buy button when user is on different network as asset's
* added improvements
2022-04-28 13:35:00 +02:00
Bogdan Fazakas
290e339fb1
merge feature/v4 into feature/v4-c2d
2022-04-28 10:18:20 +03:00
Bogdan Fazakas
6bb4466d4a
merge feature/v4 into feature/v4-c2dr
2022-04-28 10:11:19 +03:00
Jamie Hewitt
8271963292
Making error message more generic ( #1368 )
2022-04-27 16:28:02 +02:00
ce07740ef8
remove loading feedback during price fetching ( #1361 )
2022-04-27 08:50:17 +02:00
mihaisc
d1e21b7f03
Various fixes in the pool component ( #1327 )
...
* remove legacy check to prevent rug pull
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* various fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove old prop
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove old prop
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add expected output to remove
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.logs
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix max calculations
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactors
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* temp fixes for build
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* local calc for pice and liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove var
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix profile liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* global context, opc fee
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* comment
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* various fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactor global context
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove nesting from market context
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix build
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix undefined appConfig
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* direct import of appConfig & siteContent
* this never changes on run time, so we should never have to wait for it and have it in js bundle at all times
* in utility methods, import directly
* for components, import directly in MarketMetadata context and pass through
* remove screen CSS fixes
* put back auto-fetching indicator, move manual refresh action behind debug
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-04-22 02:38:35 +02:00
Bogdan Fazakas
ef744c1a2c
Add reuse order in start compute flow ( #1352 )
...
* wip add reuse order logic
* add reuse order in start job
* added missing check if no jobs found
* update lib
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix lint
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-21 17:30:12 +03:00
Bogdan Fazakas
3b535aadb8
use zero adress for price and fees order
2022-04-19 09:32:10 +03:00
Bogdan Fazakas
0b1d9cc436
merge v4 into v4-c2d
2022-04-15 12:04:49 +03:00
claudiaHash
1256c20904
Trade input accepts decimals with leading 0 ( #1294 )
...
* input accepts number with leading 0 decimals
* input fields changes
* value type fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-04-13 18:24:19 +03:00
Bogdan Fazakas
6d544cc0ba
refactor setting price and fees for assets
2022-04-06 12:17:28 +03:00
f2e7db0260
Pool components UI refactor ( #1295 )
...
* reorder UI
* refactor with new PoolSection component
* move all the things
* layout tweaks
* fix pool data without wallet
* fix undefined user pool share
* fix max remove calculation
* make conversion use our decimals definition
2022-04-06 11:47:41 +03:00
Bogdan Fazakas
0c87abe24d
Merge branch 'v4' into feature/v4-c2d
2022-04-04 15:19:31 +03:00
EnzoVezzaro
47144d80b5
fix remove liquidity issues ( #1258 )
...
* reset slider after transaction
* fix issue on remove button hover
* restore transform on Button.module.css
* added check on accountId to avoid failing calls
* disable remove button on amountPercent = 0
2022-04-01 11:22:38 +03:00
Soon Huat
31167856fc
include loading when calculating data + algo price, tooltip show order price
2022-03-31 23:55:22 +08:00
mihaisc
45dad876e2
fix pool tx ( #1288 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-03-31 12:50:32 +01:00
claudiaHash
eb3ddcee90
Undefined graph labels fix ( #1283 )
...
* get format price
* added price format fix, removed logs
* remove all commas from the price string
* space fixes
* fix
* fix locale in graph, undo price fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2022-03-31 12:49:15 +01:00
Soon Huat
795ba0c01b
c2d show price with fee, exclude provider fee
2022-03-30 22:44:10 +08:00
Bogdan Fazakas
d244b9b394
merge v4 into v4-c2d
2022-03-30 14:40:53 +03:00
Norbi
aa4bdda207
display token approval message on loading ( #1280 )
2022-03-30 11:30:41 +01:00