Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
func AddressFromString ¶
func (Address) MarshalJSON ¶
func (*Address) UnmarshalJSON ¶
type AttestInfo ¶
type AttestInfo struct {
TargetBlock BlockNumber
TargetBlockHash BlockHash
WindowStart BlockNumber
WindowEnd BlockNumber
}
Used by the validator to keep track of the starknet attestation window
type Balance ¶
STRK balance represented in Wei
func NewBalance ¶ added in v0.2.7
type BlockNumber ¶
type BlockNumber uint64
type DoAttest ¶ added in v0.2.4
type DoAttest struct {
BlockHash BlockHash
}
Represents an event for the dispatcher to invoke an attest transaction
type EpochInfo ¶
type EpochInfo struct {
StakerAddress Address `json:"staker_address"`
Stake uint128.Uint128 `json:"stake"`
EpochLen uint64 `json:"epoch_len"`
EpochId uint64 `json:"epoch_id"`
StartingBlock BlockNumber `json:"current_epoch_starting_block"`
}
Used by the validator to keep track of the current epoch info
type PrepareAttest ¶ added in v0.2.4
type PrepareAttest struct {
BlockHash BlockHash
}
Represents an event for the dispatcher to prepare for the next attest
type Retries ¶
type Retries struct {
// contains filtered or unexported fields
}
func RetriesFromString ¶
type ValidationContracts ¶
func ValidationContractsFromAddresses ¶
func ValidationContractsFromAddresses(ca *config.ContractAddresses) ValidationContracts
func (*ValidationContracts) String ¶
func (c *ValidationContracts) String() string
Click to show internal directories.
Click to hide internal directories.