Skip to content

chore: update near-* dependencies to 0.31 release #1379

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

Merged
merged 3 commits into from
Aug 15, 2025

Conversation

vsavchyn-dev
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Aug 15, 2025

Codecov Report

❌ Patch coverage is 64.28571% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.81%. Comparing base (5904e4f) to head (a6a5cb7).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
near-sdk/src/environment/mock/receipt.rs 0.00% 14 Missing ⚠️
near-sdk/src/store/unordered_map/mod.rs 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1379      +/-   ##
==========================================
- Coverage   80.83%   80.81%   -0.03%     
==========================================
  Files         104      104              
  Lines       15443    15457      +14     
==========================================
+ Hits        12483    12491       +8     
- Misses       2960     2966       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +137 to +156
LogicMockAction::DeployGlobalContract { receipt_index, code, mode } => {
let contract_mode: GlobalContractDeployMode = match mode {
GlobalContractDeployModeVM::AccountId => GlobalContractDeployMode::AccountId,
GlobalContractDeployModeVM::CodeHash => GlobalContractDeployMode::CodeHash,
};

Self::DeployGlobalContract { receipt_index, code, mode: contract_mode }
}
LogicMockAction::UseGlobalContract { receipt_index, contract_id } => {
let contract_identifier: GlobalContractIdentifier = match contract_id {
GlobalContractIdentifierVM::AccountId(account_id) => {
GlobalContractIdentifier::AccountId(account_id)
}
GlobalContractIdentifierVM::CodeHash(code_hash) => {
GlobalContractIdentifier::CodeHash(code_hash)
}
};

Self::UseGlobalContract { receipt_index, contract_id: contract_identifier }
}
Copy link
Contributor Author

@vsavchyn-dev vsavchyn-dev Aug 15, 2025

Choose a reason for hiding this comment

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

I believe there is a better way to do this, however, as GlobalContractDeployMode and GlobalContractIdentifier in near_vm_runner do not derive PartialEq and Eq, I see using previously mentioned types from near_primitives::action as one of the main solutions to this (esp, as near_primitives already included for unit-testing feature)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good. Maybe even better comparing to exposing some near vm runner types

Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

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

@race-of-sloths score 3

@frol frol enabled auto-merge (squash) August 15, 2025 10:02
@race-of-sloths
Copy link

race-of-sloths commented Aug 15, 2025

@vsavchyn-dev Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
Do you want to apply for monthly streak? Get 8+ score for a single PR this month and receive boost for race-of-sloths!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@frol 3

Your contribution is much appreciated with a final score of 3!
You have received 30 Sloth points for this contribution

@frol received 25 Sloth Points for reviewing and scoring this pull request.

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

@frol frol merged commit 4bd7500 into near:master Aug 15, 2025
55 of 57 checks passed
@github-project-automation github-project-automation bot moved this from NEW❗ to Shipped 🚀 in DevTools Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Shipped 🚀
Development

Successfully merging this pull request may close these issues.

4 participants