schema

package
v0.0.0-...-5f6c549 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 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 ACME

type ACME struct {
	Symbol    string `json:"symbol"`
	Precision int64  `json:"precision"`
	Total     int64  `json:"total"`
	Max       int64  `json:"max"`
}

type StakingRecord

type StakingRecord struct {
	Type               string `json:"type" validate:"required"`
	Status             string `json:"status"`
	Identity           string `json:"identity" validate:"required"`
	Stake              string `json:"stake" validate:"required"`
	Rewards            string `json:"rewards" validate:"required"`
	Delegate           string `json:"delegate"`
	AcceptingDelegates string `json:"acceptingDelegates"`
	EntryHash          string `json:"entryHash"`
	Balance            int64  `json:"balance"`
}

func ParseStakingRecord

func ParseStakingRecord(entry []byte) (*StakingRecord, error)

ParseStakingRecord parses Accumulate staking entry data into struct and validates it

type StakingRecords

type StakingRecords struct {
	Items []*StakingRecord `json:"items"`
}

type ValidatorsNumber

type ValidatorsNumber struct {
	CoreValidator    int64 `json:"coreValidator"`
	CoreFollower     int64 `json:"coreFollower"`
	StakingValidator int64 `json:"stakingValidator"`
	Delegated        int64 `json:"delegated"`
	Pure             int64 `json:"pure"`
}

Jump to

Keyboard shortcuts

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