fireblocks_sdk/models/solana_blockchain_data.rs
1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14/// SolanaBlockchainData : Additional fields per blockchain - can be empty or
15/// missing if not initialized or no additional info exists. The type depends on
16/// the chainDescriptor value. For Solana (SOL), stake account address. For
17/// Ethereum (ETH), an empty object is returned as no specific data is
18/// available.
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct SolanaBlockchainData {
21 /// The stake account address matching the stakeAccountId.
22 #[serde(rename = "stakeAccountAddress")]
23 pub stake_account_address: String,
24 /// The value of the change level in the BIP44 path which was used to derive
25 /// the stake account address
26 #[serde(rename = "stakeAccountDerivationChangeValue")]
27 pub stake_account_derivation_change_value: f64,
28}
29
30impl SolanaBlockchainData {
31 /// Additional fields per blockchain - can be empty or missing if not
32 /// initialized or no additional info exists. The type depends on the
33 /// chainDescriptor value. For Solana (SOL), stake account address. For
34 /// Ethereum (ETH), an empty object is returned as no specific data is
35 /// available.
36 pub fn new(
37 stake_account_address: String,
38 stake_account_derivation_change_value: f64,
39 ) -> SolanaBlockchainData {
40 SolanaBlockchainData {
41 stake_account_address,
42 stake_account_derivation_change_value,
43 }
44 }
45}