config testnet

This commit is contained in:
Felicio Mununga 2023-11-02 13:03:05 +01:00
parent 9dd802726a
commit 032b30cd9c
No known key found for this signature in database
GPG Key ID: C4736C7AEBA55BE5
2 changed files with 14 additions and 8 deletions

View File

@ -45,20 +45,19 @@ const configs: Record<typeof process.env.ENV, Config> = {
votesLimit: 2, votesLimit: 2,
}, },
/** /**
* Preview/Stage. * Preview.
* *
* All preview deployments (from pull requests) will share voting history with production. * All preview deployments (from pull requests) will share voting history.
* Contracts haven't been deployed to testnet.
*/ */
preview: { preview: {
wakuConfig: { wakuConfig: {
environment: 'production', environment: 'test',
wakuTopic: `/communitiesCuration/${version}/directory/proto/`, wakuTopic: `/communitiesCuration/preview/${version}/directory/proto/`,
wakuFeatureTopic: `/communitiesCuration/${version}/featured/proto/`, wakuFeatureTopic: `/communitiesCuration/preview/${version}/featured/proto/`,
}, },
daapConfig: { daapConfig: {
readOnlyChainId: ChainId.Optimism, readOnlyChainId: ChainId.OptimismGoerli,
networks: [Optimism], networks: [OptimismGoerli],
notifications: { notifications: {
checkInterval: 500, checkInterval: 500,
expirationPeriod: 50000, expirationPeriod: 50000,

View File

@ -8,6 +8,13 @@ export const contracts = {
directoryContract: '0xA8d270048a086F5807A8dc0a9ae0e96280C41e3A', directoryContract: '0xA8d270048a086F5807A8dc0a9ae0e96280C41e3A',
tokenContract: '0x650AF3C15AF43dcB218406d30784416D64Cfb6B2', tokenContract: '0x650AF3C15AF43dcB218406d30784416D64Cfb6B2',
}, },
[ChainId.OptimismGoerli]: {
votingContract: '0x744Fd6e98dad09Fb8CCF530B5aBd32B56D64943b',
featuredVotingContract: '0x744Fd6e98dad09Fb8CCF530B5aBd32B56D64943b',
directoryContract: '0xB3Ef5B0825D5f665bE14394eea41E684CE96A4c5',
tokenContract: '0xcAD273fA2bb77875333439FDf4417D995159c3E1',
multicallContract: '0xcA11bde05977b3631167028862bE2a173976CA11',
},
[ChainId.Hardhat]: { [ChainId.Hardhat]: {
votingContract: process.env.VOTING_CONTRACT ?? '0x0000000000000000000000000000000000000000', votingContract: process.env.VOTING_CONTRACT ?? '0x0000000000000000000000000000000000000000',
directoryContract: process.env.DIRECTORY_CONTRACT ?? '0x0000000000000000000000000000000000000000', directoryContract: process.env.DIRECTORY_CONTRACT ?? '0x0000000000000000000000000000000000000000',