Conversation
…Details (#402) * :feat(tx-details-storage): Extract the storage logic into a trait to be able to introduce other storages * Update tx-indexer to work with the tx-details-storage Storage trait * Update rpc-server to use tx-details-storage Storage trait * Rename TxDetailsStorage to ScyllaDbTxDetailsStorage * Extend tx-details-storage::Storage trait to accept block_height for postgres * Move the Postgres database interaction from tx-details-storage to database crate, optimize the code according to review suggestions * Move ScyllaDB interaction from tx-details-storage to database crate, add necessary implementation to keep the code consistent * tx-indexer can use postgres, read-rpc-server can get transactions from postgres * Introduce tx_details_storage_provider config to choose between Postgres (default) and ScyllaDb, implement the choice in the tx-indexer and rpc-server configuration * Move SQL migrations from the code to files * Update CHANGELOG and READMEs
* fix lake auth * remove github release for near-state-indexer
* feat(rpc-server): Custom method to emulate transaction * fmt * function call Code storage update for transaction emulation * collect cross call results * make clippy happy * tx emulator improvement * add docstring * add docs for new custom method * improvement
…s and updates (#410) * refactor(database,state-indexer): Introduce compact schema for state_changes that is more efficient to read from * chore(database, logic-state-indexer): Split database/postgres/state_indexer into files. Remove redundant block_hash from handle_state_changes method in logic-state-indexer * chore(database, state-indexer): Add additional metrics to monitor how long state indexer writes take time and how many partitions touched * refactor(database, state-indexer): Add postgresql function to match partition number. Switch CTE to unnest for updates * refactor(database, state-indexer): Replace numberic(20,0) for block_heights to biging (i64) to speed inserts and updates up * refactor(database, rpc-server): Update read queries related to states to use i64 instead of BigDecimal * add migration scripts * add indexes for new tables * start state indexer from interaption block * paginated state optimization * fix paginated state * fix query * fix page_token --------- Co-authored-by: Yurii Koba <kobayurii88@gmail.com>
* update nearcore to 2.7.0 * update readme * update changelog
* add doc about migration via sxlx * update readme
khorolets
approved these changes
Aug 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What's Changed
tx_details_storageemulate_txSupported Nearcore Version