1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add ve address (#1633)

This commit is contained in:
mihaisc 2022-10-11 09:56:53 +03:00 committed by GitHub
parent 13fc7bfe3a
commit 2b15ae2d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 2 deletions

View File

@ -170,4 +170,13 @@ export class Config {
* @type {number} * @type {number}
*/ */
gasFeeMultiplier: number gasFeeMultiplier: number
veAllocate?: string
veOCEAN?: string
veDelegation?: string
veFeeDistributor?: string
veDelegationProxy?: string
DFRewards?: string
DFStrategyV1?: string
veFeeEstimate?: string
} }

View File

@ -144,7 +144,15 @@ export class ConfigHelper {
OPFCommunityFeeCollector, OPFCommunityFeeCollector,
Ocean, Ocean,
chainId, chainId,
startBlock startBlock,
veAllocate,
veOCEAN,
veDelegation,
veFeeDistributor,
veDelegationProxy,
DFRewards,
DFStrategyV1,
veFeeEstimate
} = customAddresses[network] } = customAddresses[network]
configAddresses = { configAddresses = {
nftFactoryAddress: ERC721Factory, nftFactoryAddress: ERC721Factory,
@ -154,6 +162,14 @@ export class ConfigHelper {
oceanTokenAddress: Ocean, oceanTokenAddress: Ocean,
chainId, chainId,
startBlock, startBlock,
veAllocate,
veOCEAN,
veDelegation,
veFeeDistributor,
veDelegationProxy,
DFRewards,
DFStrategyV1,
veFeeEstimate,
...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI }) ...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI })
} }
} else { } else {
@ -166,7 +182,15 @@ export class ConfigHelper {
ERC721Factory, ERC721Factory,
Ocean, Ocean,
chainId, chainId,
startBlock startBlock,
veAllocate,
veOCEAN,
veDelegation,
veFeeDistributor,
veDelegationProxy,
DFRewards,
DFStrategyV1,
veFeeEstimate
} = DefaultContractsAddresses[network] } = DefaultContractsAddresses[network]
configAddresses = { configAddresses = {
nftFactoryAddress: ERC721Factory, nftFactoryAddress: ERC721Factory,
@ -176,6 +200,14 @@ export class ConfigHelper {
oceanTokenAddress: Ocean, oceanTokenAddress: Ocean,
chainId, chainId,
startBlock, startBlock,
veAllocate,
veOCEAN,
veDelegation,
veFeeDistributor,
veDelegationProxy,
DFRewards,
DFStrategyV1,
veFeeEstimate,
...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI }) ...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI })
} }
} }