Documentation ¶
Index ¶
- type HashConsensusHelper
- func (v *HashConsensusHelper) GetLastData(ctx context.Context) (*big.Int, *MemberInfo, error)
- func (v *HashConsensusHelper) GetMemberInfo(ctx context.Context) (*MemberInfo, error)
- func (v *HashConsensusHelper) GetRefSlotAndIsReport(ctx context.Context) (*big.Int, bool, error)
- func (v *HashConsensusHelper) ProcessReportHash(ctx context.Context, dataHash [32]byte, refSlot, consensusVersion *big.Int) error
- type MemberInfo
- type ReportContract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashConsensusHelper ¶
type HashConsensusHelper struct { ReportContract ReportContract KeyTransactOpts *bind.TransactOpts }
func (*HashConsensusHelper) GetLastData ¶
func (v *HashConsensusHelper) GetLastData(ctx context.Context) (*big.Int, *MemberInfo, error)
func (*HashConsensusHelper) GetMemberInfo ¶
func (v *HashConsensusHelper) GetMemberInfo(ctx context.Context) (*MemberInfo, error)
func (*HashConsensusHelper) GetRefSlotAndIsReport ¶
func (*HashConsensusHelper) ProcessReportHash ¶
type MemberInfo ¶
type ReportContract ¶
type ReportContract interface { GetConsensusContractAddress(ctx context.Context) (common.Address, error) GetConsensusContract(ctx context.Context) (*hashConsensus.HashConsensus, error) CheckContractVersions(ctx context.Context) error IsContractReportable(ctx context.Context) (bool, error) IsMainDataSubmitted(ctx context.Context) (bool, error) }
Click to show internal directories.
Click to hide internal directories.