@@ -3,10 +3,12 @@ import {
33} from "@subsquid/substrate-processor" ;
44import { Farm , FarmCertification , PublicIp } from "../model" ;
55import { TfgridModuleFarmStoredEvent , TfgridModuleFarmDeletedEvent , TfgridModuleFarmUpdatedEvent , TfgridModuleFarmPayoutV2AddressRegisteredEvent , TfgridModuleFarmCertificationSetEvent } from "../types/events" ;
6+ import * as v63 from '../types/v63'
67
78export async function farmStored ( ctx : EventHandlerContext ) {
89 const farmStoredEvent = new TfgridModuleFarmStoredEvent ( ctx )
910
11+ console . log ( ctx . _chain . getEventHash ( 'tfgridModule.FarmStored' ) )
1012 let farmStoredEventParsed
1113 if ( farmStoredEvent . isV9 ) {
1214 farmStoredEventParsed = farmStoredEvent . asV9
@@ -15,6 +17,8 @@ export async function farmStored(ctx: EventHandlerContext) {
1517 } else if ( farmStoredEvent . isV63 ) {
1618 farmStoredEventParsed = farmStoredEvent . asV63
1719 } else if ( farmStoredEvent . isV101 ) {
20+ let eventValue = ctx . event . params [ 0 ] . value as v63 . Farm
21+ eventValue . dedicatedFarm = false
1822 farmStoredEventParsed = farmStoredEvent . asV101
1923 }
2024
@@ -75,6 +79,8 @@ export async function farmUpdated(ctx: EventHandlerContext) {
7579 } else if ( farmUpdatedEvent . isV63 ) {
7680 farmUpdatedEventParsed = farmUpdatedEvent . asV63
7781 } else if ( farmUpdatedEvent . isV101 ) {
82+ let eventValue = ctx . event . params [ 0 ] . value as v63 . Farm
83+ eventValue . dedicatedFarm = false
7884 farmUpdatedEventParsed = farmUpdatedEvent . asV101
7985 }
8086
0 commit comments