Crate sui_test_transaction_builder

Source

Structs§

TestTransactionBuilder

Enums§

PublishData

Functions§

batch_make_transfer_transactions
A helper function to make Transactions with controlled accounts in WalletContext. Particularly, the wallet needs to own gas objects for transactions. However, if this function is called multiple times without any “sync” actions on gas object management, txns may fail and objects may be locked.
create_nft
Pre-requisite: publish_nfts_package must be called before this function. Executes a transaction to create an NFT and returns the sender address, the object id of the NFT, and the digest of the transaction.
delete_nft
Executes a transaction to delete the given NFT.
emit_new_random_u128
Executes a transaction that generates a new random u128 using Random and emits it as an event.
increment_counter
Executes a transaction to increment a counter object. Must be called after calling publish_basics_package_and_make_counter.
make_publish_transaction
make_publish_transaction_with_deps
make_staking_transaction
make_transfer_sui_transaction
publish_basics_package
Executes a transaction to publish the basics package and returns the package object ref.
publish_basics_package_and_make_counter
Executes a transaction to publish the basics package and another one to create a counter. Returns the package object ref and the counter object ref.
publish_basics_package_and_make_party_object
Executes a transaction to publish the basics package and another one to create a party object. Returns the package object ref and the counter object ref.
publish_nfts_package
Executes a transaction to publish the nfts package and returns the package id, id of the gas object used, and the digest of the transaction.
publish_package