Documentation ¶
Index ¶
- Variables
- func BigZeroPB() *types.BigUInt
- func DataPrefix(addr Address) []byte
- func MakeFileLoggerWriter(diademLogLevel, dest string) io.Writer
- func PermPrefix(addr Address) []byte
- func TextKey(addr Address) []byte
- type Address
- type BigUInt
- type BlockHeader
- type LocalAddress
- type Logger
- type Validator
- type ValidatorSet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllowDebug = kitlevel.AllowDebug AllowInfo = kitlevel.AllowInfo AllowWarn = kitlevel.AllowWarn AllowError = kitlevel.AllowError Allow = func(level string) kitlevel.Option { switch level { case "debug": return AllowDebug() case "info": return AllowInfo() case "warn": return AllowWarn() case "error": return AllowError() default: return nil } } )
View Source
var (
ErrInvalidAddress = errors.New("invalid address")
)
Functions ¶
func DataPrefix ¶
func MakeFileLoggerWriter ¶
func PermPrefix ¶
Types ¶
type Address ¶
type Address struct { ChainID string Local LocalAddress }
func MustParseAddress ¶
func ParseAddress ¶
ParseAddress parses an address generated from String()
func RootAddress ¶
func UnmarshalAddressPB ¶
type BigUInt ¶
func NewBigUIntFromInt ¶
NewBigUintFromInt creates a biguint from a int64
type BlockHeader ¶
type BlockHeader = types.BlockHeader
type LocalAddress ¶
type LocalAddress = common.LocalAddress
func LocalAddressFromHexString ¶
func LocalAddressFromHexString(hexAddr string) (LocalAddress, error)
func LocalAddressFromPublicKey ¶
func LocalAddressFromPublicKey(pubKey []byte) LocalAddress
func LocalAddressFromPublicKeyV2 ¶
func LocalAddressFromPublicKeyV2(pubKey []byte) LocalAddress
recent versions of Tendermint > 0.22.0
type Logger ¶
func MakediademLogger ¶
func NewdiademLogger ¶
type ValidatorSet ¶
func NewValidatorSet ¶
func NewValidatorSet(vals ...*Validator) ValidatorSet
func (ValidatorSet) Get ¶
func (vs ValidatorSet) Get(pubKey []byte) *Validator
func (ValidatorSet) Set ¶
func (vs ValidatorSet) Set(v *Validator)
func (ValidatorSet) Slice ¶
func (vs ValidatorSet) Slice() []*Validator
Click to show internal directories.
Click to hide internal directories.