hooks

package
v0.0.3-rc-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultDispatchModule

type DefaultDispatchModule struct{}

func (DefaultDispatchModule) OffchainWorker

func (dmh DefaultDispatchModule) OffchainWorker(n sc.U64)

func (DefaultDispatchModule) OnFinalize

func (dmh DefaultDispatchModule) OnFinalize(n sc.U64) error

func (DefaultDispatchModule) OnIdle

func (dmh DefaultDispatchModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (DefaultDispatchModule) OnInitialize

func (dmh DefaultDispatchModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (DefaultDispatchModule) OnRuntimeUpgrade

func (dmh DefaultDispatchModule) OnRuntimeUpgrade() primitives.Weight

type DefaultOnRuntimeUpgrade

type DefaultOnRuntimeUpgrade struct{}

func (DefaultOnRuntimeUpgrade) OnRuntimeUpgrade

func (doru DefaultOnRuntimeUpgrade) OnRuntimeUpgrade() primitives.Weight

type OnChargeTransaction

type OnChargeTransaction interface {
	CorrectAndDepositFee(who primitives.AccountId, correctedFee primitives.Balance, tip primitives.Balance, alreadyWithdrawn sc.Option[primitives.Balance]) error
	WithdrawFee(who primitives.AccountId, call primitives.Call, info *primitives.DispatchInfo, fee primitives.Balance, tip primitives.Balance) (sc.Option[primitives.Balance], error)
}

type OnSetCode

type OnSetCode interface {
	// SetCode sets the code to the given blob.
	SetCode(sc.Sequence[sc.U8]) error
}

OnSetCode does something when we should be setting the code.

type OnTimestampSet

type OnTimestampSet[T goscale.Encodable] interface {
	OnTimestampSet(T) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL