* 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>
* 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
* 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
* fetching Subgraph data
* updates ordered by timestamp
* comment removed
* comment removed
* apollo generated typing used
* date converted to string
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
* added pagination to Published list, used aquarius to get assets
* loading only when component mounts
* pagination style unification
* Auto stash before merge of "feature/add-pagination-to-published-section" and "origin/feature/add-pagination-to-published-section"
* removed unnecessary code
* fixed lint errors
* code climate fixes
* removed unused component
* added hook for network switch
* display bottom border for last table row
* trigger pagination calculation on network change
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* added graph query
* fixed negative liquidity value for input error
* used graph to get poolShares
* replaced total pool liquidity with user liquidity, get ddo on row
* get symbol from graph, calculate userLiquidity
* fixed userLiquidity price and sorted table by userLiquidity
* removed ordering by balance
* displayed pool and client liquidity, disabled table header hover
* order Your Liquidity before Pool Liquidity
* removed line height on asset title in pool shares table
* limit table to 5 rows, refactor liquidity comp, changed balance color
* code climate similar blocks fix
* changed lockedValue to valueLocked in pool shares query
* removed husky file
* 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
* replace Travis with GitHub Actions workflow
* fix prettier on Windows
* remove PascalCasing bash one-liner for one use case
* use mkdirp to workaround Windows
* cache tweaks
* move s3 deploy to own workflow
* upload artifacts for debug
* path tweak
* debug
* apollo:codegen without folder pre-creation
* debug: activate s3 deploy for all branches
* pass env vars to deployment build
* more env var passing
* deploy main branch pushes only
* add VS Code workspace settings
* add everything required for auto-formatting on filesave
* add list of suggested extensions
* add pre-commit hook for `npm run format`
* update code style docs
* make pre-commit work
* update docs
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>