decode_gmx_event
Documentation for eth_defi.gmx.events.decode_gmx_event function.
- decode_gmx_event(web3, log)
Decode a single GMX EventLog from a transaction log entry.
This function handles EventLog, EventLog1, and EventLog2 events emitted by the GMX EventEmitter contract.
- Parameters
web3 (web3.main.Web3) – Web3 instance
log (dict) – A single log entry from transaction receipt
- Returns
Parsed GMXEventData or None if not a GMX event
- Return type