* Remove publish (#1451)
* gitignore Next.js stuff
* remove publish
* remove pricing creation components
* Remove Trade (#1453)
* Add market version dropdown (#1185)
* Add market version dropdown and disable publish
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Remove old tests and forms
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Update dropdown design
* roll back Pool button change
* new iteration
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* put up announcement banner (#1455)
* Migration v3-v4 interface (#1146)
* Adding start migration component
* Adding styles and updating text
* Conditional rendering - only showing start migration to the owner of the asset
* Removing unused imports
* creating Migration context provider
* Importing types from local v4-migration-lib package
* Adding migration contract addesses
* Setting migration contract address and creating fetchMigrationStatus function
* Updating MigrationStatusProvider interface & exports
* Updating the statMigration function
* Passing token name and symbol to smart contract
* creating lockPoolShares component
* Adding getUserPoolShareBalance
* Showing lockPoolShares component on asset detail page
* Adding migration context component
* Setting encrypted files
* Passing through dtAddress and poolAddress when starting migration
* Fixing build issues
* fixing type issues
* Updating the DT and NFT names / symbols
* Removing add / remove liquidity option when the pool migration is in progress
* Using useMigrationStatus in pool tab
* Lock pool shares not shown for pool owner
* Adding i-progress message
* Checking if threshold has been met
* Fixing approvals on lock pool shares
* Adding CreateV4Pool component
* Checking if deadline has passed
* Creating Cancel Migration component
* Updating Migration provider to fetch poolShares for user
* First draft migration
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Install test v4-migration-lib
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Fix linting and apollo errors
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Remove test component
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Update v4-migration-lib version
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Cover more emigration cases
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Fix migration message
* Update market migration with new workflow
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Update migration contract address
* Clean up console.logs
* add more networks
* Removing migration not started message + updating gitignore
* Refactoring to remove the migration not started yet message
* Fixing - hide lock poolshares button when shares are already locked
* Removing console log
* Adjusting message logic to create default message
* Removing block counter
* Removing threshold met contract call
* Updating message content for the migration
* Simplifying MigrationAction enum
* Removing console.log
* fix package-lock
* don't use old npm versions as it adds git+ssh all over the place, making Node.js v14 CI runs fail
* Simplifying logic for showing message and action
* Fixing getMessageAndAction()
* Removing unused state variable
* Removing unused state variables from Migration context provider
* more cleanup, leave only Rinkeby as test network
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Updating locked shares message + ensuring the message changes when the shares are locked (#1457)
* Adding start migration component
* Adding styles and updating text
* Conditional rendering - only showing start migration to the owner of the asset
* Removing unused imports
* creating Migration context provider
* Importing types from local v4-migration-lib package
* Adding migration contract addesses
* Setting migration contract address and creating fetchMigrationStatus function
* Updating MigrationStatusProvider interface & exports
* Updating the statMigration function
* Passing token name and symbol to smart contract
* creating lockPoolShares component
* Adding getUserPoolShareBalance
* Showing lockPoolShares component on asset detail page
* Adding migration context component
* Setting encrypted files
* Passing through dtAddress and poolAddress when starting migration
* Fixing build issues
* fixing type issues
* Updating the DT and NFT names / symbols
* Removing add / remove liquidity option when the pool migration is in progress
* Using useMigrationStatus in pool tab
* Lock pool shares not shown for pool owner
* Adding i-progress message
* Checking if threshold has been met
* Fixing approvals on lock pool shares
* Adding CreateV4Pool component
* Checking if deadline has passed
* Creating Cancel Migration component
* Updating Migration provider to fetch poolShares for user
* First draft migration
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Install test v4-migration-lib
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Fix linting and apollo errors
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Remove test component
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Update v4-migration-lib version
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Cover more emigration cases
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Fix migration message
* Update market migration with new workflow
Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>
* Update migration contract address
* Clean up console.logs
* add more networks
* Removing migration not started message + updating gitignore
* Refactoring to remove the migration not started yet message
* Fixing - hide lock poolshares button when shares are already locked
* Removing console log
* Adjusting message logic to create default message
* Removing block counter
* Removing threshold met contract call
* Updating message content for the migration
* Simplifying MigrationAction enum
* Removing console.log
* fix package-lock
* don't use old npm versions as it adds git+ssh all over the place, making Node.js v14 CI runs fail
* Simplifying logic for showing message and action
* Fixing getMessageAndAction()
* Removing unused state variable
* Removing unused state variables from Migration context provider
* Adding startMigration function in for testing + updating refreshMigration function
* Updating locked shares message
Co-authored-by: Pablo Maldonado <pablo@oceanprotocol.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Checking if adding shares is allowed for Asset (#1458)
* fix dark mode banner text color (#1459)
* Update V4 Migration smartcontract address (#1460)
Update V4 Migration smartcontract address on Rinkeby
* Removing all code that was in V3 branch for testing (#1461)
* Removing all code that was in place for testing
* Removing complete migration function
* remove unused CSS files (#1462)
* remove Add/Remove for good (#1463)
* alert color tweaks, effect dependencies (#1464)
* V3 fix pool shares rounding (#1466)
* Changing UI to show pool shares rounded to 3 decimal places
* Fixing NaN shown in the UI when changing account
* Displaying locked pool shares to 3 decimals (#1467)
* Displaying locked pool shares to 3 decimals
* Removing else condition
* Updating text - removing mentions of migration (#1468)
* V3 fixes (#1469)
* Fixing - making sure migration status is not shown after changing accounts
* Updating text to remove V4 migration status+ fix typo + renaming data pool to datatoken pool
* Fixing typo - Please note
* Making title shorter
* Update title (#1470)
* Update MIGRATION_CONTRACT_ADDRESS for production (#1472)
* update banner: (#1474)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: md0x <pablomaldonadoturci@gmail.com>
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Pablo Maldonado <pablo@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* 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 8bcb80be3d1ae32731b8c5b81b393dd614017fdc.
* Fixing linting errors
* pull from origin main
* Revert "pull from origin main"
This reverts commit 9535e41a5f5acfa26d2841942c29695855dd65bc.
* 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>
* 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>