github.com/koko1123/flow-go-1@v0.29.6/fvm/derived/invalidator.go (about) 1 package derived 2 3 import ( 4 "github.com/onflow/cadence/runtime/common" 5 6 "github.com/koko1123/flow-go-1/fvm/meter" 7 ) 8 9 type MeterParamOverrides struct { 10 ComputationWeights meter.ExecutionEffortWeights // nil indicates no override 11 MemoryWeights meter.ExecutionMemoryWeights // nil indicates no override 12 MemoryLimit *uint64 // nil indicates no override 13 } 14 15 type ProgramInvalidator TableInvalidator[ 16 common.AddressLocation, 17 *Program, 18 ] 19 20 type MeterParamOverridesInvalidator TableInvalidator[ 21 struct{}, 22 MeterParamOverrides, 23 ] 24 25 type TransactionInvalidator interface { 26 ProgramInvalidator() ProgramInvalidator 27 MeterParamOverridesInvalidator() MeterParamOverridesInvalidator 28 }