fireblocks_sdk/models/
solana_instruction_with_value.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SolanaInstructionWithValue {
16    /// The name of the instruction
17    #[serde(rename = "name")]
18    pub name: String,
19    /// The discriminator for the instruction. Acts as a function selector
20    #[serde(rename = "discriminator")]
21    pub discriminator: Vec<f64>,
22    #[serde(rename = "accounts")]
23    pub accounts: Vec<models::SolAccountWithValue>,
24    /// The arguments of the instruction
25    #[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}