fireblocks_sdk/models/
solana_instruction_with_value.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SolanaInstructionWithValue {
16 #[serde(rename = "name")]
18 pub name: String,
19 #[serde(rename = "discriminator")]
21 pub discriminator: Vec<f64>,
22 #[serde(rename = "accounts")]
23 pub accounts: Vec<models::SolAccountWithValue>,
24 #[serde(rename = "args")]
26 pub args: Vec<models::SolParameterWithValue>,
27}
28
29impl SolanaInstructionWithValue {
30 pub fn new(
31 name: String,
32 discriminator: Vec<f64>,
33 accounts: Vec<models::SolAccountWithValue>,
34 args: Vec<models::SolParameterWithValue>,
35 ) -> SolanaInstructionWithValue {
36 SolanaInstructionWithValue {
37 name,
38 discriminator,
39 accounts,
40 args,
41 }
42 }
43}