Skip to content

Add events to ContractTypes.py#876

Merged
sentilesdal merged 2 commits intomainfrom
matt-pypechain-events
Sep 19, 2023
Merged

Add events to ContractTypes.py#876
sentilesdal merged 2 commits intomainfrom
matt-pypechain-events

Conversation

@sentilesdal
Copy link
Copy Markdown
Contributor

@sentilesdal sentilesdal commented Sep 19, 2023

Adds events to the types output file. The events are instantiated versions of ABIEvent, which is a TypedDict. The output looks as follows:

AddLiquidity = ABIEvent(
    anonymous = False,
    inputs = [
        ABIEventParams(indexed=False, name="baseAmount", type="uint256"),
    ],
    name = "AddLiquidity",
    type = "event",
)```

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elf-simulations ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2023 5:15pm

Comment thread lib/pypechain/README.md
Copy link
Copy Markdown
Contributor

@dpaiton dpaiton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants