Apophis aims to make it as simple as possible to deal with transactions.
CosmosTx
is the fundamental transaction type for all transactions in Cosmos, includingCosmosTxSignal
, which wraps a CosmosTx
into multiple signals specialized for use in a GUI.CosmosTxSignal
is an invariant that wraps a CosmosTx
with various signals for use in a GUI.
Unlike the regular CosmosTx
, this invariant takes a signal of messages, and automatically updates
and re-estimates the gas of the transaction when the messages change. It also periodically refreshes
the estimage to account for changes in the state of the blockchain while the user is still
contemplating their transaction.
The following example demonstrates the use of the Cosmos.signalTx
factory method using Preact as
its frontend framework:
cosmos-gas-estimate
component is a custom element from the complementary
Cosmos Components library.