New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aresrpg/sui-checkpoint-reader

Package Overview
Dependencies
Maintainers
0
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aresrpg/sui-checkpoint-reader - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "@aresrpg/sui-checkpoint-reader",
"version": "3.0.0",
"version": "3.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -173,11 +173,31 @@ <p align=center>

- `from`: Start processing from this checkpoint number (default: `1`).
- `to`: Stop processing once this checkpoint number is reached (default: `Infinity`).
- `get_remote_checkpoint`: Function to fetch a checkpoint array buffer from a number.
- `concurrent_downloads`: Number of concurrent downloads allowed while catching up (default: `25`).
- `known_types`: Generated BCS for types you want to parse.
- `checkpoints_folder`: Local folder where your Sui node is dumping the checkpoint files (default: `''`).
- `cleanup_checkpoints`: Option to delete already processed checkpoint files (default: `false`).
- `process_checkpoint`: Function to process a checkpoint.
`from`: Start processing from this checkpoint number (default: 1).
`to`: Stop processing once this checkpoint number is reached (default: Infinity).
`get_remote_checkpoint`: Function to fetch a checkpoint array buffer from a number.
`concurrent_downloads`: Number of concurrent downloads allowed while catching up (default: 25).
`known_types`: Generated BCS for types you want to parse.
`checkpoints_folder`: Local folder where your Sui node is dumping the checkpoint files (default: '').
`cleanup_checkpoints`: Option to delete already processed checkpoint files (default: false).
`process_checkpoint`: Function to process a checkpoint.
### `download_and_store_objects(options)`
**Options:**
`network`: Network to download the snapshot from (e.g., 'testnet').
`epoch`: Epoch of the snapshot.
`known_types`: Generated BCS for types you want to parse.
`save_objects`: If true, saves .obj files locally under /epoch_X/\*.obj (default: false).
`start_bucket`: Optional start file (e.g., 1_1.obj) (default: 1).
`start_part`: Part to start from (default: 1).
`db_folder`: Folder to store the leveldb files.
### `read_snapshot_objects(db_folder)`
`db_folder`: The leveldb folder to read the objects from.
Returns:
An async generator yielding [db, object] pairs for processing.
## Contributing 🛠️

@@ -184,0 +204,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc