DeployedContractWrapper
DeployedContractWrapper
is a powerful object that provides you with ethers.Contract
amongst other functionalities. This allows you to start using your deployed contract right away as part of your deployment sequence (f.e. you can call initialization methods)verboseWaitForTransaction(transaction, transactionLabel)
function. This function can be used to wait for transaction to be mined while giving you verbose output of the state. In addition it allows you to specify a label for the transaction you are waiting for, so that you can get a better understanding of what transaction is being waited for. This comes in handy when deployment scripts start to grow.contractWrapper.contractAddress
. It has also utils property that gives you the option to get easy the contract's balance.from
method at your disposal. It will allow you to call certain methods from other default accounts.etherlime.ContractAt(contract, contractAddress, [signer], [providerOrPort])
ContractAt
will wire up an instance of the wrapper connected to etherlime ganache on the default port and default account. Optionally you can provide an account and port to connect to etherlime ganache. Alternatively if you want to connect to another provider you can pass it as last parameter, but then you must pass a signer too which is already connected to the same provider.wrapDeployedContract(contract, contractAddress)
.