Finschia / cosmwasm

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

Add a New Way To Issue Events/Attribute To x/wasm #265

Closed loloicci closed 1 year ago

loloicci commented 1 year ago

This issue add a new way to issue events/attributes to x/wasm. The aim of it is mainly

This issue will be solved with some PRs. These changes is done in dynamic link branch and merged into main with dynamic link branch.

Add Event Manager To Context Data of Instance Environment

Add EventManager to context_data of instance.env and enable issing events/attributes to it via Deps.api

(https://github.com/line/cosmwasm/pull/266)

Use The Event Manager's Infomation In x/wasm

(https://github.com/line/wasmvm/pull/88)

Copy the EventManager Between Dynamic Link Callee/Caller

(https://github.com/line/cosmwasm/pull/269 and https://github.com/line/wasmvm/pull/89)

zemyblue commented 1 year ago

In this case, can we use default event way in the contract? And is it backwards compatible?

loloicci commented 1 year ago

In this case, can we use default event way in the contract? And is it backwards compatible?

Thank you for your comment. In the 2nd part, the backward compatibility of contracts was broken. I reconsidered and found we should keep the backward compatibility with v1.0.0 contracts, so I changed the 2nd part of this issue.

loloicci commented 1 year ago

closed via #266, https://github.com/Finschia/wasmvm/pull/88 and #273