Skip to main content

Module iota::ptb

use iota::address; use iota::hex; use iota::object; use iota::ptb_call_arg; use iota::ptb_command; use iota::tx_context; use std::address; use std::ascii; use std::bcs; use std::option; use std::string; use std::type_name; use std::vector;

Module Functions

pub(pkg) new_programmable_transaction_for_testing

public(package) fun new_programmable_transaction_for_testing(inputs: vector<iota::ptb_call_arg::CallArg>, commands: vector<iota::ptb_command::Command>): iota::ptb::ProgrammableTransaction

Implementation

public(package) fun new_programmable_transaction_for_testing(     inputs: vector<CallArg>,     commands: vector<Command>, ): ProgrammableTransaction {     ProgrammableTransaction { inputs, commands } }

Structs

struct ProgrammableTransaction

public struct ProgrammableTransaction has copy, drop

Fields

pub commands

public fun commands(tx: &iota::ptb::ProgrammableTransaction): &vector<iota::ptb_command::Command>

Implementation

public fun commands(tx: &ProgrammableTransaction): &vector {     &tx.commands }

pub inputs

public fun inputs(tx: &iota::ptb::ProgrammableTransaction): &vector<iota::ptb_call_arg::CallArg>

Implementation

public fun inputs(tx: &ProgrammableTransaction): &vector {     &tx.inputs }