inbox
Classes
InboxTools
Tools for interacting with the inbox and bridge contracts
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
parentProvider | private | Provider | Parent chain provider |
Methods
estimateArbitrumGas()
private estimateArbitrumGas(childTransactionRequest: RequiredTransactionRequestType, childProvider: Provider): Promise<GasComponentsWithChildPart>
We should use nodeInterface to get the gas estimate is because we are making a delayed inbox message which doesn't need parent calldata gas fee part.
Parameters
| Parameter | Type |
|---|---|
childTransactionRequest | RequiredTransactionRequestType |
childProvider | Provider |
Returns
Promise<GasComponentsWithChildPart>
Source
findFirstBlockBelow()
private findFirstBlockBelow(blockNumber: number, blockTimestamp: number): Promise<Block>
Find the first (or close to first) block whose number is below the provided number, and whose timestamp is below the provided timestamp
Parameters
| Parameter | Type | Description |
|---|---|---|
blockNumber | number | |
blockTimestamp | number |