subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

Problem: EVM Typegen generates wrong log event structure #213

Closed georgeciubotaru closed 4 months ago

georgeciubotaru commented 1 year ago

Example of a valid generation structure:

    TransferSingle: new LogEvent<([operator: string, from: string, to: string, id: bigint, value: bigint] & {operator: string, from: string, to: string, id: bigint, value: bigint})>(
        abi, '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'
    ),

wrong generation structure

 TransferBatch: new LogEvent<([operator: string, from: string, to: string, ids: Array<bigint>, values: Array<bigint>] & {operator: string, from: string, to: string, ids: Array<bigint>})>(
        abi, '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'
    ),

Problem: In the TransferBatch event the values param is not returned