tara_rpc_types

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompactSignature

type CompactSignature struct {
	R  common.Hash `json:"r"  rlp:"required"`
	Vs common.Hash `json:"vs" rlp:"required"`
}

type FicusHfConfig

type FicusHfConfig struct {
	BlockNum                hexutil.Uint64 `json:"block_num"                   rlp:"required"`
	PbftInclusionDelay      hexutil.Uint64 `json:"pbft_inclusion_delay"        rlp:"required"`
	PillarBlocksInterval    hexutil.Uint64 `json:"pillar_blocks_interval"      rlp:"required"`
	PillarChainSyncInterval hexutil.Uint64 `json:"pillar_chain_sync_interval"  rlp:"required"`
}

type HardforksConfig

type HardforksConfig struct {
	FicusHf FicusHfConfig `json:"ficus_hf"  rlp:"required"`
}

type PillarBlock

type PillarBlock struct {
	Hash              common.Hash       `json:"hash"                            rlp:"required"`
	PreviousBlockHash common.Hash       `json:"previous_pillar_block_hash"      rlp:"required"`
	BridgeRoot        common.Hash       `json:"bridge_root"                     rlp:"required"`
	StateRoot         common.Hash       `json:"state_root"                      rlp:"required"`
	PbftPeriod        uint64            `json:"pbft_period"                     rlp:"required"`
	VoteCountsChanges []VoteCountChange `json:"validators_vote_counts_changes"  rlp:"optional"`
}

PillarBlock represents a pillar block in the taraxa blockchain.

type PillarBlockData

type PillarBlockData struct {
	PillarBlock PillarBlock        `json:"pillar_block"  rlp:"required"`
	Signatures  []CompactSignature `json:"signatures"    rlp:"optional"`
}

type TaraConfig

type TaraConfig struct {
	ChainId   uint64          `json:"chain_id"  rlp:"required"`
	Hardforks HardforksConfig `json:"hardforks" rlp:"required"`
}

Config - parsed only partially, new fields can be added anytime

type VoteCountChange

type VoteCountChange struct {
	Address common.Address `json:"address"   rlp:"required"`
	Value   int32          `json:"value"     rlp:"required"`
}

Jump to

Keyboard shortcuts

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