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

Update programs to accept multiple oracle data #1153

Merged
merged 14 commits into from
Nov 14, 2024

Conversation

JesseAbram
Copy link
Member

@JesseAbram JesseAbram commented Nov 6, 2024

Updates core to allow for multiple oracle inputs

pairs with entropyxyz/programs#94

@JesseAbram JesseAbram marked this pull request as ready for review November 13, 2024 15:53
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.

🥇 🦖

@@ -48,7 +48,7 @@ entropy-client={ version="0.3.0-rc.1", path="../client", default-features=false,
] }

# Programs
entropy-programs-runtime="0.10.0"
entropy-programs-runtime={ git="https://github.com/entropyxyz/programs.git", branch="master" }
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder where is a good place to put a reminder to ourselves that this will need re-publishing before the next release

Copy link
Member Author

Choose a reason for hiding this comment

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

mmm maybe release checklist? maybe an issue?

crates/client/src/client.rs Outdated Show resolved Hide resolved
@@ -263,7 +272,7 @@ pub mod pallet {
bytecode: new_program.clone(),
configuration_schema: configuration_schema.clone(),
auxiliary_data_schema: auxiliary_data_schema.clone(),
oracle_data_pointer: oracle_data_pointer.clone(),
oracle_data_pointers: oracle_data_pointers.clone(),
Copy link
Contributor

@ameba23 ameba23 Nov 14, 2024

Choose a reason for hiding this comment

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

Not directly related to this PR, but i can't see where we check that each oracle data pointer is not longer than MaxOracleKeyLength.

Or that the key exists in the oracle storage (although maybe that is less imported).

Copy link
Member Author

Choose a reason for hiding this comment

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

yes I was going to make an issue but pretty much either or is fine, since the oracle data is a bounded vec, so either we check the length or we check that it exists (in which case a length check is not needed imo, will make an issue

Copy link
Member Author

Choose a reason for hiding this comment

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

@JesseAbram JesseAbram merged commit 0629ad2 into master Nov 14, 2024
8 checks passed
@JesseAbram JesseAbram deleted the update-programs-to-accept-multiple-oracle-data branch November 14, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants