Endpoints
Endpoints are the externally callable entry points of a Coco logic. Endpoints define named inputs and named return values and they are invoked in MOI transactions. Endpoints may return values, change state or execute asset operations. When they mutate logic's or actors' state, they need to be marked as dynamic and if they observe a state, they need to be static. By default, endpoints are pure, meaning they don't access any state at all.
Always keep in mind that execution of dynamic endpoints that mutate logic's state can't happen in parallel.Muating logic's state in dynamic endpoints should be used only for initialization, most endpoints should only modify actor's state what can happen in parallel.