ChildToParentMessage
Classes
ChildToParentMessage
Defined in: message/ChildToParentMessage.ts:60
Base functionality for Child-to-Parent messages
Extended by
Methods
fromEvent()
static fromEvent<T>(
parentSignerOrProvider: T,
event: ChildToParentTransactionEvent,
parentProvider?: Provider): ChildToParentMessageReaderOrWriter<T>;
Defined in: message/ChildToParentMessage.ts:76
Instantiates a new ChildToParentMessageWriter or ChildToParentMessageReader object.
Type Parameters
| Type Parameter |
|---|
T extends SignerOrProvider |
Parameters
| Parameter | Type | Description |
|---|---|---|
parentSignerOrProvider | T | Signer or provider to be used for executing or reading the Child-to-Parent message. |
event | ChildToParentTransactionEvent | The event containing the data of the Child-to-Parent message. |
parentProvider? | Provider | Optional. Used to override the Provider which is attached to ParentSignerOrProvider in case you need more control. This will be a required parameter in a future major version update. |
Returns
ChildToParentMessageReaderOrWriter<T>
getChildToParentEvents()
static getChildToParentEvents(
childProvider: Provider,
filter: object,
position?: BigNumber,
destination?: string,
hash?: BigNumber,
indexInBatch?: BigNumber): Promise<ChildToParentTransactionEvent & object[]>;
Defined in: message/ChildToParentMessage.ts:109
Get event logs for ChildToParent transactions.
Parameters
| Parameter | Type | Description |
|---|---|---|
childProvider | Provider | |
filter | { fromBlock: BlockTag; toBlock: BlockTag; } | Block range filter |
filter.fromBlock | BlockTag | - |
filter.toBlock? | BlockTag | - |
position? | BigNumber | The batchnumber indexed field was removed in nitro and a position indexed field was added. For pre-nitro events the value passed in here will be used to find events with the same batchnumber. For post nitro events it will be used to find events with the same position. |
destination? | string | The parent destination of the ChildToParent message |
hash? | BigNumber | The uniqueId indexed field was removed in nitro and a hash indexed field was added. For pre-nitro events the value passed in here will be used to find events with the same uniqueId. For post nitro events it will be used to find events with the same hash. |
indexInBatch? | BigNumber | The index in the batch, only valid for pre-nitro events. This parameter is ignored post-nitro |
Returns
Promise<ChildToParentTransactionEvent & object[]>
Any classic and nitro events that match the provided filters.