Package-level declarations

Types

Link copied to clipboard
@Serializable(with = ArgumentSerializer::class)
sealed class Argument
Link copied to clipboard
@Serializable
sealed class BuilderArg
Link copied to clipboard
@Serializable(with = CommandSerializer::class)
open class Command
Link copied to clipboard
Link copied to clipboard
interface MergeCoinsScope
Link copied to clipboard
interface MoveCallScope
Link copied to clipboard
@Serializable
data class ProgrammableMoveCall(val pakage: ObjectId, val module: String, val function: String, val typeArguments: List<TypeTag>, val arguments: List<Argument>)
Link copied to clipboard
@Serializable
data class ProgrammableTransaction(val inputs: List<@Serializable(with = AnySerializer::class) Any>, val commands: List<@Serializable(with = AnySerializer::class) Any>) : TransactionKind
Link copied to clipboard

A dedicated DSL receiver for the ptb { ... } block, providing a context-specific API. This class contains only the lambda-style command functions.

Link copied to clipboard
interface PublishScope
Link copied to clipboard
interface SplitCoinsScope
Link copied to clipboard
@Serializable(with = TransactionKindSerializer::class)
sealed class TransactionKind
Link copied to clipboard
Link copied to clipboard
interface UpgradeScope

Functions

Link copied to clipboard

Creates a transaction argument from a String, correctly identifying it as a 0x1::string::String.

Creates a transaction argument from a ULong, correctly identifying it as a u64.

Creates a transaction argument from an AccountAddress, correctly identifying it as an address.

fun <T> ProgrammableTransactionBuilder.arg(values: List<T>, elementType: TypeTag): Argument

A smart constructor for lists that is now fully type-safe. It automatically decides whether to use pure (for pure vectors) or makeMoveVec (for object vectors).

Link copied to clipboard
Link copied to clipboard
fun isPure(type: TypeTag): Boolean
Link copied to clipboard
suspend fun ptb(client: Sui = SuiKit.client, block: PtbDsl.() -> Unit): ProgrammableTransaction