Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

feat: Add derive macro "IntoEvent" #161

Closed loloicci closed 2 years ago

loloicci commented 2 years ago

Description

This PR adds a derive macro IntoEvent to package/std. This macro helps make an event from a structure. When a structure type is defined with IntoEvent, this macro makes a cast function from the structure to Event. Added code are the same as https://github.com/loloicci/line-cosmwasm/pull/1

Closes #143

Types of changes

Checklist