hanzo_client/models/safe_proposal.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SafeProposal {
16 /// R is the r component of the MPC threshold signature over the Safe-tx hash.
17 #[serde(rename = "r", skip_serializing_if = "Option::is_none")]
18 pub r: Option<String>,
19 /// S is the s component of that signature.
20 #[serde(rename = "s", skip_serializing_if = "Option::is_none")]
21 pub s: Option<String>,
22 /// SafeAddress is the Safe contract this transaction is for.
23 #[serde(rename = "safeAddress", skip_serializing_if = "Option::is_none")]
24 pub safe_address: Option<String>,
25 /// SafeTxHash is the EIP-712 Safe transaction hash, bound to the Safe contract and the chain id — the value the owner approval signs.
26 #[serde(rename = "safeTxHash", skip_serializing_if = "Option::is_none")]
27 pub safe_tx_hash: Option<String>,
28 /// WalletID is the wallet whose Safe this is.
29 #[serde(rename = "walletId", skip_serializing_if = "Option::is_none")]
30 pub wallet_id: Option<String>,
31}
32
33impl SafeProposal {
34 pub fn new() -> SafeProposal {
35 SafeProposal {
36 r: None,
37 s: None,
38 safe_address: None,
39 safe_tx_hash: None,
40 wallet_id: None,
41 }
42 }
43}
44