* 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
* 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>
* feat: set NFT metadata and tokenURI in a single transaction
* feat: move token uri encoding in second publish transaction
* feat: add final asset did in tokenURI
* fix: edit metadata and computeDataset submit functions
* feat: extract decodeTokenURI function
* fix: revert to previous metadata edit flow
* fix: revert to generateNftCreateData
* feat: add final asset link in tokenURI description
* fix set access inside publish form
* added initial value for service access to fix continue button disabled
* removed compute environment options field
* removed compute options from form.json
* update access and algorithmPrivacy fields based on asset type
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* 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>
* use fixed and pool swap fees from app config inside publish form price
* get opc fees from subgraph
* fixed undefined opcFees
* fixed get opc fees query
* removed logs, unused imports and added types
* remove unused import
* fetch opc fees from wallet network
* use fallback chainId and add chainId to dependencies array
* get app config from site metadata
* fixed getOpcFees typo
* changed community fee field value
* show results
* sales number displayed correctly
* get downloads
* use totalSales parameter
* fixes
* sum sales fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
* start with a good refactor
* split up into multiple files
* split up data fetching and manipulation into multiple effects
* adapt for new subgraph
* bookmarks error fixes
* make numbers show up when a subgraph is down
* use testnets, make numbers show up
* style fixes
* making sense of existing numbers
* more stats
* use original total OCEAN
* output datatokenCount
* state data structure change for all sum values
* copy
* output networks at all times
* switch to mainnets numbers
* added confirm checkbox and connect logic to wizard
* add 'accessDetails' to displayed asset
* restore initial state
* adding 'freeAgreement' option to constants
* moved checkbox for free item aggreament
* improvement on amountDataToken validation
* change Field component with Input and improve UI
* change `onChange` property with `useField` hook
* switch back to Formik Field
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* 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
* 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.