Skip to content

Commit

Permalink
Remove deprecated verifyAndDeliverConfig field
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadChavosh committed Oct 22, 2024
1 parent 5608e21 commit 8a55333
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions cdk/gasolina/config/verifyAndDeliverConfig/mainnet.json

This file was deleted.

1 change: 0 additions & 1 deletion cdk/gasolina/constants/envVariables/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const ENV_VAR_NAMES = {
LZ_METRIC_NAMESPACE: 'LAYERZERO_METRIC_NAMESPACE',
LZ_METRIC_LOG_GROUP_NAME: 'LAYERZERO_METRIC_LOG_GROUP_NAME',
LZ_PROVIDER_CONFIG_TYPE: 'PROVIDER_CONFIG_TYPE',
LZ_VERIFY_AND_DELIVER_WHITELIST: 'LAYERZERO_VERIFY_AND_DELIVER_WHITELIST',
LZ_AVAILABLE_CHAIN_NAMES: 'LAYERZERO_AVAILABLE_CHAIN_NAMES',
LZ_KMS_CLOUD_TYPE: 'KMS_CLOUD_TYPE',
LZ_KMS_IDS: 'LAYERZERO_KMS_IDS',
Expand Down
9 changes: 0 additions & 9 deletions cdk/gasolina/lib/gasolinaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ interface CreateGasolinaServiceProps {
}
}[]
}
verifyAndDeliverConfig: {
contractAddresses: {
[chainName: string]: string
}
}
signerType: string
gasolinaRepo: string
appVersion: string
Expand All @@ -49,8 +44,6 @@ export const createGasolinaService = (props: CreateGasolinaServiceProps) => {
assumedBy: new iam.ServicePrincipal('ecs-tasks.amazonaws.com'),
})

const whitelistedContracts = props.verifyAndDeliverConfig.contractAddresses

workerRole.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName(
'service-role/AmazonECSTaskExecutionRolePolicy',
Expand Down Expand Up @@ -133,8 +126,6 @@ export const createGasolinaService = (props: CreateGasolinaServiceProps) => {
[ENV_VAR_NAMES.LZ_METRIC_NAMESPACE]: `${LAYERZERO_PREFIX}-${serviceName.toLowerCase()}`,
[ENV_VAR_NAMES.LZ_METRIC_LOG_GROUP_NAME]: `${serviceName.toLocaleLowerCase()}-metric-log`,
[ENV_VAR_NAMES.LZ_PROVIDER_CONFIG_TYPE]: 'S3',
[ENV_VAR_NAMES.LZ_VERIFY_AND_DELIVER_WHITELIST]:
JSON.stringify(whitelistedContracts),
[ENV_VAR_NAMES.LZ_AVAILABLE_CHAIN_NAMES]: props.availableChainNames,
...(props.signerType === 'MNEMONIC'
? {
Expand Down
3 changes: 0 additions & 3 deletions cdk/gasolina/lib/gasolinaCdkStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export class GasolinaCdkStack extends LZCdkStack {
projectName: config.projectName,
environment: config.environment,
walletConfigs,
verifyAndDeliverConfig: {
contractAddresses: {},
},
gasolinaRepo: config.gasolinaRepo,
appVersion: config.appVersion,
availableChainNames: config.availableChainNames,
Expand Down

0 comments on commit 8a55333

Please sign in to comment.