Initializes a new instance of the ContractFactory
class.
The Application Binary Interface (ABI) of the contract, which defines the contract's methods and events.
The compiled bytecode of the contract, representing the contract's executable code.
The signer used for signing transactions during contract deployment, ensuring the deployer's identity.
An instance of the module to interact with the blockchain.
Returns the deploy transaction result, if available.
Initiates the deployment of a smart contract.
This method performs several steps to deploy a smart contract:
Optional
deployParams: DeployParams(Optional) parameters for contract deployment.
Optional
options: ContractTransactionOptions(Optional) transaction options, such as gas limit.
A promise that resolves to the instance of ContractFactory
,
allowing for fluent chaining of further actions or queries.
Waits for the completion of a contract deployment transaction.
This method checks for the presence of a deployed transaction result and then
waits for the transaction to be processed. Upon successful processing, it
constructs and returns a new Contract
instance based on the transaction receipt.
A promise that resolves to a Contract
instance
once the deployment transaction is completed.
A factory class for deploying smart contracts to a blockchain using a ThorClient.