Expand description
Testing helpers/utilities for Fuel SDK.
Structs§
Enums§
Constants§
Functions§
- generate_
random_ salt - launch_
custom_ provider_ and_ get_ wallets - Launches a custom node and provider, along with a configurable number of wallets.
- launch_
provider_ and_ get_ wallet - Launches a local Fuel node, instantiates a provider, and returns a wallet.
The provider and the wallets are instantiated with the default configs.
For more configurable options, see the
launch_custom_provider_and_get_wallets
function. - setup_
custom_ assets_ coins - Create a vector of UTXOs with the provided AssetIds, num_coins, and amount_per_coin
- setup_
multiple_ assets_ coins - Create a vector of
num_asset
*coins_per_asset
UTXOs and a vector of the unique corresponding asset IDs.AssetId
. Each UTXO (=coin) containsamount_per_coin
amount of a random asset. The output of this function can be used withsetup_test_provider
to get a client with some pre-existing coins, withnum_asset
different asset ids. Note that one of the assets is the base asset to pay for gas. - setup_
single_ asset_ coins - Create a vector of
num_coins
UTXOs containingamount_per_coin
amount of assetasset_id
. The output of this function can be used withsetup_test_provider
to get a client with some pre-existing coins, but with only one asset ID. - setup_
single_ message - setup_
test_ provider