mod argument;
pub use argument::Argument;
mod bytes;
mod equal;
mod find;
mod parse;
mod serialize;
mod to_bits;
mod to_fields;
use crate::{Access, DynamicFuture, Identifier, Plaintext, ProgramID, Value};
use snarkvm_console_network::Network;
use snarkvm_console_types::prelude::*;
#[derive(Clone)]
pub struct Future<N: Network> {
program_id: ProgramID<N>,
function_name: Identifier<N>,
arguments: Vec<Argument<N>>,
}
impl<N: Network> Future<N> {
#[inline]
pub const fn new(program_id: ProgramID<N>, function_name: Identifier<N>, arguments: Vec<Argument<N>>) -> Self {
Self { program_id, function_name, arguments }
}
#[inline]
pub const fn program_id(&self) -> &ProgramID<N> {
&self.program_id
}
#[inline]
pub const fn function_name(&self) -> &Identifier<N> {
&self.function_name
}
#[inline]
pub fn arguments(&self) -> &[Argument<N>] {
&self.arguments
}
}