mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
35 lines
802 B
Go
35 lines
802 B
Go
// (c) 2020-2020, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package commontype
|
|
|
|
import (
|
|
"github.com/luxfi/evm/ids"
|
|
"github.com/luxfi/evm/iface"
|
|
)
|
|
|
|
// ChainContext provides Lux-specific blockchain context
|
|
type ChainContext struct {
|
|
NetworkID uint32
|
|
SubnetID ids.SubnetID
|
|
ChainID ids.ChainID
|
|
NodeID ids.NodeID
|
|
|
|
// Node version
|
|
AppVersion uint32
|
|
|
|
// Chain configuration
|
|
ChainDataDir string
|
|
|
|
// ValidatorState provides access to validator information
|
|
ValidatorState iface.ValidatorState
|
|
}
|
|
|
|
// NodeID is an alias to ids.NodeID for compatibility
|
|
type NodeID = ids.NodeID
|
|
|
|
// SubnetID is an alias to ids.SubnetID for compatibility
|
|
type SubnetID = ids.SubnetID
|
|
|
|
// ChainID is an alias to ids.ChainID for compatibility
|
|
type ChainID = ids.ChainID |