Expand description
Client API for interaction with this smart contract Contract Client API
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§
- auth_
token_ freeze_ v1 Money::AuthTokenFreezeV1API- auth_
token_ mint_ v1 Money::AuthTokenMintV1API- fee_v1
Money::FeeV1API- genesis_
mint_ v1 Money::GenesisMintV1API- pow_
reward_ v1 Money::PoWRewardV1API- swap_v1
Money::OtcSwapV1API This API is crufty. Please rework it into something nice to read and nice to use.- token_
mint_ v1 Money::TokenMintV1API- transfer_
v1 Money::TransferV1API
Structs§
- Money
Note MoneyNoteholds the inner attributes of aCoin.- OwnCoin
OwnCoinis a representation ofCoinwith its respective metadata.