feat: make token distribution an option #1253
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.
Description
Summary generated by Reviewpad on 01 Feb 24 09:08 UTC
This pull request contains the following changes:
The
main.rs
file adds a new moduletoken_distribution
when the feature "distribution" is enabled.The
Cargo.toml
file adds a new feature calleddistribution
, with the value set to["bitcoin"]
. It also modifies the dependency onbitcoin
to includeoptional = true
.The
token_distribution.rs
file is a new file added to thesn_faucet/src
directory. It includes code for loading and managing the distribution of tokens in the MaidSafe network, defines constants and types, and introduces structs for representing MaidSafe balances and snapshots.The
faucet_server.rs
file underwent several changes, including the addition of#[cfg(feature = "distribution")]
attribute to conditionally include code based on the "distribution" feature. It also removes imports, constants, types, and functions, modifies existing functions, and conditional loading ofmaide_snapshot
andmaide_pubkeys
from thetoken_distribution
module.If you need further assistance or explanation on any of these changes, please let me know.