nim-ethers/testmodule
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
..
config.nims Ensure that tests run on Nim 1.2.x 2022-01-26 17:58:51 +01:00
examples.nim Add Signer.populateTransaction() 2022-01-25 10:25:09 +01:00
hardhat.nim Introduce Contract abstraction 2022-01-20 12:56:18 +01:00
miner.nim feat: Allow contract transactions to be waited on 2022-05-23 11:27:26 +10:00
test.nim Event decoding from data and topics 2022-02-09 14:50:51 +01:00
test.nimble Project setup 2022-01-17 17:04:14 +01:00
testContracts.nim feat: Allow contract transactions to be waited on 2022-05-23 11:27:26 +10:00
testEvents.nim Fix decoding of events with dynamic arguments 2022-04-13 10:10:53 +02:00
testJsonRpcProvider.nim feat: Allow contract transactions to be waited on 2022-05-23 11:27:26 +10:00
testJsonRpcSigner.nim Add Signer.signMessage() 2022-01-26 11:21:28 +01:00