Skip to content

Restrict position connector constructors#301

Draft
liobrasil wants to merge 1 commit intomainfrom
lionel/position-connector-visibility
Draft

Restrict position connector constructors#301
liobrasil wants to merge 1 commit intomainfrom
lionel/position-connector-visibility

Conversation

@liobrasil
Copy link
Copy Markdown
Contributor

Summary

  • restrict PositionSink construction to contract scope
  • restrict PositionSource construction to contract scope
  • keep connector creation routed through the existing Position.createSink* and Position.createSource* helpers

Why

This aligns constructor visibility with the intended API surface and keeps position connector instantiation localized to the contract implementation.

Impact

Existing flows that create connectors through Position are unchanged. The change only tightens direct constructor access.

Validation

  • flow test cadence/tests/position_lifecycle_happy_test.cdc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant