1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/app.config.js
Matthias Kretschmann fc2aa5bf0e
V3 Sunset, the Start (#1456)
* 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>
2022-05-25 15:28:01 +03:00

97 lines
3.7 KiB
JavaScript

module.exports = {
// URI of single metadata cache instance for all networks.
// While ocean.js includes this value for each network as part of its ConfigHelper,
// it is assumed to be the same for all networks.
// In components can be accessed with the useSiteMetadata hook:
// const { appConfig } = useSiteMetadata()
// return appConfig.metadataCacheUri
metadataCacheUri:
process.env.METADATACACHE_URI || 'https://aquarius.oceanprotocol.com',
// List of chainIds which metadata cache queries will return by default.
// This preselects the Chains user preferences.
chainIds: [1, 137, 56, 1285, 246],
// List of all supported chainIds. Used to populate the Chains user preferences list.
chainIdsSupported: [1, 3, 4, 137, 80001, 1287, 56, 2021000, 1285, 246],
rbacUrl: process.env.GATSBY_RBAC_URL,
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx',
// The ETH address the marketplace fee will be sent to.
marketFeeAddress:
process.env.GATSBY_MARKET_FEE_ADDRESS ||
'0x9984b2453eC7D99a73A5B3a46Da81f197B753C8d',
// Used for conversion display, can be whatever coingecko API supports
// see: https://api.coingecko.com/api/v3/simple/supported_vs_currencies
currencies: [
'EUR',
'USD',
'CAD',
'GBP',
'SGD',
'HKD',
'CNY',
'JPY',
'INR',
'RUB',
'ETH',
'BTC',
'LINK'
],
// Config for https://github.com/donavon/use-dark-mode
darkModeConfig: {
classNameDark: 'dark',
classNameLight: 'light',
storageKey: 'oceanDarkMode'
},
// Wallets
portisId: process.env.GATSBY_PORTIS_ID || 'xxx',
// Used to show or hide the fixed, dynamic or free price options
// tab to publishers during the price creation.
allowFixedPricing: process.env.GATSBY_ALLOW_FIXED_PRICING || 'true',
allowDynamicPricing: process.env.GATSBY_ALLOW_DYNAMIC_PRICING || 'true',
allowFreePricing: process.env.GATSBY_ALLOW_FREE_PRICING || 'false',
// Used to show or hide advanced settings button in asset details page
allowAdvancedSettings: process.env.GATSBY_ALLOW_ADVANCED_SETTINGS || 'false',
allowAdvancedPublishSettings:
process.env.GATSBY_ALLOW_ADVANCED_PUBLISH_SETTINGS || 'false',
credentialType: process.env.GATSBY_CREDENTIAL_TYPE || 'address',
// Set the default privacy policy to initially display
// this should be the slug of your default policy markdown file
defaultPrivacyPolicySlug: '/privacy/en',
// This enables / disables the use of a GDPR compliant
// privacy preference center to manage cookies on the market
// If set to true a gdpr.json file inside the content directory
// is used to create and show a privacy preference center / cookie banner
// To learn more about how to configure and use this, please refer to the readme
privacyPreferenceCenter:
process.env.GATSBY_PRIVACY_PREFERENCE_CENTER || 'false',
// Migration contract addresses
ethereumMigrationContractAddresss:
process.env.GATSBY_MIGRATION_CONTRACT_ADDRESS_ETHEREUM || '0xc313e19146Fc9a04470689C9d41a4D3054693531',
polygonMigrationContractAddresss:
process.env.GATSBY_MIGRATION_CONTRACT_ADDRESS_POLYGON || '0x9b8aeEF3AB307623905E6813DADcbdA5D53f47ED',
bscMigrationContractAddresss:
process.env.GATSBY_MIGRATION_CONTRACT_ADDRESS_BSC || '0xe8c6Dc39602031A152440311e364818ba25C2Bc1',
moonriverMigrationContractAddresss:
process.env.GATSBY_MIGRATION_CONTRACT_ADDRESS_MOONRIVER || '',
ewcMigrationContractAddresss:
process.env.GATSBY_MIGRATION_CONTRACT_ADDRESS_EWC || '0x2720d405ef7cDC8a2E2e5AeBC8883C99611d893C',
rinkebyMigrationContractAddresss:
process.env.GATSBY_MIGRATION_CONTRACT_ADDRESS_RINKEBY ||
'0xf2091811d6809A269e2B58D75ed5d4747f0BBfB1',
marketUrlV4:
process.env.GATSBY_MARKET_URL_V4 || 'https://v4.market.oceanprotocol.com'
}