Skip to main content

Module utils

Module utils 

Source
Expand description

Port of @midnight-ntwrk/midnight-js-contracts/src/utils/.

Two submodules:

  • zswap_utils — encryption-public-key resolution, zswap offer construction from a local state.
  • ledger_utils — ledger-type translators that turn an executed circuit’s result into a ContractDeploy / ContractCallPrototype and embed those in a Transaction.

Modules§

ledger_utils
Port of @midnight-ntwrk/midnight-js-contracts/src/utils/ledger-utils.ts.
zswap_utils
Port of @midnight-ntwrk/midnight-js-contracts/src/utils/zswap-utils.ts.