Skip to content

Commit

Permalink
make some fields optional
Browse files Browse the repository at this point in the history
-DepositOptions
-FailedDeposit
  • Loading branch information
jcompagni10 committed Aug 31, 2024
1 parent aacd22a commit f17d7f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neutron-sdk/src/bindings/dex/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ pub struct TradePairID {
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, Default)]
#[serde(rename_all = "snake_case")]
pub struct FailedDeposit {
pub deposit_idx: u64,
pub error: String,
pub deposit_idx: Option<u64>,
pub error: Option<String>,
}

// TODO implement math for PrecDec
Expand Down Expand Up @@ -110,8 +110,8 @@ impl From<String> for PrecDec {
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub struct DepositOptions {
pub disable_autoswap: bool,
pub fail_tx_on_bel: bool,
pub disable_autoswap: Option<bool>,
pub fail_tx_on_bel: Option<bool>,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
Expand Down

0 comments on commit f17d7f8

Please sign in to comment.