nim-ethers/ethers
Eric Mastro a3e888128c feat: Allow contract transactions to be waited on
Allow waiting for a specified number of confirmations for contract transactions.

This change only requires an optional TransactionResponse return type to be added to the contract function. This allows the transaction hash to be passed to `.wait`.

For example, previously the `mint` method looked like this without a return value:
```
method mint(token: TestToken, holder: Address, amount: UInt256) {.base, contract.}
```
it still works without a return value, but if we want to wait for a 3 confirmations, we can now define it like this:
```
method mint(token: TestToken, holder: Address, amount: UInt256): ?TransactionResponse {.base, contract.}
```
and use like this:
```
let receipt = await token.connect(signer0)
                    .mint(accounts[1], 100.u256)
                    .wait(3) # wait for 3 confirmations
```
2022-05-23 11:27:26 +10:00
..
providers feat: Allow contract transactions to be waited on 2022-05-23 11:27:26 +10:00
basics.nim Add Signer.populateTransaction() 2022-01-25 10:25:09 +01:00
blocktag.nim Adds Signer.getTransactionCount() 2022-01-24 12:14:31 +01:00
contract.nim feat: Allow contract transactions to be waited on 2022-05-23 11:27:26 +10:00
events.nim Fix decoding of events with dynamic arguments 2022-04-13 10:10:53 +02:00
fields.nim Fix for Nim 1.4.x 2022-02-09 14:50:51 +01:00
provider.nim feat: Allow contract transactions to be waited on 2022-05-23 11:27:26 +10:00
signer.nim feat: Can wait for transaction confirmations 2022-05-23 11:27:26 +10:00
transaction.nim Add Signer.populateTransaction() 2022-01-25 10:25:09 +01:00