directDeployDeterministicPublished

Direct deploy a contract at a deterministic address, using Create2 method Address depends on the Create2 factory address and salt (if provided).

function directDeployDeterministicPublished(
contractName: string,
publisherAddress: string,
contractVersion: string,
constructorArgs: Array<any>,
signer: Signer,
clientId?: string,
secretKey?: string,
saltForCreate2?: string,
gasLimit: number,
): Promise<string>;

Parameters

The name of the contract to deploy

Type

let contractName: string;

The publisher address to use

Type

let publisherAddress: string;

The contract version to use

Type

let contractVersion: string;

The constructor args to use

Type

let constructorArgs: Array<any>;

The signer to use

Type

let signer: Signer;

The storage to use

Type

The client id to use

Type

let clientId: string;

The secret key to use

Type

let secretKey: string;

The salt to use

Type

let saltForCreate2: string;

Type

let gasLimit: number;

Returns

let returnType: Promise<string>;