From 0a981a8e813f8c3a6a1b68a5ecd746370a0f7585 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Mon, 21 Aug 2023 15:11:21 -0500 Subject: [PATCH] Add new_farming_info event --- pkg/types/farmer.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkg/types/farmer.go b/pkg/types/farmer.go index 685a763..3718e9b 100644 --- a/pkg/types/farmer.go +++ b/pkg/types/farmer.go @@ -4,6 +4,21 @@ import ( "github.com/samber/mo" ) +// EventNewFarmingInfo is the event data for `new_farming_info` from the farmer +// https://github.com/Chia-Network/chia-blockchain/blob/main/chia/farmer/farmer_api.py#L535 +type EventNewFarmingInfo struct { + FarmingInfo struct { + ChallengeHash Bytes32 `json:"challenge_hash"` + SignagePoint Bytes32 `json:"signage_point"` + PassedFilter uint32 `json:"passed_filter"` + Proofs uint32 `json:"proofs"` + TotalPlots uint32 `json:"total_plots"` + Timestamp Timestamp `json:"timestamp"` + NodeID Bytes32 `json:"node_id"` + LookupTime uint64 `json:"lookup_time"` + } `json:"farming_info"` +} + // EventFarmerSubmittedPartial is the event data for `submitted_partial` from the farmer // https://github.com/Chia-Network/chia-blockchain/blob/main/chia/farmer/farmer_api.py#L270 type EventFarmerSubmittedPartial struct {