Documentation ¶
Index ¶
- Variables
- type AddFCValidationContext
- type CloseFCValidationContext
- type DefaultFeeCreditTxValidator
- type FeeCalculator
- type FeeCredit
- type Option
- func WithFeeCalculator(feeCalculator FeeCalculator) Option
- func WithFeeCreditRecordUnitType(feeCreditRecordUnitType []byte) Option
- func WithHashAlgorithm(hashAlgorithm crypto.Hash) Option
- func WithLogger(logger logger.Logger) Option
- func WithMoneySystemIdentifier(moneySystemID []byte) Option
- func WithState(s *state.State) Option
- func WithSystemIdentifier(systemID []byte) Option
- func WithTrustBase(trustBase map[string]abcrypto.Verifier) Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AddFCValidationContext ¶
type AddFCValidationContext struct { Tx *types.TransactionOrder Unit *state.Unit CurrentRoundNumber uint64 }
type CloseFCValidationContext ¶
type CloseFCValidationContext struct { Tx *types.TransactionOrder Unit *state.Unit }
type DefaultFeeCreditTxValidator ¶
type DefaultFeeCreditTxValidator struct {
// contains filtered or unexported fields
}
DefaultFeeCreditTxValidator default validator for partition specific "add fee credit" and "close fee credit" transactions
func (*DefaultFeeCreditTxValidator) ValidateAddFeeCredit ¶
func (v *DefaultFeeCreditTxValidator) ValidateAddFeeCredit(ctx *AddFCValidationContext) error
func (*DefaultFeeCreditTxValidator) ValidateCloseFC ¶
func (v *DefaultFeeCreditTxValidator) ValidateCloseFC(ctx *CloseFCValidationContext) error
type FeeCalculator ¶
type FeeCalculator func() uint64
func FixedFee ¶
func FixedFee(fee uint64) FeeCalculator
type FeeCredit ¶
type FeeCredit struct {
// contains filtered or unexported fields
}
FeeCredit contains fee credit related functionality.
func NewFeeCreditModule ¶
func (*FeeCredit) GenericTransactionValidator ¶
func (f *FeeCredit) GenericTransactionValidator() txsystem.GenericTransactionValidator
func (*FeeCredit) TxExecutors ¶
func (f *FeeCredit) TxExecutors() map[string]txsystem.TxExecutor
type Option ¶
type Option func(f *FeeCredit)
func WithFeeCalculator ¶
func WithFeeCalculator(feeCalculator FeeCalculator) Option
func WithHashAlgorithm ¶
func WithLogger ¶
func WithSystemIdentifier ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.