-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Oura config for an instance of CEM-script #100
Merged
euonymos
merged 36 commits into
alexey/test-oura-filters
from
alexey/test-oura-filters-after-refactor
Nov 27, 2024
Merged
Generate Oura config for an instance of CEM-script #100
euonymos
merged 36 commits into
alexey/test-oura-filters
from
alexey/test-oura-filters-after-refactor
Nov 27, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Renegatto
added
enhancement
New feature or request
in-catalyst-milestone
Something needed to be done for Catalyst milestones to closed
labels
Sep 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
in-catalyst-milestone
Something needed to be done for Catalyst milestones to closed
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.
This PR introduces a function, that given a CEM-script instance will generate config for Oura, such that Oura will index all spendings from the CEM-script validator.
API
cem-script/src/Cardano/CEM/OuraConfig.hs
Line 51 in ae30268
The only variable section of the config is filters, the rest can be safely overwritten by the user.
The generated filter have a shape:
Testing
The change is tested against the
SimpleAuction
example.It feeds Oura with two transactions one of which spends from the validator address, and expect Oura to catch exactly that transaction.
The tests use oura github.com/Renegatto/oura/commit/bfcac25065719f9e3405acbbdf5fe782846ddf32 that can use unix socket in a datagram mode as a source of Txs. This has been made to simplify the testing process and avoid the need of spinning cardano node for it.
Maintenance
If the need to extend this functionality will arise, it can be handy to revert this commit: 7494b28
There was the WIP on making indexer to listen for a particular state transitions.