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: use IterableMap for near contract #209

Merged
merged 35 commits into from
Feb 13, 2025

Conversation

ChaoticTempest
Copy link
Contributor

In the spirit of breaking changes, use IterableMap instead of LookupMap just so we don't maintain that pesky request counter anymore.

@ChaoticTempest ChaoticTempest force-pushed the phuong/feat/contract-iterable-map branch from 4d7efca to becb428 Compare February 13, 2025 02:15
volovyks
volovyks previously approved these changes Feb 13, 2025
Copy link
Contributor

@volovyks volovyks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Why haven't we used this structure before? Probably because it’s not in collections.

From what I see, the only breaking change here is the SignatureResult part. Overall, I do not want to invest time in this API since it is unclear if we need it. Maybe we will rewrite it to work like the one on Ethereum, with a significantly simplified design.

We can afford breaking changes here now or after the release since technically we are not releasing on NEAR. We will need to fix some things in our infra and tooling, let's merge this if you are ok with that.

@ChaoticTempest
Copy link
Contributor Author

SignatureResult isn't a breaking change since it's only used within the contract

Base automatically changed from phuong/chore/refactor-signature to develop February 13, 2025 17:22
@ChaoticTempest ChaoticTempest dismissed volovyks’s stale review February 13, 2025 17:22

The base branch was changed.

@ChaoticTempest ChaoticTempest merged commit 1b2d1f1 into develop Feb 13, 2025
2 of 3 checks passed
@ChaoticTempest ChaoticTempest deleted the phuong/feat/contract-iterable-map branch February 13, 2025 17:40
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.

2 participants