model

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Account string `json:"account"`
	Balance int    `json:"balance"`
	Nonce   int    `json:"nonce"`
}

type Block

type Block struct {
	Hash      string     `json:"hash"`
	Height    int        `json:"height"`
	Slot      int        `json:"slot"`
	Timestamp int        `json:"timestamp"`
	Txs       []*Tx      `json:"txs"`
	Deposits  []*Deposit `json:"deposits"`
	Votes     []*Vote    `json:"votes"`
	Exits     []*Exit    `json:"exits"`
	RawBlock  string     `json:"rawBlock"`
}

type BlockHeader

type BlockHeader struct {
	Hash                        string `json:"hash"`
	Version                     int    `json:"version"`
	Nonce                       string `json:"nonce"`
	Timestamp                   string `json:"timestamp"`
	Slot                        int    `json:"slot"`
	FeeAddress                  string `json:"fee_address"`
	PreviousBlockHash           string `json:"previous_block_hash"`
	VotesMerkleRoot             string `json:"votes_merkle_root"`
	DepositsMerkleRoot          string `json:"deposits_merkle_root"`
	ExitsMerkleRoot             string `json:"exits_merkle_root"`
	PartialExitsMerkleRoot      string `json:"partial_exits_merkle_root"`
	CoinProofsMerkleRoot        string `json:"coin_proofs_merkle_root"`
	ExecutionsMerkleRoot        string `json:"executions_merkle_root"`
	TxsMerkleRoot               string `json:"txs_merkle_root"`
	VoteMerkleRoot              string `json:"vote_merkle_root"`
	VoteSlashingMerkleRoot      string `json:"vote_slashing_merkle_root"`
	RandaoSlashingMerkleRoot    string `json:"randao_slashing_merkle_root"`
	ProposerSlashingMerkleRoot  string `json:"proposer_slashing_merkle_root"`
	GovernanceVotesMerkleRoot   string `json:"governance_votes_merkle_root"`
	MultiSignatureTxsMerkleRoot string `json:"multi_signature_txs_merkle_root"`
}

type CoinProofs

type CoinProofs struct {
	Hash          string `json:"hash"`
	Transaction   string `json:"transaction"`
	RedeemAccount string `json:"redeem_account"`
}

type Deposit

type Deposit struct {
	Hash      string       `json:"hash"`
	BlockHash string       `json:"block_hash"`
	PublicKey string       `json:"public_key"`
	Data      *DepositData `json:"data"`
}

type DepositData

type DepositData struct {
	Hash              string `json:"hash"`
	PublicKey         string `json:"public_key"`
	ProofOfPossession string `json:"proof_of_possession"`
	WithdrawalAddress string `json:"withdrawal_address"`
}

type Epoch

type Epoch struct {
	Epoch         int    `json:"epoch"`
	Slot1         int    `json:"slot_1"`
	Slot2         int    `json:"slot_2"`
	Slot3         int    `json:"slot_3"`
	Slot4         int    `json:"slot_4"`
	Slot5         int    `json:"slot_5"`
	ExpectedVotes int    `json:"expected_votes"`
	Participation string `json:"participation"`
	Finalized     bool   `json:"finalized"`
	Justified     bool   `json:"justified"`
	Randao        string `json:"randao"`
}

type Exit

type Exit struct {
	Hash                string `json:"hash"`
	BlockHash           string `json:"block_hash"`
	ValidatorPublicKey  string `json:"validator_public_key"`
	WithdrawalPublicKey string `json:"withdrawal_public_key"`
}

type PartialExit

type PartialExit struct {
	Hash                string `json:"hash"`
	BlockHash           string `json:"block_hash"`
	ValidatorPublicKey  string `json:"validator_public_key"`
	WithdrawalPublicKey string `json:"withdrawal_public_key"`
	Amount              int    `json:"amount"`
}

type Slot

type Slot struct {
	Slot          int    `json:"slot"`
	Epoch         int    `json:"epoch"`
	BlockHash     string `json:"block_hash"`
	ProposerIndex int    `json:"proposer_index"`
	Proposed      bool   `json:"proposed"`
}

type Tip

type Tip struct {
	Slot       *Slot        `json:"slot"`
	Epoch      *Epoch       `json:"epoch"`
	Block      *Block       `json:"block"`
	Validators []*Validator `json:"validators"`
}

type Tx

type Tx struct {
	BlockHash         string `json:"block_hash"`
	Hash              string `json:"hash"`
	ToAddress         string `json:"to_address"`
	FromPublicKeyHash string `json:"from_public_key_hash"`
	FromPublicKey     string `json:"from_public_key"`
	Amount            int    `json:"amount"`
	Nonce             int    `json:"nonce"`
	Fee               int    `json:"fee"`
	Timestamp         int    `json:"timestamp"`
}

type Validator

type Validator struct {
	Balance          int    `json:"balance"`
	Pubkey           string `json:"pubkey"`
	PayeeAddress     string `json:"payee_address"`
	Status           int    `json:"status"`
	FirstActiveEpoch int    `json:"first_active_epoch"`
	LastActiveEpoch  int    `json:"last_active_epoch"`
}

type Vote

type Vote struct {
	BlockHash             string    `json:"block_hash"`
	ParticipationBitfield string    `json:"participation_bitfield"`
	Hash                  string    `json:"hash"`
	Data                  *VoteData `json:"data"`
}

type VoteData

type VoteData struct {
	Hash            string `json:"hash"`
	Slot            int    `json:"slot"`
	FromEpoch       int    `json:"from_epoch"`
	FromHash        string `json:"from_hash"`
	ToEpoch         int    `json:"to_epoch"`
	ToHash          string `json:"to_hash"`
	BeaconBlockHash string `json:"beacon_block_hash"`
	Nonce           string `json:"nonce"`
}

Jump to

Keyboard shortcuts

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