@@ -14,6 +14,7 @@ import {
14
14
simulatedSecretsKeys ,
15
15
DEFAULT_MAX_ON_CHAIN_RESPONSE_BYTES ,
16
16
numberOfSimulatedNodeExecutions ,
17
+ simulatedLinkUsdPrice ,
17
18
} from './simulationConfig'
18
19
import {
19
20
LinkTokenSource ,
@@ -367,9 +368,12 @@ export const deployFunctionsOracle = async (deployer: Wallet): Promise<Functions
367
368
MockV3AggregatorSource . bytecode ,
368
369
deployer ,
369
370
)
370
- const linkPriceFeed = await linkPriceFeedFactory
371
+ const linkEthPriceFeed = await linkPriceFeedFactory
371
372
. connect ( deployer )
372
373
. deploy ( 18 , simulatedLinkEthPrice )
374
+ const linkUsdPriceFeed = await linkPriceFeedFactory
375
+ . connect ( deployer )
376
+ . deploy ( 8 , simulatedLinkUsdPrice )
373
377
374
378
const routerFactory = new ContractFactory (
375
379
FunctionsRouterSource . abi ,
@@ -387,14 +391,21 @@ export const deployFunctionsOracle = async (deployer: Wallet): Promise<Functions
387
391
)
388
392
const mockCoordinator = await mockCoordinatorFactory
389
393
. connect ( deployer )
390
- . deploy ( router . address , simulatedCoordinatorConfig , linkPriceFeed . address )
394
+ . deploy (
395
+ router . address ,
396
+ simulatedCoordinatorConfig ,
397
+ linkEthPriceFeed . address ,
398
+ linkUsdPriceFeed . address ,
399
+ )
391
400
392
401
const allowlistFactory = new ContractFactory (
393
402
TermsOfServiceAllowListSource . abi ,
394
403
TermsOfServiceAllowListSource . bytecode ,
395
404
deployer ,
396
405
)
397
- const allowlist = await allowlistFactory . connect ( deployer ) . deploy ( simulatedAllowListConfig )
406
+ const initialAllowedSenders : string [ ] = [ ]
407
+ const initialBlockedSenders : string [ ] = [ ]
408
+ const allowlist = await allowlistFactory . connect ( deployer ) . deploy ( simulatedAllowListConfig , initialAllowedSenders , initialBlockedSenders )
398
409
399
410
const setAllowListIdTx = await router . setAllowListId (
400
411
utils . formatBytes32String ( simulatedAllowListId ) ,
0 commit comments