pokt-network / poktroll

The official Shannon upgrade implementation of the Pocket Network Protocol implemented using Rollkit.dev
MIT License
15 stars 6 forks source link

[Relay Mining] Scaffold the RelayMiningDifficulty type #548

Closed Olshansk closed 1 month ago

Olshansk commented 1 month ago

⚠️ proto/poktroll/tokenomics/relay_mining_difficulty.proto is the most imporant file to review ⚠️

Summary

Scaffold the RelayMiningDifficulty type.

  1. I ran the following command:
    ignite scaffold map --module tokenomics --no-message relay-mining-difficulty block_height:int num_relays_ema:uint hash_target:string --index service_id --yes
  2. Manually update some naming and types
  3. Fix some imports
  4. Auto-save to format files

Issue

Type of change

Select one or more:

Testing

Sanity Checklist


:rocket: This description was created by Ellipsis for commit 8bea8376e489a82d4a52d00e6722f2a948727dc7

Summary:

This PR introduces the RelayMiningDifficulty type and integrates it with CRUD operations, genesis handling, and query services within the tokenomics module.

Key points:


Generated with :heart: by ellipsis.dev

github-actions[bot] commented 1 month ago

The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. If you just created a pull request, you might need to push another commit to produce a container image DevNet can utilize to spin up infrastructure. You can use make trigger_ci to push an empty commit.