@midnight-ntwrk/midnight-js-contracts v0.1.15 • API
Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-contracts / WitnessesWithZswap
Type alias: WitnessesWithZswap<W>
WitnessesWithZswap<
W
>:MergedWitnesses
<Object
>
Merges ZSwapWitnesses with the given witnesses type. The resulting witnesses take have a StateWithZswap private state type.
Type declaration
contract
contract:
W
zswap
zswap:
ZSwapWitnesses
<ZSwapState
>
Type parameters
• W extends Witnesses
Type of witnesses provided by the contract author; i.e. result type of NonZSwapWitnesses.