@@ -18,7 +18,7 @@ type RegisteredAggregationProof C.RegisteredAggregationProof_t
1818type RegisteredPoStProof C.RegisteredPoStProof_t
1919type RegisteredUpdateProof C.RegisteredUpdateProof_t
2020
21- type FvmRegisteredVersion C. FvmRegisteredVersion_t
21+ // FVM types moved to types_fvm.go behind build tag
2222
2323type AggregationInputs C.AggregationInputs_t
2424
@@ -49,8 +49,7 @@ type ByteArray32 C.uint8_32_array_t
4949type ByteArray48 C.uint8_48_array_t
5050type ByteArray96 C.uint8_96_array_t
5151
52- type FvmMachine C.InnerFvmMachine_t
53- type FvmMachineExecuteResponse C.FvmMachineExecuteResponse_t
52+ // FVM types moved to types_fvm.go behind build tag
5453
5554type resultBool C.Result_bool_t
5655type resultGeneratePieceCommitment C.Result_GeneratePieceCommitment_t
@@ -70,8 +69,7 @@ type resultGenerateFallbackSectorChallenges C.Result_GenerateFallbackSectorChall
7069type resultGenerateSingleWindowPoStWithVanilla C.Result_GenerateSingleWindowPoStWithVanilla_t
7170type resultPoStProof C.Result_PoStProof_t
7271
73- type resultFvmMachine C.Result_InnerFvmMachine_ptr_t
74- type resultFvmMachineExecuteResponse C.Result_FvmMachineExecuteResponse_t
72+ // FVM types moved to types_fvm.go behind build tag
7573
7674type result interface {
7775 statusCode () FCPResponseStatus
@@ -606,63 +604,10 @@ func (ptr *PoStProof) Destroy() {
606604 }
607605}
608606
609- func (ptr * resultFvmMachineExecuteResponse ) statusCode () FCPResponseStatus {
610- return FCPResponseStatus (ptr .status_code )
611- }
612-
613- func (ptr * resultFvmMachineExecuteResponse ) errorMsg () * SliceBoxedUint8 {
614- return (* SliceBoxedUint8 )(& ptr .error_msg )
615- }
616-
617- func (ptr * resultFvmMachineExecuteResponse ) destroy () {
618- if ptr != nil {
619- C .destroy_fvm_machine_execute_response ((* C .Result_FvmMachineExecuteResponse_t )(ptr ))
620- ptr = nil
621- }
622- }
623-
624- func (ptr * resultFvmMachine ) statusCode () FCPResponseStatus {
625- return FCPResponseStatus (ptr .status_code )
626- }
607+ // FVM helpers moved to types_fvm.go
627608
628- func (ptr * resultFvmMachine ) errorMsg () * SliceBoxedUint8 {
629- return (* SliceBoxedUint8 )(& ptr .error_msg )
630- }
609+ // FVM helpers moved to types_fvm.go
631610
632- func (ptr * resultFvmMachine ) destroy () {
633- if ptr != nil {
634- C .destroy_create_fvm_machine_response ((* C .Result_InnerFvmMachine_ptr_t )(ptr ))
635- ptr = nil
636- }
637- }
611+ // FVM helpers moved to types_fvm.go
638612
639- func (ptr * FvmMachine ) Destroy () {
640- if ptr != nil {
641- C .drop_fvm_machine ((* C .InnerFvmMachine_t )(ptr ))
642- ptr = nil
643- }
644- }
645-
646- func (r FvmMachineExecuteResponse ) copy () FvmMachineExecuteResponseGo {
647- return FvmMachineExecuteResponseGo {
648- ExitCode : uint64 (r .exit_code ),
649- ReturnVal : (* SliceBoxedUint8 )(& r .return_val ).copy (),
650- GasUsed : uint64 (r .gas_used ),
651- PenaltyHi : uint64 (r .penalty_hi ),
652- PenaltyLo : uint64 (r .penalty_lo ),
653- MinerTipHi : uint64 (r .miner_tip_hi ),
654- MinerTipLo : uint64 (r .miner_tip_lo ),
655- BaseFeeBurnHi : uint64 (r .base_fee_burn_hi ),
656- BaseFeeBurnLo : uint64 (r .base_fee_burn_lo ),
657- OverEstimationBurnHi : uint64 (r .over_estimation_burn_hi ),
658- OverEstimationBurnLo : uint64 (r .over_estimation_burn_lo ),
659- RefundHi : uint64 (r .refund_hi ),
660- RefundLo : uint64 (r .refund_lo ),
661- GasRefund : int64 (r .gas_refund ),
662- GasBurned : int64 (r .gas_burned ),
663- ExecTrace : (* SliceBoxedUint8 )(& r .exec_trace ).copy (),
664- FailureInfo : string ((* SliceBoxedUint8 )(& r .failure_info ).slice ()),
665- Events : (* SliceBoxedUint8 )(& r .events ).copy (),
666- EventsRoot : (* SliceBoxedUint8 )(& r .events_root ).copy (),
667- }
668- }
613+ // FVM helpers moved to types_fvm.go
0 commit comments