Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tokens): modify how we share global state across features (gar, arns, etc) #17

Merged
merged 4 commits into from
May 13, 2024

Conversation

dtfiedler
Copy link
Collaborator

Learning more about lua and how we can create dependency like injection across parts of the contract.

dtfiedler added 4 commits May 10, 2024 15:12
I believe this is a better way to manage dependencies accross the contract. The main.lua will set global functions in state, but they can reference or require them directly if they are not available. This makes testing trivial and aligns better with how you would write the contract using classes and normal DI.
@dtfiedler dtfiedler merged commit 4bacea8 into develop May 13, 2024
2 checks passed
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