Skip to content

Commit

Permalink
Merge branch 'issues/517/refactor/app-module' into issues/517/refacto…
Browse files Browse the repository at this point in the history
…r/ring-client

* issues/517/refactor/app-module:
  [Relayminer] Query for on-chain session param `num_blocks_per_session` (#538)
  chore: udpate comments
  refactor: rename methods which use default shared params with suffix `WithDefaultParams`
  [Relay Mining] Relay Mining math helpers (#549)
  [Relay Mining] Scaffold the RelayMiningDifficulty type (#548)
  • Loading branch information
bryanchriswhite committed May 29, 2024
2 parents ea0f044 + 8ce12f5 commit 214c250
Show file tree
Hide file tree
Showing 46 changed files with 5,889 additions and 204 deletions.
15 changes: 15 additions & 0 deletions .prompts/test_suggestions.prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
temperature: 0.5
maxTokens: 4096
---
<system>
You are a principal software engineer.
</system>

{{{ input }}}

You have been provided two files:
1. A source code file
2. A unit test file

Please provide a list of unit test names/descriptions that you believe
are still missing. Do not actually implement them.
17 changes: 17 additions & 0 deletions .prompts/unit_tests.prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
temperature: 0.5
maxTokens: 4096
---
<system>
You are a principal software engineer.
</system>

{{{ input }}}

Write unit tests for the code selected., following each of these instructions:
- Follow the best and latests practices of golang
- Where appropriate use `github.com/stretchr/testify/require`
- If necessary, create a tests struct to iterate over: `tests := []struct {
- Include at least 2 edge cases and 5 core cases
- The tests should be complete and sophisticated
- Give the tests just as chat output, don't edit any file
- Just give the code, no need for an explanation
215 changes: 187 additions & 28 deletions api/poktroll/tokenomics/genesis.pulsar.go

Large diffs are not rendered by default.

Loading

0 comments on commit 214c250

Please sign in to comment.