mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
chore: get router factory address from config (#1858)
Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
This commit is contained in:
parent
e6d7d7c60c
commit
9cb2ea0a02
@ -44,6 +44,12 @@ export class Config {
|
||||
*/
|
||||
public nftFactoryAddress?: string
|
||||
|
||||
/**
|
||||
* Router Factory address
|
||||
* @type {string}
|
||||
*/
|
||||
public routerFactoryAddress?: string
|
||||
|
||||
/**
|
||||
* datatokens ABI
|
||||
* @type {string}
|
||||
|
@ -206,6 +206,7 @@ export class ConfigHelper {
|
||||
DFRewards,
|
||||
DFStrategyV1,
|
||||
veFeeEstimate,
|
||||
Router,
|
||||
AccessListFactory
|
||||
} = customAddresses[network]
|
||||
configAddresses = {
|
||||
@ -214,6 +215,7 @@ export class ConfigHelper {
|
||||
fixedRateExchangeAddress: FixedPrice,
|
||||
dispenserAddress: Dispenser,
|
||||
oceanTokenAddress: Ocean,
|
||||
routerFactoryAddress: Router,
|
||||
chainId,
|
||||
startBlock,
|
||||
veAllocate,
|
||||
@ -247,6 +249,7 @@ export class ConfigHelper {
|
||||
DFRewards,
|
||||
DFStrategyV1,
|
||||
veFeeEstimate,
|
||||
Router,
|
||||
AccessListFactory
|
||||
} = DefaultContractsAddresses[network]
|
||||
configAddresses = {
|
||||
@ -255,6 +258,7 @@ export class ConfigHelper {
|
||||
fixedRateExchangeAddress: FixedPrice,
|
||||
dispenserAddress: Dispenser,
|
||||
oceanTokenAddress: Ocean,
|
||||
routerFactoryAddress: Router,
|
||||
chainId,
|
||||
startBlock,
|
||||
veAllocate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user