user1983: How exactly can I fund the emulator wallets with custom currencies?
Please show an emulator example doing so.

user2681: Here's an example:
import Data.Default (def)
import qualified Data.Map as Map
import qualified Ledger.Ada as Ada
import qualified Ledger.Value as Value
import Wallet.Emulator.Wallet (Wallet(..))
import Plutus.Trace.Emulator (EmulatorTrace, EmulatorConfig(..), runEmulatorTraceIO', 
                              activateContractWallet)

main :: IO ()
main = do
  let dist = Map.fromList [ (Wallet 1, Ada.lovelaceValueOf 100_000_000
                                    <> Value.singleton "ffff" "mytoken" 10)
                          , (Wallet 2, Ada.lovelaceValueOf 25_000_000)
                          ]
      emCfg = EmulatorConfig (Left dist) def def
  runEmulatorTraceIO' def emCfg myTrace

In summary, Wallet 1 starts of with 100 ADA, and 10 tokens with currency symbol ffff and token name mytoken. Wallet 2 simply starts with 25 ADA.
The Auction use-case example demonstrates that.

1983: <p>How exactly can I fund the emulator wallets with custom currencies?
Please show an emulator example doing so.</p>
 2681: <p>Here's an example:</p>
<pre><code>import Data.Default (def)
import qualified Data.Map as Map
import qualified Ledger.Ada as Ada
import qualified Ledger.Value as Value
import Wallet.Emulator.Wallet (Wallet(..))
import Plutus.Trace.Emulator (EmulatorTrace, EmulatorConfig(..), runEmulatorTraceIO', 
                              activateContractWallet)

main :: IO ()
main = do
  let dist = Map.fromList [ (Wallet 1, Ada.lovelaceValueOf 100_000_000
                                    &lt;&gt; Value.singleton &quot;ffff&quot; &quot;mytoken&quot; 10)
                          , (Wallet 2, Ada.lovelaceValueOf 25_000_000)
                          ]
      emCfg = EmulatorConfig (Left dist) def def
  runEmulatorTraceIO' def emCfg myTrace
</code></pre>
<p>In summary, <code>Wallet 1</code> starts of with 100 ADA, and 10 tokens with currency symbol <code>ffff</code> and token name <code>mytoken</code>. <code>Wallet 2</code> simply starts with 25 ADA.</p>
<p>The <a href="https://github.com/input-output-hk/plutus/blob/master/plutus-use-cases/src/Plutus/Contracts/Auction.hs" rel="nofollow noreferrer">Auction</a> use-case example demonstrates that.</p>
