(filter, fromBlock, toBlock)
| 101 | } |
| 102 | |
| 103 | async getEventList(filter, fromBlock, toBlock) { |
| 104 | const contract = new Ethers.Contract(filter.contract, filter.abi, this.provider); |
| 105 | const result = []; |
| 106 | |
| 107 | // abi should contain a list of all events when using * |
| 108 | const events = await contract.queryFilter("*", fromBlock, toBlock); |
| 109 | for (const event of events) { |
| 110 | if (!!event.args) { |
| 111 | result.push(await this.getTransactionEvent(event)); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | return result; |
| 116 | } |
| 117 | |
| 118 | async getGasPrice() { |
| 119 | return await this.provider.getGasPrice(); |
nothing calls this directly
no test coverage detected