update nearcore to 2.7.0 #412
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the project to support NEAR v2.7.0 and Rust 1.86.0, along with several dependency upgrades and small code improvements to maintain compatibility with the latest NEAR ecosystem changes. It also adds documentation to clarify dependency management and branch usage.
Dependency and Environment Updates
Cargo.tomlto use forks based on NEAR v2.7.0, and bumped thenear-jsonrpc-clientandnear-lake-frameworkversions to match their latest forks.Cargo.toml,rust-toolchain, and all Dockerfiles (rpc-server/Dockerfile,state-indexer/Dockerfile,tx-indexer/Dockerfile). [1] [2] [3] [4] [5]CHANGELOG.md.Documentation Improvements
README.mddescribing branch usage, NEAR dependency management, and the rationale for using forks instead of crates.io releases.Compatibility and Refactoring
configuration/src/lib.rsandrpc-server/src/modules/network/methods.rsto use the newEpochConfigStoreandAllEpochConfig::from_epoch_config_storeAPIs, ensuring compatibility with NEAR v2.7.0. [1] [2]rpc-server/src/modules/transactions/methods.rsto match the new structure ofTransactionInfo::Transactionin NEAR v2.7.0.Feature Additions and Minor Fixes
CodeStoragefor handling global contract actions required by the updated NEAR VM runner API.rpc-server/src/modules/queries/methods.rs, with placeholder errors for unimplemented features (ViewGlobalContractCode,ViewGlobalContractCodeByAccountId). [1] [2]