onflow / cadence

Cadence, the resource-oriented smart contract programming language 🏃‍♂️
https://cadence-lang.org
Apache License 2.0
534 stars 138 forks source link

Refactor domains to prevent import cycles and simplify maintenance #3672

Closed fxamacker closed 2 weeks ago

fxamacker commented 2 weeks ago

Issue to be solved

Currently, different domains are defined in these packages:

This can cause import cycles in future PRs that use domains across these packages. Also, having domains defined in different packages creates risk of overlooking domains.

Suggested Solution

We can define all domains in one place to help prevent import cycles and make it easier to maintain domains.