EnzoVezzaro
926838862a
Fix No error message for swapping more than max tokens ( #1230 )
...
* moved Error (field) component in shared components
- moved Error.tsx from Pricing
- change paths to Error.tsx in publish
* added Error component with field validation
* change setTimeout with lodash.debounce
2022-03-22 15:50:51 +00:00
69c3db2caa
SEO & favicon fixes ( #1229 )
...
* fix URLs and title
* solve all favicon things
* image optimizations through ImageOptim
* typing fix
2022-03-22 14:57:33 +00:00
Norbi
d1d24ef4d5
disable price calculation for free price ( #1198 )
...
* disable price calculation for free price
* make file icon visible on component mount
* check if accessDetails are present
2022-03-18 13:22:26 +00:00
Moritz Kirstein
9d1b7794a3
Feat: Display NFT in asset details ( #1125 )
...
* feat: add decodeTokenUri helper
* refactor: restructure of MetaMain component
* feat: add nft tooltip
* feat: add opensea link for nfts
* style: adjust nft image size in tooltip
* feat: add nft data to publish preview
* fix: readd owner to nft metadata
* refactor: conditional display of nft tooltip
* style: fix link styles in nft tooltip
* feat: add placeholder graphic as fallback if nft data does not contain one
* fix: display openSea link only on supported networks
* fix: rename ddo props to asset in metamain related components
* feat: add original publisher to asset details
* chore: remove unused imports
* fix: remove unused prop
* feat: convert publisher address to checksum address
* chore: remove console.error when decoding tokenURI
* Revert "chore: remove console.error when decoding tokenURI"
This reverts commit f387175970
.
* feat: shorten nft address in tooltip preview
* fix: use Web3.utils instead of the actual web3 instance to convert wei in ether
Co-authored-by: Luca Milanese <luca.milanese90@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-16 19:01:51 +00:00
cfd31905dd
Fix profile image ( #1172 )
...
* tinker
* use !important
2022-03-09 14:12:48 +00:00
claudiaHash
4331c24c0d
Restore Pool Shares section ( #1139 )
...
* get poolShares dt addresses
* style fixes
* class names fix
* remove useless changes
* fix
* try/catch blocks, loading fix
* show pool shares fix
* delete logs, fix build
* more try/catch blocks
* check subgraph url, add try/catch block
* fixes
* pool fields fix
* minor code fixes
* fix subgraph fetch
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove unused function, fixes
* use LoggerInstance, remove useless setter
* error messages fix, get rid of dt column
* small tweaks and tests
* fixes
* fixes
* modified flow for pool shares
* loading UX fixes
* unified calculations for pool liquidity
* stop the refetch madness
* profile provider already sets interval fetching for pool shares
* pool shares will change when chainIds, accountId is changed so no need to listen for changes again
* calculation tweaks
* pool stats tweak
* fix pool transactions
* fix data display in pool shares section
* minor fix, delete comment
* subgraph typings generation fix
* pool stats display tweaks
* price sizing fix
* rabbit hole fixes
* more price UI fixes
* cleanup
* wording consistency
* render all frontpage sections by default, load in assets after
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-09 12:58:54 +00:00
claudiaHash
8a5bddbf6e
Restore trade tab ( #1047 )
...
* get swap fee, max values
* use baseToken instead of ocean
* build fixes
* set form trade tx - WIP
* use pool info
* logs deleted
* merge fixes
* use local ocean.js, get spot price
* handle value changes, logs deleted
* fixes after v4 merge
* valid user liquidity displayed
* get correct token amount
* more fixes
* form trade fixes
* positive input values fix
* use proper swap functions
* use appConfig's marketFeeAddress
* remove redundant setters
* use consumeMarketPoolSwapFee
* use poolInfo, remove log
* code fixes
* some more fixes
* fees fix
* use poolInfo data
* various fixes
* fixes and cleanup
* fix build
* partial decimal fix
* add swap fee
* fix sub updates
* remove console
* fix package
* fix package-lock
* remove ssh
* fix blockies and package
* fix comments
* remove unused var
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2022-03-03 10:49:04 +00:00
claudiaHash
b63c644962
Collect tokens by publisher ( #1120 )
...
* get tokens balance wip
* use ButtonBuy component
* collect and sum base tokens
* delete logs, get tx
* center button
* feedback and loader added
* query by exchangeId
* fixes
* correct token symbol, set balance to 0 after collect
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-25 02:36:32 -08:00
Bogdan Fazakas
73f3080daf
Restore edit functionality ( #1107 )
...
* add content on edit pages
* display edit for user only
* add form actions
* add restore part of edit metadata logic
* adjust edit metadata
* wip edit compute settings
* added console logs
* wip edit compute
* updated edit compute flow
* updated style
* fix pricing various fixes
* fix edit acctions
* add debug on edit compute tab
* add debug on edit metadata tab
* more fixes
* lint fixes
* add pricing to edit metada
* restore timout edit
* protect edit route
* small fixes
* fixes and add edit feetback, loading, error, succes on submit
* timeout init values fix
* added setNftMetadata helper
* moved transfor asset to assetSelection from aquarius class
* fixed links, removed dispenser hacks
* fixed sample
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2022-02-25 02:33:07 -08:00
EnzoVezzaro
8599835be4
remove unnecessary appearance ( #1142 )
2022-02-24 07:17:54 -08:00
d2fb4db7c6
revised asset not found message ( #1124 )
2022-02-17 21:37:59 +00:00
EnzoVezzaro
ab73a5b5d9
Mobile publish fixes ( #1076 )
...
* aligned inputs for mobile
* correction for mobile first approch
* change nft layout on publish mobile (metadata section)
* align datatokens view on publish widzard for mobile
* remove unnecessary margin around nft, datatoken UI
* reduce min-width for xs viewports
* fix mobile layout for pricing tab / submit tab on publish
2022-02-17 16:03:27 +00:00
mihaisc
8d1782a800
Restore order ( #1068 )
...
* minor refactors
* minor refactors
* fixes
* buy dt
* consumePrice + estimation
* various fixes
* cleanup
* fix build
* fix ssh issue
* feedback
* build fix
* ssh fix
* remove console.log
* suggested fixes
* other fixes
* switch to decimal
* more fixes
* more fixes
* fix
* some fee refactors
* more fee refactoring
* lib update, fre rename
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* minor refactors
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* build fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update + more refactoring
* calc price
* fix build
* restore accountId in effect
* fix order
* fix build and update lib
* fix order index
* fix comments
* pool fix
* remove console.log
* fix order fixed rate exchange
* fixed free order and messaging
* add comment
* minor type fix
* more type fixes
2022-02-14 08:27:36 -08:00
EnzoVezzaro
c438ba0a04
Fix mapping in search component and ux improvements ( #1092 )
...
* clear search input after submit
* fix mapping on sorting by tag (search query)
* fix property of undefined errors
* Revert "clear search input after submit"
This reverts commit 93dd57ae0b
.
2022-02-14 15:33:46 +00:00
Moritz Kirstein
d688b81a80
Feature: SVG Generator ( #1032 )
...
* use smaller SVG for publishing test, siwtch to Buffer encoding/decoding
* shorter NFT name & symbol
* fix: fix small test svg
* feat: first draft random wave svg generation
* refactor: utilize join to remove unecessary ',' separator
* feature: add gas cost estimation for nft artwork
* refacotr: allow fillColor as array and adjust opacity
* refactor: adjust random wave generation
* refactor: change nft help text
* refactor: trying tooltip for nft image info
* feat: add custom algorithm to generate svg waves
* fix: use text colors for nft form field svgs
* refactor: code cleanup nft utils
* refactor: improve readability
* refactor: improve comment
* refactor: (re)move comments, cleanup
* refactor: remove console log
* refactor: adjust default svg wave values & remove logging
* refactor: tweak default SvgWave prop values
* fix: svg preview with disconnected wallet
* feat: show artwork gas fee estimation in user preferred currency
* refactor: extract gas fee estimation logic to new component
* cleanup: remove oceanWaves, remove d3
* icon visual weight tweak
Co-authored-by: Luca Milanese <luca.milanese90@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-02-14 12:16:29 +00:00
EnzoVezzaro
e2c468c128
added radio to pricing tabs on publish ( #1067 )
...
* added radio to pricing tabs on publish
* adding padding to tabs with radio
* correct unnecessary component and style class
* adding attribute selector to css rule
2022-02-10 14:37:34 +00:00
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
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
1c515496a9
fiix pool transaction titles
2022-01-31 12:42:23 +00:00
2f6323f141
Merge pull request #1017 from oceanprotocol/v4-liquidity
...
Restore add/remove liquidity
2022-01-28 11:54:41 +00:00
e113ba5300
V4-publish-fixes ( #1030 )
...
* tweak file URL input
* remove logging
2022-01-28 11:46:09 +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
c140cdc82c
restore submit methods, token approval workaround
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
2622a807f6
Subgraph updates ( #1007 )
...
* subgraph updates
* swap title fixes
2022-01-18 20:29:28 +00:00
44a0589420
remove subgraphError params
2022-01-17 14:14:01 +00:00
f3c85ccb95
refactor PoolTransactions title component
2022-01-17 13:28:31 +00:00
1726fe1d0d
isolate apollo stuff into npm script, more generic folder name output
2022-01-13 23:50:47 +00:00
68ad4cc160
migrate most components using GraphQL queries
2022-01-13 22:03:36 +00:00
2af3b68603
migrate PoolTransactions queries
2022-01-13 20:10:55 +00:00
2e794f51a8
use generateDtName from ocean.js ( #992 )
2022-01-13 17:51:33 +00:00
f6097bf158
remove OceanProvider ( #988 )
2022-01-13 13:15:15 +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
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
ClaudiaHolhos
5050621e28
isValidUrl called directly, extra function removed
2022-01-10 12:13:53 +02:00
mihaisc
c9faca8666
fixes
2021-12-23 14:36:22 +02:00
ClaudiaHolhos
6813462cb0
use new provider
2021-12-13 17:23:29 +02:00
mihaisc
4caf72d0c9
Fix/old lib dep ( #959 )
...
* fixes
* change aqua url
* update future v4 url
2021-12-10 03:33:47 -08:00
mihaisc
b0adbf8071
add account teaser, various refactors ( #957 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-12-10 01:50:00 -08:00
06dca21d47
refactor all the URL inputs
2021-11-25 14:16:42 +00:00
1566051545
add todo
2021-11-24 16:15:47 +00:00
155d65eb58
reorg
2021-11-24 13:31:23 +00:00
5bf8543150
refactor all the URL inputs
...
* only act on user action, we were firing events left and right on every keystroke
* remove all local state management, the field has the value already
* add success state for provider input
2021-11-24 12:29:14 +00:00
a313f39494
file input validation fixes
2021-11-23 15:34:43 +00:00
c484a5b40c
new publish preview ( #947 )
...
* refactor preview
* make preview render
* more preview elements, proper debug output
* make more elements work
* cleanup and fixes
* make asset actions preview work, kinda
* more fixes
* reorg
* make preview price display work
* fix timeout
* layout tweaks
* fixes
* another fix
* make file info preview work
* empty render fix
2021-11-23 12:53:09 +00:00
d3810168aa
first go at randomly-generated ocean waves
2021-11-16 21:06:02 +00:00
08c42e8fa6
prepare NFT image creation
2021-11-15 20:47:59 +00:00
34bb90b717
box selection active style tweaks
2021-11-15 18:38:26 +00:00
82951548ef
reorg Form components one level up
2021-11-15 18:29:20 +00:00
c177657f87
asset type icons
2021-11-15 18:24:31 +00:00
fc1966aa4e
copy
2021-11-15 15:42:50 +00:00
b41e15a92e
fix BoxSelection fields checked state
2021-11-15 15:19:50 +00:00
94147026c0
prepare datatoken & NFT display
2021-11-15 15:04:26 +00:00
704b52a3c4
more publish flow preparation
...
* consolidate scattered methods into publish utils
* new encrypt method
* remove DDO File typings
2021-11-11 13:40:38 +00:00
3d4b30c00f
new DDO ( #941 )
...
* type out new DDO
* remove all DDO ocean.js imports
* move over as much as possible to new DDO structure
* DDO/Asset split-up
* use Asset typing instead of DDO almost everywhere
* more typings
* more DDO refactor
* ddo typings updates
* more DDO updates
* updates
* ddo updates
2021-11-11 07:51:13 +00:00
4495a998d9
field fixes
2021-11-01 17:35:50 +01:00
b28f7992dd
fix required/tooltip icon order
2021-11-01 15:57:00 +01:00
f4eab6e09a
more wizard refactors, functional navigation steps
2021-11-01 15:45:01 +01:00
235d8333eb
pricing defaults changes, fixes
2021-10-29 11:29:56 +01:00
228b09098a
make form error display kinda work
2021-10-28 16:34:46 +01:00
778abc8aeb
more fields, more custom onChange handler removals
2021-10-28 11:47:03 +01:00
66adc097b6
declarative metadata & services form setup, prepare transformPublishFormToDdo method
2021-10-28 10:38:40 +01:00
9960742b37
make all pricing forms work again, retain data between tabs
2021-10-27 18:35:21 +01:00
f2b1a33261
restructure form, dial back on overwriting native Formik functionality
2021-10-27 18:35:18 +01:00
99453623d2
new publish form data setup
2021-10-27 18:35:04 +01:00
70470a9459
more refactor
2021-10-27 18:35:01 +01:00
c023f45138
reorganize all the things
2021-10-27 18:34:37 +01:00
3729c63581
migrate to Next.js ( #935 )
...
* migrate to Next.js
* migrate scripts
* generate markdown pages
* make all the markdown work
* fix profile, fix image loading
* git+ssh → git+https, again
* bump packages
* maybe windows build fix
* add public to gitignore
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* Next.js v12! Webpack 5! No build hacks anymore
* json import fixes
* fixes
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-10-27 11:30:32 +01:00
032b3e1496
quick refactor of AssetList data flow
2021-10-27 11:30:32 +01:00
b6cfe6de34
more refactor
2021-10-27 11:30:28 +01:00
51785d54dd
more reorganization
2021-10-27 11:29:03 +01:00
1d4917817a
remove everything we do not expose in our live market
2021-10-27 11:29:03 +01:00
f951910dc2
reorganize all the things
2021-10-27 11:28:59 +01:00