dto

package
v0.6.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainInfo

type ChainInfo struct {
	IsActive       bool
	ChainID        isc.ChainID
	ChainOwnerID   isc.AgentID
	GasFeePolicy   *gas.FeePolicy
	GasLimits      *gas.Limits
	CustomMetadata []byte
}

func MapChainInfo

func MapChainInfo(info *isc.ChainInfo, isActive bool) *ChainInfo

type ChainMessageMetrics

type ChainMessageMetrics struct {
	InStateOutput      *MetricItem[*metrics.InStateOutput]
	InAliasOutput      *MetricItem[*iotago.AliasOutput]
	InOutput           *MetricItem[*metrics.InOutput]
	InOnLedgerRequest  *MetricItem[isc.OnLedgerRequest]
	InTxInclusionState *MetricItem[*metrics.TxInclusionStateMsg]

	OutPublishStateTransaction      *MetricItem[*metrics.StateTransaction]
	OutPublishGovernanceTransaction *MetricItem[*iotago.Transaction]
	OutPullLatestOutput             *MetricItem[interface{}]
	OutPullTxInclusionState         *MetricItem[iotago.TransactionID]
	OutPullOutputByID               *MetricItem[iotago.OutputID]
}

type ChainNodeInfo

type ChainNodeInfo struct {
	Address        iotago.Address
	AccessNodes    []*ChainNodeStatus
	CandidateNodes []*ChainNodeStatus
	CommitteeNodes []*ChainNodeStatus
}

type ChainNodeStatus

type ChainNodeStatus struct {
	AccessAPI    string
	ForAccess    bool
	ForCommittee bool
	Node         PeeringNodeStatus
}

type ContractsMap

type ContractsMap map[isc.Hname]*root.ContractRecord

type MetricItem

type MetricItem[T interface{}] struct {
	Messages    uint32
	Timestamp   time.Time
	LastMessage T
}

func MapMetricItem

func MapMetricItem[T interface{}](metrics metrics.IMessageMetric[T]) *MetricItem[T]

type NodeMessageMetrics

type NodeMessageMetrics struct {
	RegisteredChainIDs []isc.ChainID

	InMilestone        *MetricItem[*nodeclient.MilestoneInfo]
	InStateOutput      *MetricItem[*metrics.InStateOutput]
	InAliasOutput      *MetricItem[*iotago.AliasOutput]
	InOutput           *MetricItem[*metrics.InOutput]
	InOnLedgerRequest  *MetricItem[isc.OnLedgerRequest]
	InTxInclusionState *MetricItem[*metrics.TxInclusionStateMsg]

	OutPublishStateTransaction      *MetricItem[*metrics.StateTransaction]
	OutPublishGovernanceTransaction *MetricItem[*iotago.Transaction]
	OutPullLatestOutput             *MetricItem[interface{}]
	OutPullTxInclusionState         *MetricItem[iotago.TransactionID]
	OutPullOutputByID               *MetricItem[iotago.OutputID]
}

type PeeringNodeIdentity

type PeeringNodeIdentity struct {
	Name       string
	PublicKey  *cryptolib.PublicKey
	PeeringURL string
	IsTrusted  bool
}

type PeeringNodeStatus

type PeeringNodeStatus struct {
	Name       string
	IsAlive    bool
	PeeringURL string
	NumUsers   int
	PublicKey  *cryptolib.PublicKey
	IsTrusted  bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL