Skip to main content

ProgrammableTransactionExt

Trait ProgrammableTransactionExt 

Source
pub trait ProgrammableTransactionExt: Sized + Sealed {
    // Required methods
    fn input_objects(&self) -> UserInputResult<Vec<InputObjectKind>>;
    fn receiving_objects(&self) -> Vec<ObjectReference>;
    fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult;
    fn shared_input_objects(
        &self,
    ) -> impl Iterator<Item = SharedObjectReference>;
    fn move_calls(&self) -> Vec<(&ObjectId, &str, &str)>;
    fn non_system_packages_to_be_published(
        &self,
    ) -> impl Iterator<Item = &Vec<Vec<u8>>>;
}

Required Methods§

Source

fn input_objects(&self) -> UserInputResult<Vec<InputObjectKind>>

Source

fn receiving_objects(&self) -> Vec<ObjectReference>

Source

fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult

Source

fn shared_input_objects(&self) -> impl Iterator<Item = SharedObjectReference>

Source

fn move_calls(&self) -> Vec<(&ObjectId, &str, &str)>

Source

fn non_system_packages_to_be_published( &self, ) -> impl Iterator<Item = &Vec<Vec<u8>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ProgrammableTransactionExt for ProgrammableTransaction

Source§

fn input_objects(&self) -> UserInputResult<Vec<InputObjectKind>>

Source§

fn receiving_objects(&self) -> Vec<ObjectReference>

Source§

fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult

Source§

fn shared_input_objects(&self) -> impl Iterator<Item = SharedObjectReference>

Source§

fn move_calls(&self) -> Vec<(&ObjectId, &str, &str)>

Source§

fn non_system_packages_to_be_published( &self, ) -> impl Iterator<Item = &Vec<Vec<u8>>>

Implementors§