Expand description

Client API for interaction with this smart contract This module implements the client-side API for this contract’s interaction. What we basically do here is implement an API that creates the necessary structures and is able to export them to create a DarkFi transaction object that can be broadcasted to the network when we want to make a payment with some coins in our wallet.

Note that this API does not involve any wallet interaction, but only takes the necessary objects provided by the caller. This is intentional, so we are able to abstract away any wallet interfaces to client implementations.

Modules

  • Money::GenesisMintV1 API
  • Money::StakeV1 API This API is crufty. Please rework it into something nice to read and nice to use.
  • Money::OtcSwapV1 API This API is crufty. Please rework it into something nice to read and nice to use.
  • Money::TokenFreezeV1 API
  • Money::TokenMintV1 API
  • Money::TransferV1 API This API is crufty. Please rework it into something nice to read and nice to use.
  • Money::UnstakeV1 API This API is crufty. Please rework it into something nice to read and nice to use.

Structs

  • ConsensusNote holds the inner attributes of a Coin.
  • ConsensusOwnCoin is a representation of Coin with its respective metadata.
  • MoneyNote holds the inner attributes of a Coin.
  • OwnCoin is a representation of Coin with its respective metadata.

Constants