Updates for Oracles to transition to helium-lib #401
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.
Companion Oracles PR helium/oracles#850
dc::burn_delegated()
The
iot_packet_verifier
andmobile_packet_verifier
in Oracles burn DC on behalf of OUI operators and Data Users respectively.boosting::start_boost()
The
boost_manager
starts the clock for boosted hexes when they have yielded their first rewards in an epoch.Because
helium_lib
also re-exportshelium_anchor_gen::hexboosting
, I named the moduleboosting
to hopefully be different enough to avoid confusion.Multiple hexes can have their boost periods started in a single transaction. Currently, whoever is calling
start_boost()
needs to make sure to restrict the number of boosted hexes it is providing. It would make sense to me to put that inhelium-lib
and potentially return multiple transactions for the caller to submit, but I haven't gotten there yet, and have not been able to think of a nice way to provide control over transaction sizes.Added Keypair conversion
In trying to keep the separation between
solana_sdk::signer::keypair::Keypair
andhelium_lib::keypair::Keypair
, rather than providing ahelium_lib
version ofsolana_sdk::signature::read_keypair_file
, I added aFrom
impl to go from solana to helium-lib.solana_sdk::signature::read_keypair_file
returns aBox<dyn std::error::Error>
to coverio::Error
and aserde_json::Error
. I wasn't sure of a nice way to add this error tohelium_lib::error::Error
, so I opted for the conversion.