Skip to content

Commit

Permalink
Fix: Update deplyment file to work with github actions as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
ajimeno04 committed Aug 13, 2024
1 parent e8f737a commit 97e885c
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions tests/config/deployment/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,38 @@ export function encodeNumber(value: number | bigint): string {
}


//Deployment Functions +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
export interface CatalystContractsAddresses {
factoryAddress: string,
volatileVaultTemplateAddress: string,
chainInterfaceAddress: string
}

export interface CatalystContracts extends CatalystContractsAddresses {
factory: CatalystFactory,
volatileVaultTemplate: CatalystVaultVolatile,
chainInterface: CatalystChainInterface,
}

export interface ChainDeploymentAddresses {
chainId: number,
chainIdBytes: BytesLike,
escrowAddress: string,
wethAddress: string,
catalyst: CatalystContractsAddresses,
}

export interface ChainDeployment extends ChainDeploymentAddresses {
escrow: IncentivizedMockEscrow,
weth: WETH9,
catalyst: CatalystContracts,
}

interface FullDeploymentDescription {
deploymentA: ChainDeployment,
deploymentB: ChainDeployment,
vaultA: CatalystVaultVolatile,
vaultB: CatalystVaultVolatile,
}

export async function deployMockEscrow(
deployer: Wallet,
Expand Down Expand Up @@ -118,7 +149,7 @@ export async function deployCatalystFactory(
): Promise<CatalystFactory> {
const factory = new CatalystFactory__factory(deployer);
const deployResponse = await factory.deploy(
factoryOwner ?? deployer.address,
factoryOwner ?? deployer.address
);

await deployResponse.waitForDeployment();
Expand Down Expand Up @@ -469,4 +500,4 @@ export async function deployFullEnvironment(): Promise<string[]> {
console.error("Error during full environment deployment:", error);
throw error;
}
}
}

0 comments on commit 97e885c

Please sign in to comment.