You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK should provide support for querying and parsing these events. Currently the SDK supports flow.AccountCreated and the (now deprecated) flow.AccountUpdated event, but it should should all four events above.
TBH I'm not in love with the existing approach, so definitely open to alternatives. Regardless, it probably makes sense to eventually have a codegen solution that generates these structs from the Cadence source.
Flow defines the following built-in system events which are emitted when creating and updating accounts:
The SDK should provide support for querying and parsing these events. Currently the SDK supports
flow.AccountCreated
and the (now deprecated)flow.AccountUpdated
event, but it should should all four events above.For reference, these events are defined in Cadence here: https://github.com/onflow/cadence/blob/30a200f9c324a208336e233b8b3293370a68a3ed/runtime/stdlib/flow_builtin.go#L219-L246
Definition of Done
flow.AccountCreated
flow.AccountKeyAdded
flow.AccountKeyRemoved
flow.AccountCodeUpdated
flow.AccountCreated
as native Go valuesflow.AccountKeyAdded
as native Go valuesflow.AccountKeyRemoved
as native Go valuesflow.AccountCodeUpdated
as native Go valuesflow.AccountCreated
flow.AccountKeyAdded
flow.AccountKeyRemoved
flow.AccountCodeUpdated
The text was updated successfully, but these errors were encountered: