898 releases (73 breaking)

new 0.106.0-alpha.1 Apr 17, 2024
0.105.6 Apr 10, 2024
0.105.3 Mar 28, 2024
0.100.31 Dec 29, 2023
0.25.18 Dec 21, 2020

#54 in #management

Download history 25/week @ 2023-12-22 116/week @ 2023-12-29 346/week @ 2024-01-05 598/week @ 2024-01-12 402/week @ 2024-01-19 169/week @ 2024-01-26 173/week @ 2024-02-02 722/week @ 2024-02-09 1340/week @ 2024-02-16 486/week @ 2024-02-23 352/week @ 2024-03-01 202/week @ 2024-03-08 2287/week @ 2024-03-15 1588/week @ 2024-03-22 476/week @ 2024-03-29 294/week @ 2024-04-05

4,645 downloads per month
Used in sn_node_rpc_client

GPL-3.0 license

1.5MB
22K SLoC

Safe Network Node (sn_node)

Overview

The sn_node directory provides the safenode binary, which is the node implementation for the Safe Network. This directory contains the core logic for node operations, including API definitions, error handling, event management, and data validation.

Table of Contents

Installation

Follow the main project's installation guide to set up the safenode binary.

Usage

To run the safenode binary, follow the instructions in the main project's usage guide.

Directory Structure

  • src/: Source code files
    • api.rs: API definitions
    • error.rs: Error types and handling
    • event.rs: Event-related logic
    • get_validation.rs: Validation for GET requests
    • put_validation.rs: Validation for PUT requests
    • replication.rs: Data replication logic
    • spends.rs: Logic related to spending tokens or resources
  • tests/: Test files
    • common/mod.rs: Common utilities for tests
    • data_with_churn.rs: Tests related to data with churn
    • sequential_transfers.rs: Tests for sequential data transfers
    • storage_payments.rs: Tests related to storage payments
    • verify_data_location.rs: Tests for verifying data locations

Testing

To run tests, navigate to the sn_node directory and execute:

cargo test

Contributing

Please feel free to clone and modify this project. Pull requests are welcome.

Conventional Commits

We follow the Conventional Commits specification for all commits. Make sure your commit messages adhere to this standard.

License

This Safe Network repository is licensed under the General Public License (GPL), version 3 (LICENSE http://www.gnu.org/licenses/gpl-3.0.en.html).


Feel free to modify or expand upon this README as needed. Would you like to add or change anything else?

Dependencies

~51–93MB
~2M SLoC