dto

package
v0.0.0-...-9831709 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPeerInput

type AddPeerInput struct {
	Address string
}

type BlockBodyDto

type BlockBodyDto struct {
	TransactionsCount int32
	Transactions      []string
}

type BlockDto

type BlockDto struct {
	BlockHash string
	Header    BlockHeaderDto
	Body      BlockBodyDto
}

type BlockHeaderDto

type BlockHeaderDto struct {
	PreviousBlockHash            string
	MerkleTreeRootOfTransactions string
	MerkleTreeRootOfWorldState   string
	Extra                        string
	Height                       int64
	Time                         time.Time
	ChainId                      string
	Bloom                        string
	SignerPubkey                 string
}

type BlockStateDto

type BlockStateDto struct {
	BlockHash    string
	PreviousHash string
	BlockHeight  int64
	Changes      map[string]string
}

type BroadcastTransactionInput

type BroadcastTransactionInput struct {
	/// <summary>
	/// raw transaction
	/// </summary>
	RawTransaction string
}

type BroadcastTransactionOutput

type BroadcastTransactionOutput struct {
	TransactionId string
}

type BroadcastTransactionsInput

type BroadcastTransactionsInput struct {
	/// <summary>
	/// raw transactions
	/// </summary>
	RawTransactions string
}

type CallInput

type CallInput struct {
	/// <summary>
	/// raw transaction
	/// </summary>
	RawTransaction string
}

type ChainStatusDto

type ChainStatusDto struct {
	ChainId                     string
	Branches                    map[string]int64
	NotLinkedBlocks             []NotLinkedBlockDto
	LongestChainHeight          int64
	LongestChainHash            string
	GenesisBlockHash            string
	GenesisContractAddress      string
	LastIrreversibleBlockHash   string
	LastIrreversibleBlockHeight int64
	BestChainHash               string
	BestChainHeight             int64
}

type CreateRawTransactionInput

type CreateRawTransactionInput struct {
	/// <summary>
	/// from address
	/// </summary>
	From string

	/// <summary>
	/// to address
	/// </summary>
	To string

	/// <summary>
	/// refer block height
	/// </summary>
	RefBlockNumber int64

	/// <summary>
	/// refer block hash
	/// </summary>
	RefBlockHash string

	/// <summary>
	/// contract method name
	/// </summary>
	MethodName string

	/// <summary>
	/// contract method parameters
	/// </summary>
	Params string
}

type CreateRawTransactionOutput

type CreateRawTransactionOutput struct {
	RawTransaction string
}

type GetChainInformationOutput

type GetChainInformationOutput struct {
	GenesisContractAddress string
	ChainId                string
}

type GetNetworkInfoOutput

type GetNetworkInfoOutput struct {
	/// <summary>
	/// node version
	/// </summary>
	Version string

	/// <summary>
	/// network protocol version
	/// </summary>
	ProtocolVersion int

	/// <summary>
	/// total number of open connections between this node and other nodes
	/// </summary>
	Connections int
}

type GetTransactionPoolStatusOutput

type GetTransactionPoolStatusOutput struct {
	Queued int
}

type LogEventDto

type LogEventDto struct {
	Address    string
	Name       string
	Indexed    []string
	NonIndexed string
}

type MinerInRoundDto

type MinerInRoundDto struct {
	Order              int32
	ProducedTinyBlocks int32
	ExpectedMiningTime time.Time
	ActualMiningTimes  []time.Time
	InValue            string
	PreviousInValue    string
	OutValue           string
	ProducedBlocks     int64
	MissedBlocks       int64
}

type NotLinkedBlockDto

type NotLinkedBlockDto struct {
	BlockHash         string
	Height            int64
	PreviousBlockHash string
}

type PeerDto

type PeerDto struct {
	IpAddress       string
	ProtocolVersion int
	ConnectionTime  int64
	Inbound         bool
	StartHeight     int64
	RequestMetrics  []RequestMetric
}

type RequestMetric

type RequestMetric struct {
	RoundTripTime int64
	MethodName    string
	Info          string
	RequestTime   timestamp.Timestamp
}

type RoundDto

type RoundDto struct {
	RoundNumber                       int64
	TermNumber                        int64
	RoundId                           int64
	RealTimeMinerInformation          map[string]MinerInRoundDto
	ExtraBlockProducerOfPreviousRound string
}

type SendRawTransactionInput

type SendRawTransactionInput struct {
	/// <summary>
	/// raw transaction
	/// </summary>
	Transaction string

	/// <summary>
	/// signature
	/// </summary>
	Signature string

	/// <summary>
	/// return transaction detail or not
	/// </summary>
	ReturnTransaction bool
}

type SendRawTransactionOutput

type SendRawTransactionOutput struct {
	TransactionId string
	Transaction   TransactionDto
}

type TaskQueueInfoDto

type TaskQueueInfoDto struct {
	Name string
	Size int32
}

type TransactionDto

type TransactionDto struct {
	From           string
	To             string
	RefBlockNumber int64
	RefBlockPrefix string
	MethodName     string
	Params         string
	Signature      string
}

type TransactionResultDto

type TransactionResultDto struct {
	TransactionId       string
	Status              string
	Logs                []LogEventDto
	Bloom               string
	BlockNumber         int64
	BlockHash           string
	Transaction         TransactionDto
	ReadableReturnValue string
	Error               string
}

Jump to

Keyboard shortcuts

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