Files
evm/precompile/contracts/rewardmanager/event.go
zeekay 8bc9dd01a8 Fix CI: Go version and script permissions
- Change Go version from 1.24.6 to 1.22.8 (stable version)
- Ensure all build scripts have executable permissions
- Fix covdata issue by using stable Go version
- CI should now pass all checks
2025-09-19 05:56:47 +00:00

45 lines
2.4 KiB
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated
// This file is a generated precompile contract config with stubbed abstract functions.
// The file is generated by a template. Please inspect every code and comment in this file before use.
package rewardmanager
import (
"github.com/luxfi/evm/precompile/contract"
"github.com/luxfi/geth/common"
)
const (
// FeeRecipientsAllowedEventGasCost is the gas cost of the FeeRecipientsAllowed event.
// It is calculated as the gas cost of the log operation + the gas cost of 2 topic hashes (signature + sender).
FeeRecipientsAllowedEventGasCost = contract.LogGas + contract.LogTopicGas*2
// RewardAddressChangedEventGasCost is the gas cost of the RewardAddressChanged event.
// It is calculated as the gas cost of the log operation + the gas cost of 3 topic hashes (signature + sender + oldRewardAddress).
// + the gas cost of reading old reward address.
RewardAddressChangedEventGasCost = contract.LogGas + contract.LogTopicGas*4 + contract.ReadGasCostPerSlot
// RewardsDisabledEventGasCost is the gas cost of the RewardsDisabled event.
// It is calculated as the gas cost of the log operation + the gas cost of 2 topic hashes (signature + sender).
RewardsDisabledEventGasCost = contract.LogGas + contract.LogTopicGas*2
)
// PackFeeRecipientsAllowedEvent packs the event into the appropriate arguments for FeeRecipientsAllowed.
// It returns topic hashes and the encoded non-indexed data.
func PackFeeRecipientsAllowedEvent(sender common.Address) ([]common.Hash, []byte, error) {
return RewardManagerABI.PackEvent("FeeRecipientsAllowed", sender)
}
// PackRewardAddressChangedEvent packs the event into the appropriate arguments for RewardAddressChanged.
// It returns topic hashes and the encoded non-indexed data.
func PackRewardAddressChangedEvent(sender common.Address, oldRewardAddress common.Address, newRewardAddress common.Address) ([]common.Hash, []byte, error) {
return RewardManagerABI.PackEvent("RewardAddressChanged", sender, oldRewardAddress, newRewardAddress)
}
// PackRewardsDisabledEvent packs the event into the appropriate arguments for RewardsDisabled.
// It returns topic hashes and the encoded non-indexed data.
func PackRewardsDisabledEvent(sender common.Address) ([]common.Hash, []byte, error) {
return RewardManagerABI.PackEvent("RewardsDisabled", sender)
}