Documentation ¶
Index ¶
- Constants
- type ConsensusType
- type ConstructParams
- type JoinParams
- type State
- func (st *State) GetCheckpoint(s adt.Store, epoch abi.ChainEpoch) (*gateway.BottomUpCheckpoint, bool, error)
- func (st *State) GetStake(s adt.Store, id address.Address) (abi.TokenAmount, error)
- func (st *State) HasMajorityVote(s adt.Store, v Votes) (bool, error)
- func (t *State) MarshalCBOR(w io.Writer) error
- func (t *State) UnmarshalCBOR(r io.Reader) (err error)
- type Votes
Constants ¶
View Source
const ManifestID = "ipc_subnet_actor"
ManifestID is the id used to index the gateway actor in the builtin-actors bundle.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusType ¶
type ConsensusType uint64
ConsensusType defines the types of consensus supported by subnets.
const (
Mir ConsensusType = iota
)
type ConstructParams ¶
type ConstructParams struct { Parent sdk.SubnetID Name string IPCGatewayAddr address.Address Consensus ConsensusType MinValidatorStake abi.TokenAmount MinValidators uint64 BottomUpCheckPeriod abi.ChainEpoch TopDownCheckPeriod abi.ChainEpoch Genesis []byte }
func (*ConstructParams) MarshalCBOR ¶
func (t *ConstructParams) MarshalCBOR(w io.Writer) error
func (*ConstructParams) UnmarshalCBOR ¶
func (t *ConstructParams) UnmarshalCBOR(r io.Reader) (err error)
type JoinParams ¶
type JoinParams struct {
ValidatorNetAddr string
}
func (*JoinParams) MarshalCBOR ¶
func (t *JoinParams) MarshalCBOR(w io.Writer) error
func (*JoinParams) UnmarshalCBOR ¶
func (t *JoinParams) UnmarshalCBOR(r io.Reader) (err error)
type State ¶
type State struct { Name string ParentID sdk.SubnetID IPCGatewayAddr address.Address Consensus ConsensusType MinValidatorStake abi.TokenAmount TotalStake abi.TokenAmount Stake cid.Cid // TCid<THamt<Cid,TokenAmount>> Status sdk.Status Genesis []byte BottomUpCheckPeriod abi.ChainEpoch TopDownCheckPeriod abi.ChainEpoch CommittedCheckpoints cid.Cid // TCid<THamt<ChainEpoch, BottomUpCheckpoint>> ValidatorSet *validator.Set MinValidators uint64 PreviousExecutedCheckpoint cid.Cid BottomUpCheckpointVoting voting.Voting }
func (*State) GetCheckpoint ¶
func (st *State) GetCheckpoint(s adt.Store, epoch abi.ChainEpoch) (*gateway.BottomUpCheckpoint, bool, error)
func (*State) HasMajorityVote ¶
Click to show internal directories.
Click to hide internal directories.