Files
2021-09-30 10:04:05 -04:00

33 lines
732 B
Go

// (c) 2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package models
import (
"time"
)
// ChainInfo represents an overview of data about a given chain
type ChainInfo struct {
ID StringID `json:"chainID"`
Alias string `json:"chainAlias"`
VM string `json:"vm"`
AVAXAssetID StringID `json:"avaxAssetID"`
NetworkID uint32 `json:"networkID"`
}
type Block struct {
ID StringID `json:"id"`
ParentID StringID `json:"parentID"`
ChainID StringID `json:"chainID"`
Type BlockType `json:"type"`
CreatedAt time.Time `json:"createdAt"`
}
type ControlSignature []byte
type BlockList struct {
ListMetadata
Blocks []*Block `json:"blocks"`
}