Skip to content
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

Allow multiple oracle inputs #94

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

JesseAbram
Copy link
Member

@JesseAbram JesseAbram commented Nov 6, 2024

This allows input for oracle data to be multiple inputs it pairs with entropyxyz/entropy-core#1153

I do not change the program version here as we do not have the infrastructure yet to support that (as well it really only makes sense for mainnet)

@JesseAbram JesseAbram marked this pull request as ready for review November 8, 2024 16:27
Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't totally understand the bigger picture of where we are going with this but the code itself looks great.

@@ -85,7 +85,7 @@ impl Runtime {
program: &[u8],
signature_request: &SignatureRequest,
config: Option<&[u8]>,
oracle_data: Option<&[u8]>,
oracle_data: Option<&[Vec<u8>]>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all other arguments use &[u8] instead of Vec<u8> i guess maybe we should do that here. I'm not sure it makes any difference to the caller since its inside a reference to an array. So probably can leave it as it is.

@JesseAbram
Copy link
Member Author

I don't totally understand the bigger picture of where we are going with this but the code itself looks great.

pretty much and happy to walk you through it sometime but the input acts as a pointer to an oracle mapping in core, currently it only allowed one key heading, now it allows multiple

@JesseAbram JesseAbram merged commit c689ad3 into master Nov 12, 2024
2 checks passed
@JesseAbram JesseAbram deleted the Allow-multiple-oracle-inputs branch November 12, 2024 15:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants