Skip to content

Commit

Permalink
Oracle data type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Dec 9, 2024
1 parent de27c61 commit db8ee33
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/oracle-example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@

extern crate alloc;

use alloc::{string::ToString, vec::Vec};
use codec::Decode;
use alloc::{
string::{String, ToString},
vec,
vec::Vec,
};
use codec::{Decode, Encode};
use entropy_programs_core::{bindgen::Error, bindgen::*, export_program, prelude::*};
use serde::{Deserialize, Serialize};
/// JSON-deserializable struct that will be used to derive the program-JSON interface.
Expand All @@ -18,6 +22,7 @@ pub struct UserConfig {}
#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)]
pub struct AuxData {}

pub const Oracle_Data: [&str; 1] = ["block_number_entropy"];
// TODO confirm this isn't an issue for audit
register_custom_getrandom!(always_fail);

Expand Down

0 comments on commit db8ee33

Please sign in to comment.