Documentation ¶
Index ¶
Constants ¶
View Source
const ( PathGetLedgerID = "/get_ledger_id" PathGetAccountOutputs = "/get_account_outputs" PathGetChainOutput = "/get_chain_output" PathGetOutput = "/get_output" PathQueryTxStatus = "/query_tx_status" PathQueryInclusionScore = "/query_inclusion_score" PathSubmitTransaction = "/submit_tx" PathGetSyncInfo = "/sync_info" PathGetNodeInfo = "/node_info" PathGetPeersInfo = "/peers_info" PathGetLatestReliableBranch = "/get_latest_reliable_branch" PathGetDashboard = "/dashboard" )
View Source
const ErrGetOutputNotFound = "output not found"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainOutput ¶
type ChainOutput struct { Error // hex-encoded outputID OutputID string `json:"output_id,omitempty"` // hex-encoded output data OutputData string `json:"output_data,omitempty"` // latest reliable branch used to extract chain ID LRBID string `json:"lrb_id"` }
ChainOutput is returned by 'get_chain_output'
type Error ¶
type Error struct { // empty string when no error Error string `json:"error,omitempty"` }
type LatestReliableBranch ¶
type LatestReliableBranch struct { Error RootData multistate.RootRecordJSONAble `json:"root_record,omitempty"` BranchID ledger.TransactionID `json:"branch_id,omitempty"` }
LatestReliableBranch returned by get_latest_reliable_branch
type OutputData ¶
type OutputData struct { Error // hex-encoded output data OutputData string `json:"output_data,omitempty"` // latest reliable branch used to extract output LRBID string `json:"lrb_id"` }
OutputData is returned by 'get_output'
type OutputList ¶
type OutputList struct { Error // key is hex-encoded outputID bytes // value is hex-encoded raw output data Outputs map[string]string `json:"outputs,omitempty"` // latest reliable branch used to extract outputs LRBID string `json:"lrb_id"` }
OutputList is returned by 'get_account_outputs'
type PeerInfo ¶
type PeerInfo struct { // The libp2p identifier of the peer. ID string `json:"id"` // The libp2p multi addresses of the peer. MultiAddresses []string `json:"multiAddresses,omitempty"` IsStatic bool `json:"is_static"` RespondsToPull bool `json:"responds_to_pull"` IsAlive bool `json:"is_alive"` WhenAdded int64 `json:"when_added"` LastHeartbeatReceived int64 `json:"last_heartbeat_received"` ClockDifferencesQuartiles [3]int64 `json:"clock_differences_quartiles"` HBMsgDifferencesQuartiles [3]int64 `json:"hb_differences_quartiles"` NumIncomingHB int `json:"num_incoming_hb"` NumIncomingPull int `json:"num_incoming_pull"` NumIncomingTx int `json:"num_incoming_tx"` }
type QueryTxInclusionScore ¶
type QueryTxInclusionScore struct { Error TxInclusionScore }
type QueryTxStatus ¶
type QueryTxStatus struct { Error TxIDStatus vertex.TxIDStatusJSONAble `json:"txid_status"` Inclusion *multistate.TxInclusionJSONAble `json:"inclusion,omitempty"` }
type SequencerSyncInfo ¶
type SyncInfo ¶
type SyncInfo struct { Error Synced bool `json:"synced"` InSyncWindow bool `json:"in_sync_window,omitempty"` PerSequencer map[string]SequencerSyncInfo `json:"per_sequencer,omitempty"` }
type TxInclusionScore ¶
type TxInclusionScore struct { ThresholdNumerator int `json:"threshold_numerator"` ThresholdDenominator int `json:"threshold_denominator"` LatestSlot int `json:"latest_slot"` EarliestSlot int `json:"earliest_slot"` StrongScore int `json:"strong_score"` WeakScore int `json:"weak_score"` LRBID string `json:"lrb_id"` IncludedInLRB bool `json:"included_in_lrb"` }
func CalcTxInclusionScore ¶
func CalcTxInclusionScore(inclusion *multistate.TxInclusion, thresholdNumerator, thresholdDenominator int) TxInclusionScore
Click to show internal directories.
Click to hide internal directories.