Preconfiguration

scalus.testing.Preconfiguration
See thePreconfiguration companion object
case class Preconfiguration(utxo: Map[String, Seq[UtxoEntry]] = ...)

Declarative emulator preconfiguration.

Keys in utxo are either party names (case-insensitive, e.g. "alice") or raw bech32/base58 addresses. Values are sequences of UTxO entries to create at that address.

Example JSON:

{
 "utxo": {
   "alice": [{ "ada": 100000000000 }],
   "bob":   [
     { "ada": 5000000, "datum": { "int": 42 } },
     { "ada": 2000000, "datum_hash": "abcd..." }
   ],
   "addr_test1qz...": [{ "ada": 50000000, "tx_id": "abcd...", "idx": 0 }]
 }
}

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product