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

Consider utilizing concrete Ctx over Ctx-like traits #406

Open
ChaoticTempest opened this issue Jan 10, 2024 · 1 comment
Open

Consider utilizing concrete Ctx over Ctx-like traits #406

ChaoticTempest opened this issue Jan 10, 2024 · 1 comment
Labels
Emerging Tech Emerging Tech flying formation at Pagoda Near BOS NEAR BOS team at Pagoda

Comments

@ChaoticTempest
Copy link
Member

Currently, Ctx object is being used quite frequently everywhere in the multichain protocol. We can slim it down to just utilizing the object itself instead of passing it as traits, since the traits are starting to overlap and there doesn't seem to be much of a reason to keep them as traits.

@ChaoticTempest ChaoticTempest added Near BOS NEAR BOS team at Pagoda Emerging Tech Emerging Tech flying formation at Pagoda labels Jan 10, 2024
@volovyks
Copy link
Collaborator

Now the situation is a bit different. Both state and Ctx are passed around. Traits allow us to encapsulate all unnecessary data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Emerging Tech Emerging Tech flying formation at Pagoda Near BOS NEAR BOS team at Pagoda
Projects
Status: Backlog
Development

No branches or pull requests

2 participants