dashboard

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.1.0

func Init(server *echo.Echo)

Types

type BaseTemplateParams added in v0.1.0

type BaseTemplateParams struct {
	NavPages    []Tab
	Breadcrumbs []Tab
	Path        string
	MyNetworkId string
}

func BaseParams added in v0.1.0

func BaseParams(c echo.Context, breadcrumbs ...Tab) BaseTemplateParams

type BlobField added in v0.1.0

type BlobField struct {
	Key   []byte
	Value []byte
}

type ChainAccountTemplateParams added in v0.1.0

type ChainAccountTemplateParams struct {
	BaseTemplateParams

	ChainID coretypes.ChainID
	AgentID coretypes.AgentID

	Balances map[balance.Color]int64
}

type ChainBlobTemplateParams added in v0.1.0

type ChainBlobTemplateParams struct {
	BaseTemplateParams

	ChainID coretypes.ChainID
	Hash    hashing.HashValue

	Blob []BlobField
}

type ChainContractTemplateParams added in v0.1.0

type ChainContractTemplateParams struct {
	BaseTemplateParams

	ChainID coretypes.ChainID
	Hname   coretypes.Hname

	ContractRecord *root.ContractRecord
	Log            []*collections.TimestampedLogRecord
	RootInfo       RootInfo
}

type ChainListTemplateParams added in v0.1.0

type ChainListTemplateParams struct {
	BaseTemplateParams
	Chains []*ChainOverview
}

type ChainOverview added in v0.1.0

type ChainOverview struct {
	ChainRecord *registry.ChainRecord
	RootInfo    RootInfo
	Error       error
}

type ChainTemplateParams added in v0.1.0

type ChainTemplateParams struct {
	BaseTemplateParams

	ChainID coretypes.ChainID

	ChainRecord  *registry.ChainRecord
	Block        state.Block
	VirtualState state.VirtualState
	RootInfo     RootInfo
	Accounts     []coretypes.AgentID
	TotalAssets  map[balance.Color]int64
	Blobs        map[hashing.HashValue]uint32
	Committee    struct {
		Size       uint16
		Quorum     uint16
		NumPeers   uint16
		HasQuorum  bool
		PeerStatus []*chain.PeerStatus
	}
}

type ConfigTemplateParams added in v0.1.0

type ConfigTemplateParams struct {
	BaseTemplateParams
	Configuration map[string]interface{}
}

type PeeringTemplateParams added in v0.1.0

type PeeringTemplateParams struct {
	BaseTemplateParams
	NetworkProvider peering_pkg.NetworkProvider
}

type RootInfo added in v0.1.0

type RootInfo struct {
	ChainColor   balance.Color
	ChainAddress address.Address

	OwnerID          coretypes.AgentID
	OwnerIDDelegated *coretypes.AgentID

	Description string
	Contracts   map[coretypes.Hname]*root.ContractRecord

	FeeColor            balance.Color
	DefaultOwnerFee     int64
	DefaultValidatorFee int64
}

type Tab added in v0.1.0

type Tab struct {
	Path       string
	Title      string
	Href       string
	Breadcrumb bool
}

Jump to

Keyboard shortcuts

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