Skip to content

Commit

Permalink
feat(logic-bindings)!: match v7 okp4d logic module model
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Mar 4, 2024
1 parent 29d759c commit 32e114e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/okp4-logic-bindings/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ pub struct AskResponse {
pub height: u64,
pub gas_used: u64,
pub answer: Option<Answer>,
pub user_output: Option<String>,
}

#[derive(Serialize, Deserialize, Default, Clone, PartialEq, Eq, JsonSchema, Debug)]
#[serde(rename_all = "snake_case")]
pub struct Answer {
pub success: bool,
pub error: Option<String>,
pub has_more: bool,
pub variables: Vec<String>,
pub results: Vec<Result>,
Expand All @@ -33,6 +32,7 @@ pub struct Answer {
#[derive(Serialize, Deserialize, Default, Clone, PartialEq, Eq, JsonSchema, Debug)]
#[serde(rename_all = "snake_case")]
pub struct Result {
pub error: Option<String>,
pub substitutions: Vec<Substitution>,
}

Expand Down

0 comments on commit 32e114e

Please sign in to comment.