* 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
* 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
* 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
* use isMounted hook
* PoolTransactions display fix
* removed unnecessary hook
* get results after loading
* no network seleted
* compute jobs history fixes
* display correct message if no result found
* pool shares loading fix
* pool transactions loading fix
* transactions loading fix
* disable add liquidity input when not asset network
* clear amount on coin selection change
* fix switch token error
* disable trade tab inputs when not connected to asset network
* disable inputs and buttons inside remove when not connected
* remove ocean function calls when not connected to asset network
* fix send undefined as string inside Trade component to TokenApproval
* return from calculatePoolShares function if no wallet connected
* set amount on use max button click, use 3 digits after decimal
* use elastic search to get all ddo's at once
* fix get ddo's list function and get names in one query
* reorder ddo list based on did list order
* remove inPurgatory filter
* fix broken aquarius query
* remove getAssetsFromDidList function and use retrieveDDOListByDIDs
* fetch list of ddos
* use RegExp
* fix broken query on empty did or chainId list
* use elastic search to get all ddo's at once
* fix get ddo's list function and get names in one query
* reorder ddo list based on did list order
* remove inPurgatory filter
* fix broken aquarius query
* remove getAssetsFromDidList function and use retrieveDDOListByDIDs
* use RegExp
* add energy web
* add energyweb
* maybe fix that damn git+ssh problem
* remove unneccessary name overwrite
* add Energy Web Chain icon
* fix all datatoken links
* base on ddo.chainId
* check for more networks
* closes#910
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* prototype getting ENS names
* get ENS name with subgraph
* ENS name for publisher line
* inject ENS name in profile page
* refactor to cover all use cases for profile URLs
* fixes for switching between own and other profiles
* remove testing ENS libraries
* more cleanup
* any solves everything
* build fix
* more profile switching tweaks
* link publisher line to ens name
* another profile switching fix
* show ENS link in meta line
* handle to many results
* update search test
* get transaction history based on ddo chainId
* revert last commit
* changed title and description
* reduce paragraphs
* added constant for maximum number of pages
* label renaming, add total user liquidity
* new useProfile provider
* centralize pool shares fetching
* add some assets fetching to profile provider
* move 3box profile fetching, check passed accountId
* cancel token fixes
* remove publisher on published assets list
* more cancel token fixes
* prevent asset name double fetching in pool shares
* prevent asset name double fetching in downloads
* prevent asset name double fetching in pool transactions
* more cancel token fixes
* refetch crash fix
* another pool shares refetch fix
* pool transactions data flow refactor
* Add total downloads, speed up downloads fetching (#849)
* add total downloads
* replace multiple retrieveDDO with one single request
* getAssetsFromDidList() helper
* fix mixed up timestamps
* data structure based on tokenOrders
* add logging
* add tooltip to downloads, small NumberUnit refactor
* safeguard against passed empty didList
* deal with plural/singular in labels
* get order history based on ddo chainId
* disabled consume when not connected to wallet, refetch orders on connect
* disable create price button if not assetNetwork
* get previous orders on order action
* get all neded data for the header from 3box, aqua and subgraph
* fix tvl display error
* WIP metadata header styling
* added more styling for the header
* make page title optional so we can remove it on account page
* stroke change for svg images and default values
* more styling added to the header
* fixed linter
* added ocean balance to tvl
* update styling for statistcs
* fixed eror for go to my account from another account page
* updated styling for mobile use
* wip show more on explorer links and description
* properly display read more for explorer links and description
* replaced show more with 3box redirect on description
* change accounts default picture and check links length before display element
* use optional on links
* grid cleanup, new number unit, split up stats
* rename all the things, more profile header styling
* visual hierarchy, improve image loading experience
* layout flow & visual tweaks
* more description
* replaced account route with profile when accesing a profile by the eth address
* use account id from url if exists when fetching data
* bump @oceanprotocol/art to v3.2.0
* styling, fallbacks, edge case fixes
* clean up Publisher atom, link to profile page
* fixed issue when switching to my profile from another profile
* output accountId, make it copyable, remove stats icons
* render tweaks, markup cleanup
* add 3box reference
* mobile tabs spacing tweaks
* text flow and spacing tweaks
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* show isBalanceSufficient warning only on Use tab
* show warning icon when both isAssetNetwork and isGraphSynced are false
* refactor display messages code fix order and icon issues
* moved isBalanceSufficient message handle from Web3Feedback to ButtonBuy
* more refactoring, improve feedback message change
* fix isBalanceSufficient for buying a compute job
* fix lint error
* WIP
* calculate price impact by subtracting tokens fiat values
* get and use spotPrice for price impact calculation, use Decimal
* set impact to 0 if input and output values are undefined
* move price impact to a new component
* turn price impact value color to red if grater than 5
* add tooltip to price impact and slippage
* removed fiat price
* change formula
* remove console.log
* don't block add liquidity button
* typos
* proper text alignment
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* timeout value fix
* change timeout options by access type
* fix timeout field value setting
* string replaced by constant
* timeout value changed for no timeout set
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* displayed compute jobs on asset detail page
* filter compute jobs by datatoken address
* lint error fix
* changed query name for selecting compute orders by datatoken
* renamed Transactions component and moved it outside Pool directory
* style compose path fix
* query just one subgraph based on ddo chainId
* fixed displayed columns, added Finished column, table scroll fix
* changed AssetActionsHistoryTable titles
* made tabel cell width smaller
* fix publish form submit button
* directly use generateDatatokenName from ocean.js
* bump ocean.js to v0.17.0
* fix all the publish things
* wrap OceanProvider around publish page
* initiate Ocean from usePublish hook
* external link get oceanConfing when undefined, use chainId for pools
* pass chainId to editHistory explorerLinks
* remove ddo check from Pool explorer link
* removed chainId verfication from datatoken external link path
* add Gaia-X chainId verification to pool datatoken external link
* add chainId check for Moonbeam
* add BSC to default chains
* searchbar visual tweaks
* race condition fix
* network name tweaks
* beta → v3
* use publish form titles to inform about network
* form actions refactor
* simplify network name on asset details
* visual indicator for selected chains on button
* lint fix
* more layout flow tinkering, collapsed search by default
* search field layout tweaks
* unknown network/gaia-x name fixes
* put back search cancel button in webkit
* space fixes
* cross browser visual fixes
* multiple graphs queried
* multiple graphs queried
WIP
* fixes
* urql provider added
* urql used in downloads tab
* wip on downloads, pool shares and compute orders
* OperationContext added
* urql client query used
* added method for query multiple subgraphs
* get multiple subgraphs data
* aqua changes integrated
* published and poolTransaction tabs data correctly fetched
* poolTransaction symbol taken from Subgraph
* Downloads loading fixed, logs deleted
* compute history partial fix
* fetch data after deselecting network fix, logs deleted
* changes after Multinetwork branch merge
* ddo usage and config removed
* get out symbol fix, unused imports deleted
* loading data fix
* console log removed
* loading data with no wallet connected fix
* no wallet connected and empty result message updated
* NetworkName added on table
* explorer link fix for pool transactions
* NetworkName added in PoolTransactions table
* transactions and downloads sorted by timestamp
* pool shares and compute jobs sorted by timestamp
* use transaction network id for explorer link
* pool transactions refetch
* pool shares refetch
* stop re-displaying table data if no changes on refetch
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
Co-authored-by: Norbert <katunanorbert@gmail.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
* check the maximum available datatoken to receive before buy compute or consume
* added previous order check in disable buy button logic when max dt in pool is bellow 1 datatoken
* fixed lint errors
* hide seccond message if one of the assets in compute has low liquidity
* updated pool history and pool liquidity graph queries
* fixed lint errors
* fixed graph issues
* refatch graph every 10s
* refetch liquidity info and fixed typo's
* cleared refetch intervals when unmounting pool and graph compoments on assets detail page
* wip added check chainId check for asset selection list
* updated condition and update oceanJs lib
* update lock file
* removed config metadatacacheUri since it was not used anymore
* refactor get only chain algos from aqua
* manually added lock file from multinetwork branch
* 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>
* 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>
* wip
* get latest assets from multiple networks
* updated queryMetadata function in components
* added new multinetwork aquarius api
* Use ddo chainId for AssetType inside teaser
* added chainId filter to queries from home page
* put chainId query string in parenthesis
* search filter by chainIds
* updated getDoo and getAssetName functions
* removed logs and fixed lint errors
* updated get published assets query
* adapted bookmarks aquarius call to multinetwork
* removed temporary ddo
Co-authored-by: Norbi <katunanorbert@gmai.com>
* refetch token orders inside getJobs
* removed logs
* don't use Time component for Finished column if date is undefined
* removed logs
Co-authored-by: Norbi <katunanorbert@gmai.com>
* removed compose previous data with new data
* removed unused states
* fix refetch multiple times for same block number
Co-authored-by: Norbi <katunanorbert@gmai.com>
* layout flow and space saving tinkering
* different tactic
* different minimal network name
* next layout flow iteration
* move chains preference into its own action
* mobile view tweaks
* more network icons
* fix and clean up ocean token metadata
* refactor and clean up Chains component
* naming cleanup
* WIP
* UI changes
* get and display datasets on both compute and consume
* new component for datasets that algorithm can run compute job on
* AssetSelection className refactor
* added internal link to AssetSelection
* show loading page when changing asset
* Component and asset title UI update
* created new component for dataset list
* removed unnecessary changes
* updated link margin
* prettier fix
* merge fix
* another fix
Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Put back removed docker hub image check using proxy
* fixed lint errors
* update scroll so in case of docker image validation error the input fields are in viewport
* adding env for RBAC server url to app.config.js
* creating util function for requesting auth from the rbac server
* fixing typing error
* testing rbac request on homepage
* removing console logs
* importing RBAC url from config file
* creating develpment .env file
* return true if no rbac url env is set
* creating permissions parent component
* wrapping homepage content in permission element
* wrapping publish in permissions wrapper
* wrapping search results in permissions wrapper
* wrapping asset actions in permissions element
* creating an error alert for permission denied
* updating react hook dependency
* passing address to rbac component
* sedning address to RBAC server
* wrapping asset in permission component
* removing unused import of Permission component
* sending request based on address
* chaning default permission case to restrict access
* updating eventType as consume
* Adding loader icon while waiting form permission response
* only sending request to RBAC if address is defined
* adding wallet connection info message
* changing the env name and checking for undefined
* updating .env.development
* Check for undefined RBAC_URL in permissions component
* removing .env.development and updating .env.example
* updating .env.example comment
* switching alert messages and reducing return statements
* removing console.log message
* fixing linting issue
* Revert "fixing linting issue"
This reverts commit 8bcb80be3d.
* Fixing linting errors
* pull from origin main
* Revert "pull from origin main"
This reverts commit 9535e41a5f.
* fetch pools from graph, fetch ddos for pools
* WIP on displaying highest liquidity assets
* loader added
* check ddo state for each asset
* data ordered by valueLocked, logger added
* filter ddos for purgatory
* verify ddo isConsumable price attribute
* moved query into subgraph.ts
* send did list, fix assets display
* fixes on assets display
* assets sorted by dids
* get assets on correct order
* get assets in correct order
* loading assets fixes
* correct order and loading, network overloaded
* fixes on loading
* fixed on network change, added loading
* fixed on network change when no wallet connected, improved loading
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Norbi <katunanorbert@gmai.com>
* removed paginations from the algorithms query and set offset
* changed offset to 500 for compute algorithms query
Co-authored-by: Norbi <katunanorbert@gmai.com>
* searching by full token symbol
regular expression used
* search by full names
match partial data
useless comments deleted
log deleted
* make search text uppercase
* data author and description added in query fields
* working search combined with sorting and filtering
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
* upgrading to ocean.js 0.14.6
* saving initial changes
* creating seperate component for adding tokens
* showing datatoken name
* adding button for metamask users
* using substring as datatoken symbol
* removing duplicated code
* removing empty div element
* removing unneccessary div element
* no longer sending the whole DDO
* refactoring add token functions
* updating function name
* no longer sending the whole ddo to the addDataToken component
* removing DDO import
* small refactor, get web3 provider info in useWeb3
* general AddToken component
* cleanup
* cleanup, remove symbol shortening
* copy, layout tweaks
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* used price from subgraph for asset teasers
* moved loading component inside AssetList
* replaced any with proper types inside subgraph utils
* fixed loading component displayed when empty assets or prices list
* show loading component when refetching data on sort and filter
* get each asset price before displaying the component, loading changes
* refactoring functions for getting asset prices
Co-authored-by: Norbi <katunanorbert@gmai.com>
* WIP
* use interval to refetch every minute
* fixes
* get jobs after verifications
* refetch jobs on button click
* fix loading when no jobs, hide refresh button then no jobs
* button UI changes
* styling updates
Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* created BoxSelection component
* wip
* design changes
* integrate with form
* refactoring
* used inside appearance component
* WIP, added space between options
* adde new fields to BoxSelection used for chain selection
* fixed errors
* removed access type option from publish.json
* updated component for chain selection
* updated for compute type on publish dataset
* added component to dockerImageOpions
* removed Dotdotdot component from options
* remove space
* styling updates, fix React warning for terms checkbox
Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>