This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

ElmArk.Msgs

A Msg type for dealing with API responses

type Msg = ReceiveAccountBalance (Result Http.Error Balance) | ReceiveAccountPublicKey (Result Http.Error PublicKey) | ReceiveAccountDelegateFee (Result Http.Error ElmArk.Account.DelegateFee) | ReceiveAccountGetDelegates (Result Http.Error ElmArk.Account.Delegates) | ReceiveAccount (Result Http.Error Accounts) | ReceiveTopAccounts (Result Http.Error TopAccounts) | ReceiveBlock (Result Http.Error BlockResponse) | ReceiveBlockSearch (Result Http.Error BlockSearch) | ReceiveEpoch (Result Http.Error Epoch) | ReceiveBlockHeight (Result Http.Error BlockHeight) | ReceiveNethash (Result Http.Error Nethash) | ReceiveFee (Result Http.Error Fee) | ReceiveFees (Result Http.Error Fees) | ReceiveMilestone (Result Http.Error Milestone) | ReceiveReward (Result Http.Error Reward) | ReceiveSupply (Result Http.Error Supply) | ReceiveStatus (Result Http.Error Status) | ReceiveDelegatesCount (Result Http.Error DelegatesCount) | ReceiveSearchDelegates (Result Http.Error ElmArk.Delegate.Delegates) | ReceiveGetVoters (Result Http.Error Voters) | ReceiveDelegateByUsername (Result Http.Error DelegateResponse) | ReceiveDelegateByPublicKey (Result Http.Error DelegateResponse) | ReceiveDelegates (Result Http.Error GetDelegatesResponse) | ReceiveDelegateFee (Result Http.Error ElmArk.Delegate.DelegateFee) | ReceiveForgedByAccount (Result Http.Error ForgedBlocks) | ReceiveNextForgers (Result Http.Error NextForgers) | ReceiveBlockStatus (Result Http.Error BlockStatus) | ReceiveSyncStatus (Result Http.Error SyncStatus) | ReceiveAutoconfigure (Result Http.Error AutoConfigure) | ReceiveGetPending (Result Http.Error PendingMultiSignature) | ReceiveGetPeers (Result Http.Error Peers) | ReceiveGetPeer (Result Http.Error GetPeer) | ReceiveGetPeerVersion (Result Http.Error PeerVersion) | ReceiveGetSignatureFee (Result Http.Error SignatureFee) | ReceiveGetTransaction (Result Http.Error GetTransaction) | ReceiveGetTransactions (Result Http.Error Transactions) | ReceiveGetUnconfirmedTransaction (Result Http.Error GetTransaction) | ReceiveGetUnconfirmedTransactions (Result Http.Error Transactions)

A Msg representing one of the various HTTP response types.

module ElmArk.Msgs exposing (..)

{-| A Msg type for dealing with API responses

@docs Msg

-}

import Http exposing (Body, Header)
import ElmArk.Account exposing (Balance, PublicKey, DelegateFee, Delegates, Accounts, TopAccounts)
import ElmArk.Block exposing (BlockResponse, BlockSearch, Epoch, BlockHeight, Nethash, Fee, Fees, Milestone, Reward, Supply, Status)
import ElmArk.Delegate exposing (DelegatesCount, Delegates, Voters, DelegateResponse, GetDelegatesResponse, DelegateFee, ForgedBlocks, NextForgers)
import ElmArk.Loader exposing (BlockStatus, SyncStatus, AutoConfigure)
import ElmArk.Peer exposing (Peers, GetPeer, PeerVersion)
import ElmArk.MultiSignature exposing (PendingMultiSignature)
import ElmArk.Signature exposing (SignatureFee)
import ElmArk.Transaction exposing (GetTransaction, Transactions)


{-| A Msg representing one of the various HTTP response types.
-}
type Msg
    = ReceiveAccountBalance (Result Http.Error Balance)
    | ReceiveAccountPublicKey (Result Http.Error PublicKey)
    | ReceiveAccountDelegateFee (Result Http.Error ElmArk.Account.DelegateFee)
    | ReceiveAccountGetDelegates (Result Http.Error ElmArk.Account.Delegates)
    | ReceiveAccount (Result Http.Error Accounts)
    | ReceiveTopAccounts (Result Http.Error TopAccounts)
    | ReceiveBlock (Result Http.Error BlockResponse)
    | ReceiveBlockSearch (Result Http.Error BlockSearch)
    | ReceiveEpoch (Result Http.Error Epoch)
    | ReceiveBlockHeight (Result Http.Error BlockHeight)
    | ReceiveNethash (Result Http.Error Nethash)
    | ReceiveFee (Result Http.Error Fee)
    | ReceiveFees (Result Http.Error Fees)
    | ReceiveMilestone (Result Http.Error Milestone)
    | ReceiveReward (Result Http.Error Reward)
    | ReceiveSupply (Result Http.Error Supply)
    | ReceiveStatus (Result Http.Error Status)
    | ReceiveDelegatesCount (Result Http.Error DelegatesCount)
    | ReceiveSearchDelegates (Result Http.Error ElmArk.Delegate.Delegates)
    | ReceiveGetVoters (Result Http.Error Voters)
    | ReceiveDelegateByUsername (Result Http.Error DelegateResponse)
    | ReceiveDelegateByPublicKey (Result Http.Error DelegateResponse)
    | ReceiveDelegates (Result Http.Error GetDelegatesResponse)
    | ReceiveDelegateFee (Result Http.Error ElmArk.Delegate.DelegateFee)
    | ReceiveForgedByAccount (Result Http.Error ForgedBlocks)
    | ReceiveNextForgers (Result Http.Error NextForgers)
    | ReceiveBlockStatus (Result Http.Error BlockStatus)
    | ReceiveSyncStatus (Result Http.Error SyncStatus)
    | ReceiveAutoconfigure (Result Http.Error AutoConfigure)
    | ReceiveGetPending (Result Http.Error PendingMultiSignature)
    | ReceiveGetPeers (Result Http.Error Peers)
    | ReceiveGetPeer (Result Http.Error GetPeer)
    | ReceiveGetPeerVersion (Result Http.Error PeerVersion)
    | ReceiveGetSignatureFee (Result Http.Error SignatureFee)
    | ReceiveGetTransaction (Result Http.Error GetTransaction)
    | ReceiveGetTransactions (Result Http.Error Transactions)
    | ReceiveGetUnconfirmedTransaction (Result Http.Error GetTransaction)
    | ReceiveGetUnconfirmedTransactions (Result Http.Error Transactions)