* 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>
* 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>
* 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>
* upgrading to ocean.js 0.14.6
* proper ocean.js update
* make all explorer links work
* handle new moonbeamalpha config
* add moonbase alpha to chain user preferences
* more ocean.js v0.14 updates
* switch to grid
* upgrading ocean.js to 0.14.7
* lock to @oceanprotocol/contracts v0.5.16
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* changing the info text for dataset input
* Updating error message for invalid dataset input
* chaning button styling to make it look more like a button
* fixing package-lock.json issue
* removing changes from package-lock.json
* adding onBlur event to validate the data input
* Removing autoclose on error message
* adding success message when the dataset is valid
* WIP
* query update
* quick fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* get blocks number when no provider, added threshold
* format code
* naming fix
* show graph out of sync message inside announcement banner
* added loader
* moved sync component
* refactor all the things
* new atoms/AnnouncementBanner : banner component reduced to presentation only, where its content is always passed as props
* revised molecules/NetworkBanner: the former AnnouncementBanner now holds all the specific network detection logic, in the end also returns the atoms/AnnouncementBanner
* new hook hooks/useGraphSyncStatus: move all the graph fetching logic in there so we can use its status in multiple places in the app without all this props passing. This also decouples the SyncStatus component in footer from its logic
* in App.tsx, add the graph sync warning banner in another atoms/AnnouncementBanner, getting its values from the hook
* data flow refactor
* .env.example tweak
* race condition fighting
* subgraph loading
* polygon fallback fix
* no interval fetching
* turn around logic for adding infura ID
* removed graphNotSynched
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Wip start compute job
* Wip select algorithm design
* Asset selection form component, for start compute job (#442)
* prototype AssetSelection
* assetselection styling
* typing "fix"
* put back file info icon
* AssetSelection styling in context
* update start job method, fixed algo select, and fixed option typing
* compute logic update
* add has previous orders for algo asset
* fixed search algorithm assets in start compute form
* fixed lint errors
* updated previous order for algo logic and compute flow
* update use price hook and added buy DT for algo
* display only alg of type exchange and sort by value
* display only trusted algo for asset if field is set
* added logic for allow all published algorithms or no algorithms allowed
* asset selection style & spacing tweaks
* refactor get algorithms for compute and edit compute
* fixed form options and more refactoring
* new ButtonBuy component
* shared component between consume/compute
* dealing with various states: loading, previous orders, help text output
* effect dependencies
* move error output into toast
* formik data flow refactor
* ditch custom field change handler
* fix initialValues
* typed form data & validation
* fixes multiple form validation issues along the way
* isInitialValid → validateOnMount
* metadata display tweaks
* error feedback tweaks
* oler assets checks, confeti on succes job, market fee on order, removed algo compute logic
* more startJob logging
* feedback & messaging changes
* metadata display
* return all algos, fixed & dynamic priced ones
* fix DOM nesting
* messaging updates
* copy tweaks
* check algorithm previous history for both acces and compute sercive types
* handle start compute error
* extra checks on start compute response
* styling tweaks, fix toast UI errors
* AssetSelection: empty screen, tweak min/max height
* fix FRE issues on start compute
* check is ordarable before start compute job
* logging tweaks
* disable eslint no-unused-vars rule for some Apollo code blocks
* fix metadata editing for compute assets
* consider dataset timeout for compute too
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* add custom network
* created announcement banner
* add custom network from banner
* show ADD CUSTOM NETWORK on MetaMask provider
* show add ocean to wallet action
* removed warningPolygon from alert
* removed customNetwork component
* remove Add custom network on asset details page
* Details use function from web3 to add token
* changed available on Polygon link, refactoring
* show Switch to Polygon when no wallet connected
* banner content for no provider and Polygon network
* change message when not provider and eth network
* changed warning and added announcement in site.json
* moved network logic inside Announcement, moved Announcement component
* added switch to ETH button, refactoring
* removed add mOcean action button
* moved location verification to App.tsx
* styling & copy updates
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* WIP
* created form for editing compute privacy
* used editComputePrivacy method
* select and update trusted algorithm
* display and select multiple trusted algorithms
* fixed update when trusted algorithm list not changed
* code refactoring
* moved separator inside condition
* moved functions and interface from EditComputeDataset component
* moved algorithmOptions to parent component
* used AssetSelection to display algorithms
* use AssetSelection to select trusted algorithms
* getAlgorithmsOptions function review
* review fixes
* removed unused imports
* merge fixes
* AssetSelection style & usability tweaks
* use custom radio & checkbox styles
* add simple search for name & DID
* spacing adjustments
* copy updates, remove raw algo input, hardcode allowRawAlgorithm
* copy
* AssetSelection usability tweaks
* make rows clickable
* tweak layout, style and markup
* use formik set function to update values
* sorted algorithm list, added checked field
* sort assetSelection list on user select
* fix getAlgorithmsForAssetSelection breaking on empty responses
* form debug output
* another empty publisherTrustedAlgorithms fix
* created separate algorithms state for the form, sort list on edit
* refactor
* use Formik functionality wherever possible
* unify transforming form data to final data
* fix form debug transformation
* fix form submit, fix defaultChecked
* refactor
* use Formik functionality wherever possible
* unify transforming form data to final data
* fix form debug transformation
* fix form submit, fix defaultChecked
* disable assetSelection when allowAllAlgorithms is true
* added loader to AssetSelection
* changed allowAllAlgorithms to allowAllPublishedAlgorithms
* fixed lint error
* updated transformComputeFormToServiceComputePrivacy
* lint fix
* modify publish defaults
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* WIP
* added button that allows to push custom token to metamask
* added image url
* use provider from ocean, add mOCEAN symbol to Matic
* use token symbol based on networkId
* removed customToken.json, used Logger to display message
* log error
* fixed log
* review fixes
* used oceanTokenSymbol from config
* getOceanConfig fix
* replaces market fileinfo with provider file info
* removed test for replaced getFileInfo method
* updated toast messages
- if uploaded file when no web3 wallet is connected
- if file is not valid
* used provider api to check file'
* moved get fileinfo logic to provider.ts
* cancel fileinfo req on unmount
* reduced fileinfo method complexity
* canceltoken passed to fileinfo issue