EmulatorRegularTx
export interface EmulatorRegularTx {
collectUtxos(
addr: Address,
utxos: TxInput[]
): TxInput[]
consumedUtxos(): TxInput[]
consumes(utxo: TxInput): boolean
dump(): void
getUtxo(id: TxOutputId): undefined | TxInput
id(): TxId
kind: "Regular"
newUtxos(): TxInput[]
}
Properties
collectUtxos
Removes tx inputs from the list, and appends txoutputs sent to the address to the end.
emulatorRegularTx.collectUtxos satisfies (
addr: Address,
utxos: TxInput[]
) => TxInput[]
consumedUtxos
emulatorRegularTx.consumedUtxos satisfies () => TxInput[]
consumes
emulatorRegularTx.consumes satisfies (utxo: TxInput) => boolean
dump
emulatorRegularTx.dump satisfies () => void
getUtxo
emulatorRegularTx.getUtxo satisfies (id: TxOutputId) => undefined | TxInput
id
emulatorRegularTx.id satisfies () => TxId
kind
emulatorRegularTx.kind satisfies "Regular"
newUtxos
emulatorRegularTx.newUtxos satisfies () => TxInput[]