* 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>
* use status function
* remobe get results button, use getResults function
* use default index
* lint fix
* ocean.js version change
* more lint fix
* function parameter fix
* credential type fix
* cursor pointer on link hover
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
* AccountTeaser used in Publishers with most sales, against /account_page
* explorer link fixes
* reduced stats values displayed, used Blockies component
* sales number taken from subgraph
* logs deleted, function renamed
* sort publishers by sales from more networks
* removed unused pagination
* display & lint fixes
* ranking added, useless css removed
* unused query removed
* types fix
* pr fixes
* loading fix
* removed unused imports
* css fixes, sales correct ordering
* get publishers and all sales, css fix
* err fix
* get publishers and sales optimization
* no duplicates fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
* update right to data portability
* update right to data portability
* update right to data portability
* update right to data portability
Co-authored-by: MeikeMolitor <88214332+MeikeMolitor@users.noreply.github.com>
* 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