1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 13:51:42 +02:00
Commit Graph

1361 Commits

Author SHA1 Message Date
b8c2b01b54
Pool stats updates and pool context provider (#1057)
* remove datatokens from liquidity stats, multiply base token

* naming: Pool Creator Statistics → Owner Liquidity

* remove all the noise

* more pool stats data

* simplify user liquidity data structure, remove datatoken calculations

* chart tweaks, new calculation for liquidity

* tweaks

* todo

* frontpage error fixes

* account switch fixes

* comment out fees

* pool context provider

* double pool share

* move subgraph-related methods into context provider

* typing fix
2022-02-07 14:58:47 +00:00
d51d909a66
disable all inputs during submission in add/remove liquidity (#1062) 2022-02-04 18:21:35 +00:00
24fd4de584
fix file info (#1061) 2022-02-04 15:58:11 +00:00
6ffb417724
use v4 label 2022-02-04 15:51:16 +00:00
64255f2b37
Remove asset purgatory workaround (#1056)
* revert asset purgatory workaround

* reverts #1016

* asset loading fix
2022-02-03 15:26:49 +00:00
8074a6143c
Refactor Asset context provider (#1055)
* refactor Asset context provider

* use useIsMounted hook

* typings and effect tweaks

* use chainId

* effect tweak
2022-02-03 14:31:43 +00:00
mihaisc
57be62a6b1
Refactor pricing and various components that are involved (#1046)
* update

* merge pr #1012

* fix header

* fix

* abort controller

* up next.8

* build fix

* update lock

* fix

* another fix

* ssh fix

* another ssh fix

* remove optional

* order mock

* small cleanup

* fix package

* price updates

* finish getPrice

* fix consume

* fix consume

* getConsumeDetails  comments

* restore functionality after consumeDetails

* fix some compute typings

* more price fetching updates

* 'minor' refactors and fixed build

* package-lock fix

* minor comments

* minor naming changes

* fix

* fix pool badge

* remove console.log
2022-02-03 03:29:39 -08:00
claudiaHash
77c4ed42cc
Pricing tab validation fix (#1015)
* pricing validation - visited tabs

* use step as number

* remove unused import

* use price empty field

* merge fixes

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-02 05:53:15 -08:00
ef6a5fda7f
calculate user liquidity with subgraph values (#1053) 2022-02-02 11:49:59 +00:00
2fb7ed3516
Merge pull request #1020 from oceanprotocol/v4-pool-graph
Pool chart updates, combine all pool data subgraph queries
2022-01-31 13:58:57 +00:00
claudiaHash
4b6be6da0c
Invalid transction link fix (#1035)
* get nft updates fix

* fix

* use nft update type

* message case fixed

* update message fix

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-31 13:15:52 +00:00
1eaec10ea9
center single data point 2022-01-31 12:42:23 +00:00
1c515496a9
fiix pool transaction titles 2022-01-31 12:42:23 +00:00
d4b42bf7a4
generated typing fix 2022-01-31 12:42:23 +00:00
9ebb57d2af
subgraph pool address type workaround 2022-01-31 12:42:23 +00:00
1e54a9d573
merge all the pool data subgraph queries into one 2022-01-31 12:42:23 +00:00
1e24972aa7
tooltip styling fixes 2022-01-31 12:42:23 +00:00
fde7449aad
typescript, yolo 2022-01-31 12:42:23 +00:00
5683d7b187
re-render fixes 2022-01-31 12:42:23 +00:00
7a5651e3a8
spacing, more file moving around 2022-01-31 12:42:22 +00:00
58f1c884de
split up fetching & data manipulation, refactor 2022-01-31 12:42:22 +00:00
1e4446116b
update and migrate to chart.js & react-chartjs new major versions 2022-01-31 12:42:22 +00:00
52437616f2
add volume graph 2022-01-31 12:42:22 +00:00
d43920548f
fix liquidity & price graph 2022-01-31 12:42:22 +00:00
8293e9ad5f
subgraph update fixes 2022-01-31 12:41:58 +00:00
2f6323f141
Merge pull request #1017 from oceanprotocol/v4-liquidity
Restore add/remove liquidity
2022-01-28 11:54:41 +00:00
claudiaHash
c0f87410c5
No file info shown for valid files (#1029)
* get asset file info

* additional verification, logs deleted

* fixes

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-28 11:49:14 +00:00
e113ba5300
V4-publish-fixes (#1030)
* tweak file URL input

* remove logging
2022-01-28 11:46:09 +00:00
9ce1f6f7d5
remove all the custom field change overwrites 2022-01-26 14:07:33 +00:00
a9aeed4aec
define token address & symbol only once 2022-01-26 12:41:21 +00:00
0db0bea3f6
more generic TokenApproval props, more logging 2022-01-26 12:06:09 +00:00
c10ca06dbc
fixes 2022-01-26 11:55:21 +00:00
08a691ceee
token approval & allowance fixes 2022-01-26 10:43:32 +00:00
8b31746e57
make remove output calculation work 2022-01-26 10:23:33 +00:00
bfdf7e1b24
prepare to use getAmountInExactOut 2022-01-26 10:23:33 +00:00
eaf29003c3
make remove work 2022-01-26 10:23:33 +00:00
a541cbcee0
refactor to use less hardcoded OCEAN
* ref #468
2022-01-26 10:23:33 +00:00
4dc188d3e4
add/remove baseToken only 2022-01-26 10:23:33 +00:00
c140cdc82c
restore submit methods, token approval workaround 2022-01-26 10:23:33 +00:00
0c5c8effde
restore live calculations 2022-01-26 10:23:33 +00:00
mihaisc
487bcad8b4
Update ocean.js (#1013)
* update

* merge pr #1012

* fix header

* fix

* abort controller

* up next.8

* build fix

* update lock

* fix

* another fix

* ssh fix

* another ssh fix

* remove optional
2022-01-26 10:17:41 +00:00
409f0c51fb
faulty purgatory response workaround (#1016) 2022-01-24 10:51:51 +00:00
f55d8d9a91
Pool tab refactor (#1009)
* refactor and simplify

* fix user pool transaction section

* split up fetching and data manipulation

* restore refetch after add/remove, rename all the things

* more naming and logging

* new state structure unifying multiple data structures

* another response failsafe

* naming
2022-01-21 14:09:15 +00:00
claudiaHash
42323cb8c4
Use asset's ddo.purgatory (#1006)
* set purgatory state

* merge v4 changes, use ddo.purgatory

* delete commented code, fix verification

* unused files and function deleted, small fix

* comment removed

* use purgatory.state for filtering assets

* remove unnecessary check

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-19 16:30:04 +00:00
2622a807f6
Subgraph updates (#1007)
* subgraph updates

* swap title fixes
2022-01-18 20:29:28 +00:00
claudiaHash
6689f55808
Fix: show test label according to network type (#1002)
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-17 19:47:03 +00:00
0129806159
pregenerate warning fix 2022-01-17 17:06:46 +00:00
44a0589420
remove subgraphError params 2022-01-17 14:14:01 +00:00
606654b533
more pool query refactor 2022-01-17 13:53:15 +00:00
f3c85ccb95
refactor PoolTransactions title component 2022-01-17 13:28:31 +00:00
5401390c44
simplify and refactor pool charts 2022-01-17 13:06:24 +00:00
25204b2393
graph sync status fix 2022-01-17 11:37:58 +00:00
4706029029
make datatoken balance work again in multiple places 2022-01-14 17:40:05 +00:00
c6011d29ef
fail safe against empty creator liquidity, just read out weights 2022-01-14 17:25:20 +00:00
8996722fcb
pool graph tinkering with poolSnapshots 2022-01-14 17:10:24 +00:00
c28cdd318f
add todo 2022-01-14 14:38:30 +00:00
ce4e0cfba5
market stats tinkering 2022-01-14 14:25:26 +00:00
1726fe1d0d
isolate apollo stuff into npm script, more generic folder name output 2022-01-13 23:50:47 +00:00
de87e16906
remove graphql-codegen stuff
* keep existing apollo-based generation as it just works
* can be put back from this commit when doing #722
2022-01-13 22:27:00 +00:00
68ad4cc160
migrate most components using GraphQL queries 2022-01-13 22:03:36 +00:00
d78676fa3b
migrate data in subgraph.ts 2022-01-13 21:41:19 +00:00
829333e1e1
migrate all subgraph.ts queries, making typings generation work 2022-01-13 21:24:06 +00:00
2af3b68603
migrate PoolTransactions queries 2022-01-13 20:10:55 +00:00
18d7223297
migrate Consume query 2022-01-13 19:31:46 +00:00
ca32de2dd7
migrate pool graph query 2022-01-13 19:26:15 +00:00
0dca59ac64
migrate metadata history query 2022-01-13 19:25:51 +00:00
c5583c691c
migrate Pool index query 2022-01-13 19:08:34 +00:00
76bb997fe1
start adapting queries 2022-01-13 18:38:51 +00:00
claudiaHash
8838ae533e
Adapt aquarius queries (#986)
* get aquariusv4 assets

* subgraph url fix

* make asset details work as much as possible

* sort and size fix, comments deleted

* get published assets

* search wip

* page change  fix

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-01-13 18:17:09 +00:00
2e794f51a8
use generateDtName from ocean.js (#992) 2022-01-13 17:51:33 +00:00
3bac4a1eb8
fix useGraphSyncStatus error 2022-01-13 17:51:08 +00:00
f6097bf158
remove OceanProvider (#988) 2022-01-13 13:15:15 +00:00
329ac9bbc3
shorten NFT symbol
* ref #944
2022-01-13 12:07:55 +00:00
181dce9ba5
publish feedback tweaks, make content switching based on price type work 2022-01-12 19:24:49 +00:00
25920b7763
more logging within createTokensAndPricing 2022-01-12 19:05:15 +00:00
5d40121adc output error messages in UI 2022-01-12 18:02:56 +00:00
bd561a2510 add basic full success state 2022-01-12 18:02:56 +00:00
8a20552268 more styling, button disabling, hack in isContinueDisabled
* closes #978
2022-01-12 18:02:56 +00:00
0b97994a9e spacing, styling, sizing 2022-01-12 18:02:56 +00:00
5f50379f63 tx link tweaks, output tx count beforehand 2022-01-12 18:02:56 +00:00
b139346b35 output transaction links 2022-01-12 18:02:56 +00:00
a65c971ea6 hack in our loader 2022-01-12 18:02:56 +00:00
e5ee3e10c7 working feedback state switching 2022-01-12 18:02:56 +00:00
82dce7e219 more UI elements and copy 2022-01-12 18:02:56 +00:00
claudiaHash
44114345bb
Integrate provider fileinfo (#965)
* provider functions added

* working validation

* fixes, comments deleted

* lint fix, comment deleted

* fixes over the provider functions integration

* remove unused provider.ts exports

* provider checkFileUrl() integration

* provider encrypt method changes

* use fetch method

* axios request reused

* dependency removed

* getFileInfo fixes

* remove unused const

* function call fix

* use providerUrl form value

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-12 17:02:47 +00:00
af99d3bc37
reactivate user balance check 2022-01-11 23:19:38 +00:00
245a604a99
prototype feedback data structure & flow 2022-01-11 23:11:15 +00:00
453458814e
move token & price creation into method 2022-01-11 22:18:33 +00:00
efb4cd5bbd
lint fix 2022-01-11 20:14:04 +00:00
a1c75c94fe
fix preview crash 2022-01-11 20:09:14 +00:00
a084c038c5
merge fixes 2022-01-11 19:58:39 +00:00
38ce25225f
Merge branch 'v4' into feature/publish 2022-01-11 19:49:11 +00:00
64a25f3f3e
use Asset from ocean.js, adapt to new structure 2022-01-11 19:45:14 +00:00
d9b52e6da5
Merge branch 'v4' into feature/publish 2022-01-11 19:06:16 +00:00
b5b0297ae4
refactor for new ocean.js, make the build work 2022-01-11 19:05:07 +00:00
fee5973f81
naming: NftOptions → NftMetadata 2022-01-11 15:40:40 +00:00
c3301fb437
NFT metadata updates
* switch to `image_data` instead of `image` key
* add `external_url` & `background_color`
* make following OpenSea standard more clear
* ref #944
2022-01-11 14:52:01 +00:00
a235255cc0
Merge branch 'v4' into feature/publish 2022-01-11 13:23:40 +00:00
e87bdfadfc
activate form validation 2022-01-11 13:13:13 +00:00
9e315a71f1
Merge pull request #960 from oceanprotocol/fix/issue948-remove-dependency
Integrate provider isValidUrl()
2022-01-11 13:12:03 +00:00