Documentation ¶
Index ¶
Constants ¶
View Source
const Handle = "cosmos"
Variables ¶
This section is empty.
Functions ¶
func Normalize ¶
func Normalize(srcTx *Tx) (tx blockatlas.Tx)
Normalize converts an Cosmos transaction into the generic model
Types ¶
type Amount ¶
Amount - the asset & quantity. Always seems to be enclosed in an array/list for some reason. Perhaps used for multiple tokens transferred in a single sender/reciever transfer?
type Contents ¶
type Contents struct { Message []Message `json:"msg"` Fee Fee `json:"fee"` Memo string `json:"memo"` }
Contents - amount, fee, and memo
type Fee ¶
type Fee struct {
FeeAmount []Amount `json:"amount"`
}
Fee - also references the "amount" struct
type Message ¶
type Message struct {
Particulars Particulars `json:"value"`
}
Message - an array that holds multiple 'particulars' entries. Possibly used for multiple transfers in one transaction?
type Particulars ¶
type Particulars struct { FromAddr string `json:"from_address"` ToAddr string `json:"to_address"` Amount []Amount `json:"amount"` }
Particulars - from, to, and amount
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) GetTxsByAddress ¶
func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
Click to show internal directories.
Click to hide internal directories.