Skip to content

feat(cast abi-encode-event): add support for event encoding to get topics and data #10905

Open
@Jds-23

Description

@Jds-23

Component

Cast

Describe the feature you would like

Currently, there's no way to encode event to get topics. It would be useful to have something like

cast abi-encode "event Approved(address,uint256)" 0x... 1
output:
[topic1]: 0xf13bfe0b6ec5df39265dccb0a01a09aa4162489c7a083dc6670bde0255d02ca7
[topic1]: 0x00000000000000000000000083362b604ead96f82dd1c1dd578308b79b710155

It can either be cast abi-encode or cast pretty-event.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions