Closed loloicci closed 1 year ago
In this case, can we use default event way in the contract? And is it backwards compatible?
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.
closed via #266, https://github.com/Finschia/wasmvm/pull/88 and #273
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
tocontext_data
of instance.env and enable issing events/attributes to it viaDeps.api
(https://github.com/line/cosmwasm/pull/266)
Use The Event Manager's Infomation In x/wasm
removeevents
andattributes
fields from theResponse
(the returning value of instantiate, execute, migrate, and etc...)EventManager
's information to above field(https://github.com/line/wasmvm/pull/88)
Copy the EventManager Between Dynamic Link Callee/Caller
copy (caller -> callee) on instantiatecopy (callee -> caller) on destruct(https://github.com/line/cosmwasm/pull/269 and https://github.com/line/wasmvm/pull/89)