Type parameters
Constructors
new ContractFactory()
abi and bytecode, optionally connected to runner.
The bytecode may be the bytecode property within the standard Solidity JSON output.
Parameters
Returns
ContractFactory<A, I>
Source
contract/factory.ts:50Properties
Methods
connect()
runner.
Parameters
Returns
ContractFactory<A, I>
A new ContractFactory.
Source
contract/factory.ts:218deploy()
args into the constructor.
This will resovle to the Contract before it has been deployed to the network, so the
baseContract.waitForDeployment should be used before sending any
transactions to it.
Parameters
Returns
Promise<BaseContract & {
"deploymentTransaction": ContractTransactionResponse;
} & Omit<I, keyof BaseContract>>
A promise resolving to the Contract.
Source
contract/factory.ts:126getDeployTransaction()
args into the constructor.
Parameters
Returns
Promise<ContractDeployTransaction>
A promise resolving to the deployment transaction.
Source
contract/factory.ts:89fromSolidity()
Type parameters
Parameters
Returns
ContractFactory<A, I>
A new ContractFactory.
