Documentation
¶
Index ¶
- Constants
- type Executor
- func (e *Executor) AttestChallenge(submitterAddress, challengerAddress, spOperatorAddress string, ...) (bool, error)
- func (e *Executor) BroadcastVote(v *votepool.Vote) error
- func (e *Executor) CacheValidatorsLoop()
- func (e *Executor) GetAddr() string
- func (e *Executor) GetBlockAndBlockResultAtHeight(height int64) (*tmtypes.Block, *ctypes.ResultBlockResults, error)
- func (e *Executor) GetCachedBlockHeight() (uint64, error)
- func (e *Executor) GetChallengeResultFromSp(objectId, endpoint string, segmentIndex, redundancyIndex int) (*types.ChallengeResult, error)
- func (e *Executor) GetHeightLoop()
- func (e *Executor) GetLatestBlockHeight() (uint64, error)
- func (e *Executor) GetNonce() (uint64, error)
- func (e *Executor) GetObjectInfoChecksums(objectId string) ([][]byte, error)
- func (e *Executor) GetStorageProviderEndpoint(address string) (string, error)
- func (e *Executor) GetValidatorsBlsPublicKey() ([]string, error)
- func (e *Executor) QueryCachedLatestValidators() ([]*tmtypes.Validator, error)
- func (e *Executor) QueryChallengeHeartbeatInterval() (uint64, error)
- func (e *Executor) QueryChallengeSlashCoolingOffPeriod() (uint64, error)
- func (e *Executor) QueryInturnAttestationSubmitter() (*challengetypes.QueryInturnAttestationSubmitterResponse, error)
- func (e *Executor) QueryLatestAttestedChallengeIds() ([]uint64, error)
- func (e *Executor) QueryVotes(eventType votepool.EventType) ([]*votepool.Vote, error)
- func (e *Executor) UpdateHeartbeatIntervalLoop()
- type GnfdCompositeClient
- type GnfdCompositeClients
- type JsonRpcClient
Constants ¶
View Source
const ( UpdateCachedValidatorsInterval = 1 * time.Minute QueryHeartbeatIntervalInterval = 120 * time.Minute // blockchain challenge heartbeat interval only changed by governance VotePoolBroadcastMethodName = "broadcast_vote" VotePoolBroadcastParameterKey = "vote" VotePoolQueryMethodName = "query_vote" VotePoolQueryParameterEventType = "event_type" VotePoolQueryParameterEventHash = "event_hash" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { BlsPrivKey []byte BlsPubKey []byte // contains filtered or unexported fields }
func NewExecutor ¶
func (*Executor) AttestChallenge ¶
func (*Executor) CacheValidatorsLoop ¶
func (e *Executor) CacheValidatorsLoop()
func (*Executor) GetBlockAndBlockResultAtHeight ¶
func (*Executor) GetCachedBlockHeight ¶
func (*Executor) GetChallengeResultFromSp ¶
func (*Executor) GetHeightLoop ¶
func (e *Executor) GetHeightLoop()
func (*Executor) GetLatestBlockHeight ¶
func (*Executor) GetObjectInfoChecksums ¶
func (*Executor) GetStorageProviderEndpoint ¶
func (*Executor) GetValidatorsBlsPublicKey ¶
func (*Executor) QueryCachedLatestValidators ¶
func (*Executor) QueryChallengeHeartbeatInterval ¶
func (*Executor) QueryChallengeSlashCoolingOffPeriod ¶ added in v0.0.4
func (*Executor) QueryInturnAttestationSubmitter ¶
func (e *Executor) QueryInturnAttestationSubmitter() (*challengetypes.QueryInturnAttestationSubmitterResponse, error)
func (*Executor) QueryLatestAttestedChallengeIds ¶
func (*Executor) QueryVotes ¶
func (*Executor) UpdateHeartbeatIntervalLoop ¶
func (e *Executor) UpdateHeartbeatIntervalLoop()
type GnfdCompositeClient ¶
type GnfdCompositeClient struct { gnfdclient.IClient client.TendermintClient JsonRpcClient Height int64 }
type GnfdCompositeClients ¶
type GnfdCompositeClients struct {
// contains filtered or unexported fields
}
func NewGnfdCompositClients ¶
func NewGnfdCompositClients(rpcAddrs []string, chainId string, account *types.Account) GnfdCompositeClients
func (*GnfdCompositeClients) GetClient ¶
func (gc *GnfdCompositeClients) GetClient() *GnfdCompositeClient
type JsonRpcClient ¶
type JsonRpcClient = *jsonrpcclient.Client
Click to show internal directories.
Click to hide internal directories.