Creates a ProposalExecution event listener for a given Bridge instance.
Proposal execution event usually emits after funds are transferred from the bridge contract on the destination chain.
Example
constdepositNonce = 42// get your depositNonce from deposit event constbridgeInstance = Bridge__factory.connect(...) // your bridge contract instance from sygma-contracts createProposalExecutionEventListener( depositNonce, bridgeInstance, (originDomainId, depositNonce, dataHash, tx) => { console.log( "execution events callback", originDomainId, depositNonce, dataHash, tx ); } );
Returns
The Bridge Contract instance with the event listener attached.
Creates a ProposalExecution event listener for a given Bridge instance. Proposal execution event usually emits after funds are transferred from the bridge contract on the destination chain.
Example
Returns
The Bridge Contract instance with the event listener attached.