mocks

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountIdLookup

type AccountIdLookup struct {
	mock.Mock
}

func (*AccountIdLookup) Lookup

type ApiModule

type ApiModule struct {
	mock.Mock
}

func (*ApiModule) Item

func (m *ApiModule) Item() types.ApiItem

func (*ApiModule) Name

func (m *ApiModule) Name() string

type AuraModule

type AuraModule struct {
	mock.Mock
}

func (*AuraModule) CheckInherent

func (m *AuraModule) CheckInherent(call types.Call, data types.InherentData) error

func (*AuraModule) CreateInherent

func (m *AuraModule) CreateInherent(inherent types.InherentData) (sc.Option[types.Call], error)

func (*AuraModule) FindAuthor

func (m *AuraModule) FindAuthor(digests sc.Sequence[primitives.DigestPreRuntime]) (sc.Option[sc.U32], error)

func (*AuraModule) Functions

func (m *AuraModule) Functions() map[sc.U8]primitives.Call

func (*AuraModule) GetIndex

func (m *AuraModule) GetIndex() sc.U8

func (*AuraModule) InherentIdentifier

func (m *AuraModule) InherentIdentifier() [8]byte

func (*AuraModule) IsInherent

func (m *AuraModule) IsInherent(call types.Call) bool

func (*AuraModule) KeyType

func (m *AuraModule) KeyType() primitives.PublicKeyType

func (*AuraModule) KeyTypeId

func (m *AuraModule) KeyTypeId() [4]byte

func (*AuraModule) Metadata

func (m *AuraModule) Metadata() primitives.MetadataModule

func (*AuraModule) OffchainWorker

func (m *AuraModule) OffchainWorker(n sc.U64)

func (*AuraModule) OnFinalize

func (m *AuraModule) OnFinalize(n sc.U64) error

func (*AuraModule) OnIdle

func (m *AuraModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*AuraModule) OnInitialize

func (m *AuraModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*AuraModule) OnRuntimeUpgrade

func (m *AuraModule) OnRuntimeUpgrade() primitives.Weight

func (*AuraModule) OnTimestampSet

func (m *AuraModule) OnTimestampSet(now sc.U64) error

func (*AuraModule) PreDispatch

func (m *AuraModule) PreDispatch(call primitives.Call) (sc.Empty, error)

func (*AuraModule) SlotDuration

func (m *AuraModule) SlotDuration() sc.U64

func (*AuraModule) StorageAuthorities

func (m *AuraModule) StorageAuthorities() (sc.Sequence[primitives.Sr25519PublicKey], error)

func (*AuraModule) StorageAuthoritiesBytes

func (m *AuraModule) StorageAuthoritiesBytes() (sc.Option[sc.Sequence[sc.U8]], error)

func (*AuraModule) StorageCurrentSlot

func (m *AuraModule) StorageCurrentSlot() (sc.U64, error)

func (*AuraModule) ValidateUnsigned

func (m *AuraModule) ValidateUnsigned(txSource primitives.TransactionSource, call primitives.Call) (primitives.ValidTransaction, error)

type AuthorshipEventHandler

type AuthorshipEventHandler struct {
	mock.Mock
}

func (*AuthorshipEventHandler) NoteAuthor

func (a *AuthorshipEventHandler) NoteAuthor(author primitives.AccountId)

type BabeModule

type BabeModule struct {
	mock.Mock
}

func (*BabeModule) CheckInherent

func (m *BabeModule) CheckInherent(call primitives.Call, data primitives.InherentData) error

func (*BabeModule) CreateInherent

func (m *BabeModule) CreateInherent(inherent primitives.InherentData) (sc.Option[primitives.Call], error)

func (*BabeModule) CurrentEpoch

func (m *BabeModule) CurrentEpoch() (babetypes.Epoch, error)

func (*BabeModule) CurrentEpochStart

func (m *BabeModule) CurrentEpochStart() (babetypes.Slot, error)

func (*BabeModule) DecodeKey

func (m *BabeModule) DecodeKey(buffer *bytes.Buffer) (primitives.Sr25519PublicKey, error)

func (*BabeModule) EnactEpochChange

func (m *BabeModule) EnactEpochChange(authorities sc.Sequence[primitives.Authority], nextAuthorities sc.Sequence[primitives.Authority], sessionIndex sc.Option[sc.U32]) error

func (*BabeModule) EpochConfig

func (m *BabeModule) EpochConfig() babetypes.EpochConfiguration

func (*BabeModule) EpochDuration

func (m *BabeModule) EpochDuration() sc.U64

func (*BabeModule) EpochStartSlot

func (m *BabeModule) EpochStartSlot(epochIndex sc.U64, genesisSlot babetypes.Slot, epochDuration sc.U64) (babetypes.Slot, error)

func (*BabeModule) FindAuthor

func (m *BabeModule) FindAuthor(digests sc.Sequence[primitives.DigestPreRuntime]) (sc.Option[sc.U32], error)

func (*BabeModule) Functions

func (m *BabeModule) Functions() map[sc.U8]primitives.Call

func (*BabeModule) GetIndex

func (m *BabeModule) GetIndex() sc.U8

func (*BabeModule) InherentIdentifier

func (m *BabeModule) InherentIdentifier() [8]byte

func (*BabeModule) IsInherent

func (m *BabeModule) IsInherent(call primitives.Call) bool

func (*BabeModule) KeyType

func (m *BabeModule) KeyType() primitives.PublicKeyType

func (*BabeModule) KeyTypeId

func (m *BabeModule) KeyTypeId() [4]byte

func (*BabeModule) Metadata

func (m *BabeModule) Metadata() primitives.MetadataModule

func (*BabeModule) NextEpoch

func (m *BabeModule) NextEpoch() (babetypes.Epoch, error)

func (*BabeModule) OffchainWorker

func (m *BabeModule) OffchainWorker(n sc.U64)

func (*BabeModule) OnBeforeSessionEnding

func (m *BabeModule) OnBeforeSessionEnding()

func (*BabeModule) OnDisabled

func (m *BabeModule) OnDisabled(validatorIndex sc.U32)

func (*BabeModule) OnFinalize

func (m *BabeModule) OnFinalize(n sc.U64) error

func (*BabeModule) OnGenesisSession

func (m *BabeModule) OnGenesisSession(validators sc.Sequence[primitives.Validator]) error

func (*BabeModule) OnIdle

func (m *BabeModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*BabeModule) OnInitialize

func (m *BabeModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*BabeModule) OnNewSession

func (m *BabeModule) OnNewSession(changed bool, validators sc.Sequence[primitives.Validator], queuedValidators sc.Sequence[primitives.Validator]) error

func (*BabeModule) OnRuntimeUpgrade

func (m *BabeModule) OnRuntimeUpgrade() primitives.Weight

func (*BabeModule) OnTimestampSet

func (m *BabeModule) OnTimestampSet(now sc.U64) error

func (*BabeModule) PreDispatch

func (m *BabeModule) PreDispatch(call primitives.Call) (sc.Empty, error)

func (*BabeModule) ShouldEpochChange

func (m *BabeModule) ShouldEpochChange(now sc.U64) bool

func (*BabeModule) SlotDuration

func (m *BabeModule) SlotDuration() sc.U64

func (*BabeModule) StorageAuthorities

func (m *BabeModule) StorageAuthorities() (sc.Sequence[primitives.Authority], error)

func (*BabeModule) StorageAuthoritiesBytes

func (m *BabeModule) StorageAuthoritiesBytes() (sc.Option[sc.Sequence[sc.U8]], error)

func (*BabeModule) StorageCurrentSlot

func (m *BabeModule) StorageCurrentSlot() (sc.U64, error)

func (*BabeModule) StorageEpochConfig

func (m *BabeModule) StorageEpochConfig() (babetypes.EpochConfiguration, error)

func (*BabeModule) StorageEpochConfigSet

func (m *BabeModule) StorageEpochConfigSet(value babetypes.EpochConfiguration)

func (*BabeModule) StorageRandomness

func (m *BabeModule) StorageRandomness() (babetypes.Randomness, error)

func (*BabeModule) StorageSegmentIndexSet

func (m *BabeModule) StorageSegmentIndexSet(sc.U32)

func (*BabeModule) ValidateUnsigned

func (m *BabeModule) ValidateUnsigned(txSource primitives.TransactionSource, call primitives.Call) (primitives.ValidTransaction, error)

type Block

type Block struct {
	mock.Mock
}

func (*Block) Bytes

func (m *Block) Bytes() []byte

func (*Block) Encode

func (m *Block) Encode(buffer *bytes.Buffer) error

func (*Block) Extrinsics

func (m *Block) Extrinsics() sc.Sequence[types.UncheckedExtrinsic]

func (*Block) Header

func (m *Block) Header() types.Header

type BlockExecutor

type BlockExecutor struct {
	mock.Mock
}

func (*BlockExecutor) ExecuteBlock

func (m *BlockExecutor) ExecuteBlock(block types.Block) error

type Call

type Call struct {
	mock.Mock
}

func (*Call) Args

func (m *Call) Args() sc.VaryingData

func (*Call) BaseWeight

func (m *Call) BaseWeight() types.Weight

func (*Call) Bytes

func (m *Call) Bytes() []byte

func (*Call) ClassifyDispatch

func (m *Call) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (*Call) DecodeArgs

func (m *Call) DecodeArgs(buffer *bytes.Buffer) (types.Call, error)

func (*Call) Dispatch

func (m *Call) Dispatch(origin types.RuntimeOrigin, a sc.VaryingData) (types.PostDispatchInfo, error)

func (*Call) Docs

func (m *Call) Docs() string

func (*Call) Encode

func (m *Call) Encode(buffer *bytes.Buffer) error

func (*Call) FunctionIndex

func (m *Call) FunctionIndex() sc.U8

func (*Call) ModuleIndex

func (m *Call) ModuleIndex() sc.U8

func (*Call) PaysFee

func (m *Call) PaysFee(baseWeight types.Weight) types.Pays

func (*Call) WeighData

func (m *Call) WeighData(baseWeight types.Weight) types.Weight

type CallSudo

type CallSudo struct {
	Call
}

func (*CallSudo) DecodeSudoArgs

func (m *CallSudo) DecodeSudoArgs(buffer *bytes.Buffer, decodeCallFunc func(buffer *bytes.Buffer) (primitives.Call, error)) (primitives.Call, error)

type CheckedExtrinsic

type CheckedExtrinsic struct {
	mock.Mock
}

func (*CheckedExtrinsic) Apply

func (*CheckedExtrinsic) Function

func (c *CheckedExtrinsic) Function() primitives.Call

func (*CheckedExtrinsic) Validate

type ConsumedWeight

type ConsumedWeight struct {
	mock.Mock
}

func (*ConsumedWeight) Total

func (cw *ConsumedWeight) Total() types.Weight

type CurrencyAdapter

type CurrencyAdapter struct {
	mock.Mock
}

func (*CurrencyAdapter) DepositIntoExisting

func (m *CurrencyAdapter) DepositIntoExisting(who types.AccountId, value sc.U128) (types.Balance, error)

func (*CurrencyAdapter) Withdraw

func (m *CurrencyAdapter) Withdraw(who types.AccountId, value sc.U128, reasons sc.U8, liveness types.ExistenceRequirement) (types.Balance, error)

type DefaultOnRuntimeUpgrade

type DefaultOnRuntimeUpgrade struct {
	mock.Mock
}

func (*DefaultOnRuntimeUpgrade) OnRuntimeUpgrade

func (doru *DefaultOnRuntimeUpgrade) OnRuntimeUpgrade() types.Weight

type DefaultOnSetCode

type DefaultOnSetCode struct {
	mock.Mock
}

func (*DefaultOnSetCode) SetCode

func (d *DefaultOnSetCode) SetCode(codeBlob sc.Sequence[sc.U8]) error

type EpochChangeTrigger

type EpochChangeTrigger struct {
	mock.Mock
}

func (*EpochChangeTrigger) Trigger

func (t *EpochChangeTrigger) Trigger(now sc.U64)

type EquivocationReportSystem

type EquivocationReportSystem struct {
	mock.Mock
}

func (*EquivocationReportSystem) ProcessEvidence

func (m *EquivocationReportSystem) ProcessEvidence(reporter sc.Option[primitives.AccountId], equivocationProof grandpatypes.EquivocationProof, keyOwnerProof grandpatypes.KeyOwnerProof) error

func (*EquivocationReportSystem) PublishEvidence

func (m *EquivocationReportSystem) PublishEvidence(equivocationProof grandpatypes.EquivocationProof, keyOwnerProof grandpatypes.KeyOwnerProof) error

type EventDepositor

type EventDepositor struct {
	mock.Mock
}

func (*EventDepositor) DepositEvent

func (m *EventDepositor) DepositEvent(event types.Event)

type Executive

type Executive struct {
	mock.Mock
}

func (*Executive) ApplyExtrinsic

func (m *Executive) ApplyExtrinsic(uxt types.UncheckedExtrinsic) error

func (*Executive) ExecuteBlock

func (m *Executive) ExecuteBlock(block types.Block) error

func (*Executive) FinalizeBlock

func (m *Executive) FinalizeBlock() (primitives.Header, error)

func (*Executive) InitializeBlock

func (m *Executive) InitializeBlock(header primitives.Header) error

func (*Executive) OffchainWorker

func (m *Executive) OffchainWorker(header primitives.Header) error

func (*Executive) ValidateTransaction

type FindAccountFromAuthorIndex

type FindAccountFromAuthorIndex struct {
	mock.Mock
}

func (*FindAccountFromAuthorIndex) FindAuthor

type GrandpaModule

type GrandpaModule struct {
	mock.Mock
}

func (*GrandpaModule) Authorities

func (m *GrandpaModule) Authorities() (sc.Sequence[primitives.Authority], error)

func (*GrandpaModule) CheckInherent

func (m *GrandpaModule) CheckInherent(call types.Call, data types.InherentData) error

func (*GrandpaModule) CreateInherent

func (m *GrandpaModule) CreateInherent(inherent types.InherentData) (sc.Option[types.Call], error)

func (*GrandpaModule) Functions

func (m *GrandpaModule) Functions() map[sc.U8]primitives.Call

func (*GrandpaModule) GetIndex

func (m *GrandpaModule) GetIndex() sc.U8

func (*GrandpaModule) HistoricalKeyOwnershipProof

func (m *GrandpaModule) HistoricalKeyOwnershipProof(authorityId primitives.AccountId) sc.Option[grandpatypes.OpaqueKeyOwnershipProof]

func (*GrandpaModule) InherentIdentifier

func (m *GrandpaModule) InherentIdentifier() [8]byte

func (*GrandpaModule) IsInherent

func (m *GrandpaModule) IsInherent(call types.Call) bool

func (*GrandpaModule) KeyType

func (m *GrandpaModule) KeyType() primitives.PublicKeyType

func (*GrandpaModule) KeyTypeId

func (m *GrandpaModule) KeyTypeId() [4]byte

func (*GrandpaModule) Metadata

func (m *GrandpaModule) Metadata() primitives.MetadataModule

func (*GrandpaModule) OffchainWorker

func (m *GrandpaModule) OffchainWorker(n sc.U64)

func (*GrandpaModule) OnFinalize

func (m *GrandpaModule) OnFinalize(n sc.U64) error

func (*GrandpaModule) OnIdle

func (m *GrandpaModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*GrandpaModule) OnInitialize

func (m *GrandpaModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*GrandpaModule) OnRuntimeUpgrade

func (m *GrandpaModule) OnRuntimeUpgrade() primitives.Weight

func (*GrandpaModule) PreDispatch

func (m *GrandpaModule) PreDispatch(call primitives.Call) (sc.Empty, error)

func (*GrandpaModule) StorageSetId

func (m *GrandpaModule) StorageSetId() (sc.U64, error)

func (*GrandpaModule) StorageSetIdSessionGet

func (m *GrandpaModule) StorageSetIdSessionGet(key sc.U64) (sc.U32, error)

func (*GrandpaModule) SubmitUnsignedEquivocationReport

func (m *GrandpaModule) SubmitUnsignedEquivocationReport(equivocationProof grandpatypes.EquivocationProof, keyOwnerProof grandpatypes.KeyOwnerProof) error

func (*GrandpaModule) ValidateUnsigned

type HostEnvironment

type HostEnvironment struct {
	mock.Mock
	IoStorage
	IoTransactionBroker
}

func (*HostEnvironment) SetTrieState

func (m *HostEnvironment) SetTrieState(state *storage.TrieState)

type IoCrypto

type IoCrypto struct {
	mock.Mock
}

func (*IoCrypto) EcdsaGenerate

func (m *IoCrypto) EcdsaGenerate(keyTypeId []byte, seed []byte) []byte

func (*IoCrypto) EcdsaRecoverCompressed

func (m *IoCrypto) EcdsaRecoverCompressed(signature []byte, msg []byte) []byte

func (*IoCrypto) Ed25519Generate

func (m *IoCrypto) Ed25519Generate(keyTypeId []byte, seed []byte) []byte

func (*IoCrypto) Ed25519Verify

func (m *IoCrypto) Ed25519Verify(signature []byte, message []byte, pubKey []byte) bool

func (*IoCrypto) Sr25519Generate

func (m *IoCrypto) Sr25519Generate(keyTypeId []byte, seed []byte) []byte

func (*IoCrypto) Sr25519Verify

func (m *IoCrypto) Sr25519Verify(signature []byte, message []byte, pubKey []byte) bool

type IoHashing

type IoHashing struct {
	mock.Mock
}

func (*IoHashing) Blake128

func (m *IoHashing) Blake128(value []byte) []byte

func (*IoHashing) Blake256

func (m *IoHashing) Blake256(value []byte) []byte

func (*IoHashing) Twox128

func (m *IoHashing) Twox128(value []byte) []byte

func (*IoHashing) Twox64

func (m *IoHashing) Twox64(value []byte) []byte

type IoMisc

type IoMisc struct {
	mock.Mock
}

func (*IoMisc) PrintHex

func (m *IoMisc) PrintHex(data []byte)

func (*IoMisc) PrintUtf8

func (m *IoMisc) PrintUtf8(data []byte)

func (*IoMisc) RuntimeVersion

func (m *IoMisc) RuntimeVersion(codeBlob []byte) []byte

type IoStorage

type IoStorage struct {
	mock.Mock
}

func (*IoStorage) Append

func (m *IoStorage) Append(key []byte, value []byte)

func (*IoStorage) Clear

func (m *IoStorage) Clear(key []byte)

func (*IoStorage) ClearPrefix

func (m *IoStorage) ClearPrefix(key []byte, limit []byte)

func (*IoStorage) Exists

func (m *IoStorage) Exists(key []byte) bool

func (*IoStorage) Get

func (m *IoStorage) Get(key []byte) (sc.Option[sc.Sequence[sc.U8]], error)

func (*IoStorage) NextKey

func (m *IoStorage) NextKey(key []byte) (sc.Option[sc.Sequence[sc.U8]], error)

func (*IoStorage) Read

func (m *IoStorage) Read(key []byte, valueOut []byte, offset int32) (sc.Option[sc.U32], error)

func (*IoStorage) Root

func (m *IoStorage) Root(version int32) []byte

func (*IoStorage) Set

func (m *IoStorage) Set(key []byte, value []byte)

type IoTransactionBroker

type IoTransactionBroker struct {
	mock.Mock
}

func (*IoTransactionBroker) Commit

func (m *IoTransactionBroker) Commit()

func (*IoTransactionBroker) Rollback

func (m *IoTransactionBroker) Rollback()

func (*IoTransactionBroker) Start

func (m *IoTransactionBroker) Start()

type IoTransactional

type IoTransactional[T sc.Encodable] struct {
	mock.Mock
}

func (*IoTransactional[T]) WithStorageLayer

func (m *IoTransactional[T]) WithStorageLayer(fn func() (T, error)) (T, error)

type IoTrie

type IoTrie struct {
	mock.Mock
}

func (*IoTrie) Blake2256OrderedRoot

func (m *IoTrie) Blake2256OrderedRoot(key []byte, version int32) []byte

type KeyOwnerProofSystem

type KeyOwnerProofSystem struct {
	mock.Mock
}

func (*KeyOwnerProofSystem) Prove

type LogDepositor

type LogDepositor struct {
	mock.Mock
}

func (*LogDepositor) DepositLog

func (m *LogDepositor) DepositLog(item types.DigestItem)

type MemoryTranslator

type MemoryTranslator struct {
	mock.Mock
}

func (*MemoryTranslator) BytesToOffsetAndSize

func (m *MemoryTranslator) BytesToOffsetAndSize(data []byte) int64

func (*MemoryTranslator) GetWasmMemorySlice

func (m *MemoryTranslator) GetWasmMemorySlice(offset int32, size int32) []byte

func (*MemoryTranslator) Int64ToOffsetAndSize

func (m *MemoryTranslator) Int64ToOffsetAndSize(offsetAndSize int64) (offset int32, size int32)

func (*MemoryTranslator) Offset32

func (m *MemoryTranslator) Offset32(data []byte) int32

type Module

type Module struct {
	mock.Mock
}

func (*Module) BuildConfig

func (m *Module) BuildConfig(config []byte) error

func (*Module) CheckInherent

func (m *Module) CheckInherent(call types.Call, data types.InherentData) error

func (*Module) CreateDefaultConfig

func (m *Module) CreateDefaultConfig() ([]byte, error)

func (*Module) CreateInherent

func (m *Module) CreateInherent(inherent types.InherentData) (sc.Option[types.Call], error)

func (*Module) Functions

func (m *Module) Functions() map[sc.U8]types.Call

func (*Module) GetIndex

func (m *Module) GetIndex() sc.U8

func (*Module) InherentIdentifier

func (m *Module) InherentIdentifier() [8]byte

func (*Module) IsInherent

func (m *Module) IsInherent(call types.Call) bool

func (*Module) Metadata

func (m *Module) Metadata() types.MetadataModule

func (*Module) OffchainWorker

func (m *Module) OffchainWorker(n sc.U64)

func (*Module) OnFinalize

func (m *Module) OnFinalize(n sc.U64) error

func (*Module) OnIdle

func (m *Module) OnIdle(n sc.U64, remainingWeight types.Weight) types.Weight

func (*Module) OnInitialize

func (m *Module) OnInitialize(n sc.U64) (types.Weight, error)

func (*Module) OnRuntimeUpgrade

func (m *Module) OnRuntimeUpgrade() types.Weight

func (*Module) PreDispatch

func (m *Module) PreDispatch(call types.Call) (sc.Empty, error)

func (*Module) ValidateUnsigned

func (m *Module) ValidateUnsigned(txSource types.TransactionSource, call types.Call) (types.ValidTransaction, error)

type OnChargeTransaction

type OnChargeTransaction struct {
	mock.Mock
}

func (*OnChargeTransaction) CorrectAndDepositFee

func (ct *OnChargeTransaction) CorrectAndDepositFee(who primitives.AccountId, correctedFee types.Balance, tip types.Balance, alreadyWithdrawn sc.Option[types.Balance]) error

func (*OnChargeTransaction) WithdrawFee

type OnTimestampSet

type OnTimestampSet struct {
	mock.Mock
}

func (*OnTimestampSet) OnTimestampSet

func (m *OnTimestampSet) OnTimestampSet(n sc.U64) error

type OneSessionHandler

type OneSessionHandler struct {
	mock.Mock
}

func (*OneSessionHandler) DecodeKey

func (*OneSessionHandler) KeyType

func (*OneSessionHandler) KeyTypeId

func (m *OneSessionHandler) KeyTypeId() [4]byte

func (*OneSessionHandler) OnBeforeSessionEnding

func (m *OneSessionHandler) OnBeforeSessionEnding()

func (*OneSessionHandler) OnDisabled

func (m *OneSessionHandler) OnDisabled(validatorIndex sc.U32)

func (*OneSessionHandler) OnGenesisSession

func (m *OneSessionHandler) OnGenesisSession(validators sc.Sequence[primitives.Validator]) error

func (*OneSessionHandler) OnNewSession

func (m *OneSessionHandler) OnNewSession(changed bool, validators sc.Sequence[primitives.Validator], queuedValidators sc.Sequence[primitives.Validator]) error

type ParachainSystemModule

type ParachainSystemModule struct {
	mock.Mock
}

func (*ParachainSystemModule) CheckInherent

func (m *ParachainSystemModule) CheckInherent(call primitives.Call, inherent primitives.InherentData) error

func (*ParachainSystemModule) CollectCollationInfo

func (m *ParachainSystemModule) CollectCollationInfo(header primitives.Header) (parachain.CollationInfo, error)

func (*ParachainSystemModule) CreateInherent

func (m *ParachainSystemModule) CreateInherent(inherent primitives.InherentData) (sc.Option[primitives.Call], error)

func (*ParachainSystemModule) Functions

func (m *ParachainSystemModule) Functions() map[sc.U8]primitives.Call

func (*ParachainSystemModule) GetIndex

func (m *ParachainSystemModule) GetIndex() sc.U8

func (*ParachainSystemModule) InherentIdentifier

func (m *ParachainSystemModule) InherentIdentifier() [8]byte

func (*ParachainSystemModule) IsInherent

func (m *ParachainSystemModule) IsInherent(call primitives.Call) bool

func (*ParachainSystemModule) Metadata

func (*ParachainSystemModule) OffchainWorker

func (m *ParachainSystemModule) OffchainWorker(n sc.U64)

func (*ParachainSystemModule) OnFinalize

func (m *ParachainSystemModule) OnFinalize(n sc.U64) error

func (*ParachainSystemModule) OnIdle

func (m *ParachainSystemModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*ParachainSystemModule) OnInitialize

func (m *ParachainSystemModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*ParachainSystemModule) OnRuntimeUpgrade

func (m *ParachainSystemModule) OnRuntimeUpgrade() primitives.Weight

func (*ParachainSystemModule) PreDispatch

func (m *ParachainSystemModule) PreDispatch(call primitives.Call) (sc.Empty, error)

func (*ParachainSystemModule) ScheduleCodeUpgrade

func (m *ParachainSystemModule) ScheduleCodeUpgrade(code sc.Sequence[sc.U8]) error

ScheduleCodeUpgrade contains logic for parachain upgrade functionality.

func (*ParachainSystemModule) StorageNewValidationCodeBytes

func (m *ParachainSystemModule) StorageNewValidationCodeBytes() (sc.Option[sc.Sequence[sc.U8]], error)

func (*ParachainSystemModule) ValidateUnsigned

type RawStorageValue

type RawStorageValue struct {
	mock.Mock
}

func (*RawStorageValue) Clear

func (m *RawStorageValue) Clear()

func (*RawStorageValue) ClearPrefix

func (m *RawStorageValue) ClearPrefix(limit sc.U32)

func (*RawStorageValue) Get

func (m *RawStorageValue) Get() (sc.Sequence[sc.U8], error)

func (*RawStorageValue) Put

func (m *RawStorageValue) Put(value sc.Sequence[sc.U8])

type RelayChainStateProof

type RelayChainStateProof struct {
	mock.Mock
}

func (*RelayChainStateProof) ReadAbridgedHostConfiguration

func (m *RelayChainStateProof) ReadAbridgedHostConfiguration() (parachain.AbridgedHostConfiguration, error)

func (*RelayChainStateProof) ReadIncludedParaHeadHash

func (m *RelayChainStateProof) ReadIncludedParaHeadHash() sc.Option[sc.FixedSequence[sc.U8]]

func (*RelayChainStateProof) ReadMessagingStateSnapshot

func (*RelayChainStateProof) ReadRestrictionSignal

func (m *RelayChainStateProof) ReadRestrictionSignal() (sc.Option[sc.U8], error)

func (*RelayChainStateProof) ReadSlot

func (m *RelayChainStateProof) ReadSlot() (sc.U64, error)

func (*RelayChainStateProof) ReadUpgradeGoAheadSignal

func (m *RelayChainStateProof) ReadUpgradeGoAheadSignal() (sc.Option[sc.U8], error)

type RuntimeDecoder

type RuntimeDecoder struct {
	mock.Mock
}

func (*RuntimeDecoder) DecodeBlock

func (m *RuntimeDecoder) DecodeBlock(buffer *bytes.Buffer) (types.Block, error)

func (*RuntimeDecoder) DecodeCall

func (m *RuntimeDecoder) DecodeCall(buffer *bytes.Buffer) (primitives.Call, error)

func (*RuntimeDecoder) DecodeParachainBlockData

func (m *RuntimeDecoder) DecodeParachainBlockData(blockData sc.Sequence[sc.U8]) (parachain.BlockData, error)

func (*RuntimeDecoder) DecodeUncheckedExtrinsic

func (m *RuntimeDecoder) DecodeUncheckedExtrinsic(buffer *bytes.Buffer) (types.UncheckedExtrinsic, error)

type RuntimeExtrinsic

type RuntimeExtrinsic struct {
	mock.Mock
}

func (*RuntimeExtrinsic) CheckInherents

func (*RuntimeExtrinsic) CreateInherents

func (re *RuntimeExtrinsic) CreateInherents(inherentData primitives.InherentData) ([]byte, error)

func (*RuntimeExtrinsic) EnsureInherentsAreFirst

func (re *RuntimeExtrinsic) EnsureInherentsAreFirst(block types.Block) int

func (*RuntimeExtrinsic) Module

func (re *RuntimeExtrinsic) Module(index sc.U8) (module primitives.Module, isFound bool)

func (*RuntimeExtrinsic) OffchainWorker

func (re *RuntimeExtrinsic) OffchainWorker(n sc.U64)

func (*RuntimeExtrinsic) OnFinalize

func (re *RuntimeExtrinsic) OnFinalize(n sc.U64) error

func (*RuntimeExtrinsic) OnIdle

func (re *RuntimeExtrinsic) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*RuntimeExtrinsic) OnInitialize

func (re *RuntimeExtrinsic) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*RuntimeExtrinsic) OnRuntimeUpgrade

func (re *RuntimeExtrinsic) OnRuntimeUpgrade() primitives.Weight

type SessionModule

type SessionModule struct {
	mock.Mock
}

func (*SessionModule) AppendHandlers

func (m *SessionModule) AppendHandlers(module sessiontypes.OneSessionHandler)

func (*SessionModule) CheckInherent

func (m *SessionModule) CheckInherent(call types.Call, data types.InherentData) error

func (*SessionModule) CreateInherent

func (m *SessionModule) CreateInherent(inherent types.InherentData) (sc.Option[types.Call], error)

func (*SessionModule) CurrentIndex

func (m *SessionModule) CurrentIndex() (sc.U32, error)

func (*SessionModule) DecodeKeys

func (*SessionModule) Functions

func (m *SessionModule) Functions() map[sc.U8]types.Call

func (*SessionModule) GetIndex

func (m *SessionModule) GetIndex() sc.U8

func (*SessionModule) InherentIdentifier

func (m *SessionModule) InherentIdentifier() [8]byte

func (*SessionModule) IsDisabled

func (m *SessionModule) IsDisabled(index sc.U32) (bool, error)

func (*SessionModule) IsInherent

func (m *SessionModule) IsInherent(call types.Call) bool

func (*SessionModule) Metadata

func (m *SessionModule) Metadata() types.MetadataModule

func (*SessionModule) OffchainWorker

func (m *SessionModule) OffchainWorker(n sc.U64)

func (*SessionModule) OnFinalize

func (m *SessionModule) OnFinalize(n sc.U64) error

func (*SessionModule) OnIdle

func (m *SessionModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*SessionModule) OnInitialize

func (m *SessionModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*SessionModule) OnRuntimeUpgrade

func (m *SessionModule) OnRuntimeUpgrade() primitives.Weight

func (*SessionModule) PreDispatch

func (m *SessionModule) PreDispatch(call types.Call) (sc.Empty, error)

func (*SessionModule) ValidateUnsigned

func (m *SessionModule) ValidateUnsigned(txSource types.TransactionSource, call types.Call) (types.ValidTransaction, error)

func (*SessionModule) Validators

func (m *SessionModule) Validators() (sc.Sequence[primitives.AccountId], error)

type ShouldEndSession

type ShouldEndSession struct {
	mock.Mock
}

func (*ShouldEndSession) ShouldEndSession

func (m *ShouldEndSession) ShouldEndSession(blockNumber sc.U64) bool

type SignedExtra

type SignedExtra struct {
	mock.Mock
}

func (*SignedExtra) AdditionalSigned

func (m *SignedExtra) AdditionalSigned() (types.AdditionalSigned, error)

func (*SignedExtra) Bytes

func (m *SignedExtra) Bytes() []byte

func (*SignedExtra) Decode

func (m *SignedExtra) Decode(buffer *bytes.Buffer)

func (*SignedExtra) DeepCopy

func (m *SignedExtra) DeepCopy() types.SignedExtra

func (*SignedExtra) Encode

func (m *SignedExtra) Encode(buffer *bytes.Buffer) error

func (*SignedExtra) Metadata

func (*SignedExtra) PostDispatch

func (m *SignedExtra) PostDispatch(pre sc.Option[sc.Sequence[types.Pre]], info *types.DispatchInfo, postInfo *types.PostDispatchInfo, length sc.Compact, dispatchErr error) error

func (*SignedExtra) PreDispatch

func (m *SignedExtra) PreDispatch(who types.AccountId, call types.Call, info *types.DispatchInfo, length sc.Compact) (sc.Sequence[types.Pre], error)

func (*SignedExtra) PreDispatchUnsigned

func (m *SignedExtra) PreDispatchUnsigned(call types.Call, info *types.DispatchInfo, length sc.Compact) error

func (*SignedExtra) Validate

func (m *SignedExtra) Validate(who types.AccountId, call types.Call, info *types.DispatchInfo, length sc.Compact) (types.ValidTransaction, error)

func (*SignedExtra) ValidateUnsigned

func (m *SignedExtra) ValidateUnsigned(call types.Call, info *types.DispatchInfo, length sc.Compact) (types.ValidTransaction, error)

type SignedPayload

type SignedPayload struct {
	mock.Mock
}

func (*SignedPayload) AdditionalSigned

func (sp *SignedPayload) AdditionalSigned() primitives.AdditionalSigned

func (*SignedPayload) Bytes

func (sp *SignedPayload) Bytes() []byte

func (*SignedPayload) Call

func (sp *SignedPayload) Call() primitives.Call

func (*SignedPayload) Encode

func (sp *SignedPayload) Encode(buffer *bytes.Buffer) error

func (*SignedPayload) Extra

func (sp *SignedPayload) Extra() primitives.SignedExtra

type StaleNotifier

type StaleNotifier struct {
	mock.Mock
}

func (*StaleNotifier) OnStalled

func (sn *StaleNotifier) OnStalled(furtherWait sc.U64, median sc.U64)

type StorageMap

type StorageMap[K, V sc.Encodable] struct {
	mock.Mock
}

func (*StorageMap[K, V]) Append

func (m *StorageMap[K, V]) Append(k K, v V)

func (*StorageMap[K, V]) Clear

func (m *StorageMap[K, V]) Clear(limit sc.U32)

func (*StorageMap[K, V]) Exists

func (m *StorageMap[K, V]) Exists(k K) bool

func (*StorageMap[K, V]) Get

func (m *StorageMap[K, V]) Get(k K) (V, error)

func (*StorageMap[K, V]) Mutate

func (m *StorageMap[K, V]) Mutate(k K, f func(value *V) (sc.Encodable, error)) (sc.Encodable, error)

func (*StorageMap[K, V]) Put

func (m *StorageMap[K, V]) Put(k K, value V)

func (*StorageMap[K, V]) Remove

func (m *StorageMap[K, V]) Remove(k K)

func (*StorageMap[K, V]) TakeBytes

func (m *StorageMap[K, V]) TakeBytes(k K) ([]byte, error)

func (*StorageMap[K, V]) TryMutateExists

func (m *StorageMap[K, V]) TryMutateExists(k K, f func(option *sc.Option[V]) (sc.Encodable, error)) (sc.Encodable, error)

type StorageValue

type StorageValue[T sc.Encodable] struct {
	mock.Mock
}

func (*StorageValue[T]) Append

func (m *StorageValue[T]) Append(value T)

func (*StorageValue[T]) AppendItem

func (m *StorageValue[T]) AppendItem(value sc.Encodable)

TODO: support appending values with type different from T

func (*StorageValue[T]) Clear

func (m *StorageValue[T]) Clear()

func (*StorageValue[T]) DecodeLen

func (m *StorageValue[T]) DecodeLen() (sc.Option[sc.U64], error)

func (*StorageValue[T]) Exists

func (m *StorageValue[T]) Exists() bool

func (*StorageValue[T]) Get

func (m *StorageValue[T]) Get() (T, error)

func (*StorageValue[T]) GetBytes

func (m *StorageValue[T]) GetBytes() (sc.Option[sc.Sequence[sc.U8]], error)

func (*StorageValue[T]) Mutate

func (m *StorageValue[T]) Mutate(f func(*T) (T, error)) (T, error)

func (*StorageValue[T]) Put

func (m *StorageValue[T]) Put(value T)

func (*StorageValue[T]) Take

func (m *StorageValue[T]) Take() (T, error)

func (*StorageValue[T]) TakeBytes

func (m *StorageValue[T]) TakeBytes() ([]byte, error)

type StoredMap

type StoredMap struct {
	mock.Mock
}

func (*StoredMap) CanDecProviders

func (m *StoredMap) CanDecProviders(who types.AccountId) (bool, error)

func (*StoredMap) DecConsumers

func (m *StoredMap) DecConsumers(who types.AccountId) error

func (*StoredMap) DecProviders

func (m *StoredMap) DecProviders(who types.AccountId) (types.DecRefStatus, error)

func (*StoredMap) DepositEvent

func (m *StoredMap) DepositEvent(event types.Event)

func (*StoredMap) Get

func (*StoredMap) IncConsumers

func (m *StoredMap) IncConsumers(who types.AccountId) error

func (*StoredMap) IncConsumersWithoutLimit

func (m *StoredMap) IncConsumersWithoutLimit(who types.AccountId) error

func (*StoredMap) IncProviders

func (m *StoredMap) IncProviders(who types.AccountId) (types.IncRefStatus, error)

func (*StoredMap) Insert

func (m *StoredMap) Insert(who types.AccountId, data types.AccountData) (sc.Encodable, error)

func (*StoredMap) Put

func (m *StoredMap) Put(key types.AccountId, accInfo types.AccountInfo)

func (*StoredMap) TryMutateExists

func (m *StoredMap) TryMutateExists(who types.AccountId, f func(who *types.AccountData) (sc.Encodable, error)) (sc.Encodable, error)

type SystemModule

type SystemModule struct {
	mock.Mock
}

func (*SystemModule) AccountTryMutateExists

func (m *SystemModule) AccountTryMutateExists(who primitives.AccountId, f func(who *primitives.AccountInfo) (sc.Encodable, error)) (sc.Encodable, error)

func (*SystemModule) BlockHashCount

func (m *SystemModule) BlockHashCount() types.BlockHashCount

func (*SystemModule) BlockLength

func (m *SystemModule) BlockLength() types.BlockLength

func (*SystemModule) BlockWeights

func (m *SystemModule) BlockWeights() types.BlockWeights

func (*SystemModule) CanDecProviders

func (m *SystemModule) CanDecProviders(who primitives.AccountId) (bool, error)

func (*SystemModule) CanIncConsumer

func (m *SystemModule) CanIncConsumer(who primitives.AccountId) (bool, error)

func (*SystemModule) CanSetCode

func (m *SystemModule) CanSetCode(codeBlob sc.Sequence[sc.U8]) error

func (*SystemModule) CheckInherent

func (m *SystemModule) CheckInherent(call primitives.Call, data primitives.InherentData) error

func (*SystemModule) CreateInherent

func (m *SystemModule) CreateInherent(inherent primitives.InherentData) (sc.Option[primitives.Call], error)

func (*SystemModule) DbWeight

func (m *SystemModule) DbWeight() types.RuntimeDbWeight

func (*SystemModule) DecConsumers

func (m *SystemModule) DecConsumers(who primitives.AccountId) error

func (*SystemModule) DecProviders

func (*SystemModule) DepositEvent

func (m *SystemModule) DepositEvent(event primitives.Event)

func (*SystemModule) DepositLog

func (m *SystemModule) DepositLog(item primitives.DigestItem)

func (*SystemModule) DoApplyAuthorizeUpgrade

func (m *SystemModule) DoApplyAuthorizeUpgrade(code sc.Sequence[sc.U8]) (primitives.PostDispatchInfo, error)

func (*SystemModule) DoAuthorizeUpgrade

func (m *SystemModule) DoAuthorizeUpgrade(codeHash primitives.H256, checkVersion sc.Bool)

func (*SystemModule) Finalize

func (m *SystemModule) Finalize() (primitives.Header, error)

func (*SystemModule) Functions

func (m *SystemModule) Functions() map[sc.U8]primitives.Call

func (*SystemModule) Get

func (*SystemModule) GetIndex

func (m *SystemModule) GetIndex() sc.U8

func (*SystemModule) IncConsumers

func (m *SystemModule) IncConsumers(who primitives.AccountId) error

func (*SystemModule) IncConsumersWithoutLimit

func (m *SystemModule) IncConsumersWithoutLimit(who primitives.AccountId) error

func (*SystemModule) IncProviders

func (*SystemModule) InherentIdentifier

func (m *SystemModule) InherentIdentifier() [8]byte

func (*SystemModule) Initialize

func (m *SystemModule) Initialize(blockNumber sc.U64, parentHash primitives.Blake2bHash, digest primitives.Digest)

func (*SystemModule) Insert

func (*SystemModule) IsInherent

func (m *SystemModule) IsInherent(call primitives.Call) bool

func (*SystemModule) Metadata

func (m *SystemModule) Metadata() primitives.MetadataModule

func (*SystemModule) Mutate

func (*SystemModule) NoteAppliedExtrinsic

func (m *SystemModule) NoteAppliedExtrinsic(postInfo primitives.PostDispatchInfo, postDispatchErr error, info primitives.DispatchInfo) error

func (*SystemModule) NoteExtrinsic

func (m *SystemModule) NoteExtrinsic(encodedExt []byte) error

func (*SystemModule) NoteFinishedExtrinsics

func (m *SystemModule) NoteFinishedExtrinsics() error

func (*SystemModule) NoteFinishedInitialize

func (m *SystemModule) NoteFinishedInitialize()

func (*SystemModule) OffchainWorker

func (m *SystemModule) OffchainWorker(n sc.U64)

func (*SystemModule) OnFinalize

func (m *SystemModule) OnFinalize(n sc.U64) error

func (*SystemModule) OnIdle

func (m *SystemModule) OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight

func (*SystemModule) OnInitialize

func (m *SystemModule) OnInitialize(n sc.U64) (primitives.Weight, error)

func (*SystemModule) OnRuntimeUpgrade

func (m *SystemModule) OnRuntimeUpgrade() primitives.Weight

func (*SystemModule) PreDispatch

func (m *SystemModule) PreDispatch(call primitives.Call) (sc.Empty, error)

func (*SystemModule) RegisterExtraWeightUnchecked

func (m *SystemModule) RegisterExtraWeightUnchecked(weight primitives.Weight, class primitives.DispatchClass) error

func (*SystemModule) ResetEvents

func (m *SystemModule) ResetEvents()

func (*SystemModule) RuntimeUpgrade

func (m *SystemModule) RuntimeUpgrade() bool

func (*SystemModule) StorageAccount

func (m *SystemModule) StorageAccount(key types.AccountId) (types.AccountInfo, error)

func (*SystemModule) StorageAccountSet

func (m *SystemModule) StorageAccountSet(key types.AccountId, value types.AccountInfo)

func (*SystemModule) StorageAllExtrinsicsLen

func (m *SystemModule) StorageAllExtrinsicsLen() (sc.U32, error)

func (*SystemModule) StorageAllExtrinsicsLenSet

func (m *SystemModule) StorageAllExtrinsicsLenSet(value sc.U32)

func (*SystemModule) StorageBlockHash

func (m *SystemModule) StorageBlockHash(key sc.U64) (types.Blake2bHash, error)

func (*SystemModule) StorageBlockHashExists

func (m *SystemModule) StorageBlockHashExists(key sc.U64) bool

func (*SystemModule) StorageBlockHashSet

func (m *SystemModule) StorageBlockHashSet(key sc.U64, value types.Blake2bHash)

func (*SystemModule) StorageBlockNumber

func (m *SystemModule) StorageBlockNumber() (sc.U64, error)

func (*SystemModule) StorageBlockNumberSet

func (m *SystemModule) StorageBlockNumberSet(blockNumber sc.U64)

func (*SystemModule) StorageBlockWeight

func (m *SystemModule) StorageBlockWeight() (primitives.ConsumedWeight, error)

func (*SystemModule) StorageBlockWeightSet

func (m *SystemModule) StorageBlockWeightSet(weight primitives.ConsumedWeight)

func (*SystemModule) StorageCodeSet

func (m *SystemModule) StorageCodeSet(codeBlob sc.Sequence[sc.U8])

func (*SystemModule) StorageDigest

func (m *SystemModule) StorageDigest() (types.Digest, error)

func (*SystemModule) StorageLastRuntimeUpgrade

func (m *SystemModule) StorageLastRuntimeUpgrade() (types.LastRuntimeUpgradeInfo, error)

func (*SystemModule) StorageLastRuntimeUpgradeSet

func (m *SystemModule) StorageLastRuntimeUpgradeSet(lrui types.LastRuntimeUpgradeInfo)

func (*SystemModule) StorageParentHash

func (m *SystemModule) StorageParentHash() (types.Blake2bHash, error)

func (*SystemModule) TryMutateExists

func (m *SystemModule) TryMutateExists(who primitives.AccountId, f func(who *primitives.AccountData) (sc.Encodable, error)) (sc.Encodable, error)

func (*SystemModule) UpdateCodeInStorage

func (m *SystemModule) UpdateCodeInStorage(code sc.Sequence[sc.U8])

func (*SystemModule) ValidateUnsigned

func (*SystemModule) Version

func (m *SystemModule) Version() types.RuntimeVersion

type TransactionPaymentModule

type TransactionPaymentModule struct {
	mock.Mock
}

func (*TransactionPaymentModule) CheckInherent

func (m *TransactionPaymentModule) CheckInherent(call types.Call, data types.InherentData) error

func (*TransactionPaymentModule) ComputeActualFee

func (m *TransactionPaymentModule) ComputeActualFee(len sc.U32, info types.DispatchInfo, postInfo types.PostDispatchInfo, tip types.Balance) (types.Balance, error)

func (*TransactionPaymentModule) ComputeFee

func (m *TransactionPaymentModule) ComputeFee(len sc.U32, info types.DispatchInfo, tip types.Balance) (types.Balance, error)

func (*TransactionPaymentModule) ComputeFeeDetails

func (m *TransactionPaymentModule) ComputeFeeDetails(len sc.U32, info types.DispatchInfo, tip types.Balance) (tx_types.FeeDetails, error)

func (*TransactionPaymentModule) CreateInherent

func (m *TransactionPaymentModule) CreateInherent(inherent types.InherentData) (sc.Option[types.Call], error)

func (*TransactionPaymentModule) Functions

func (m *TransactionPaymentModule) Functions() map[sc.U8]types.Call

func (*TransactionPaymentModule) GetIndex

func (m *TransactionPaymentModule) GetIndex() sc.U8

func (*TransactionPaymentModule) InherentIdentifier

func (m *TransactionPaymentModule) InherentIdentifier() [8]byte

func (*TransactionPaymentModule) IsInherent

func (m *TransactionPaymentModule) IsInherent(call types.Call) bool

func (*TransactionPaymentModule) Metadata

func (*TransactionPaymentModule) OffchainWorker

func (m *TransactionPaymentModule) OffchainWorker(n sc.U64)

func (*TransactionPaymentModule) OnFinalize

func (m *TransactionPaymentModule) OnFinalize(n sc.U64) error

func (*TransactionPaymentModule) OnIdle

func (m *TransactionPaymentModule) OnIdle(n sc.U64, remainingWeight types.Weight) types.Weight

func (*TransactionPaymentModule) OnInitialize

func (m *TransactionPaymentModule) OnInitialize(n sc.U64) (types.Weight, error)

func (*TransactionPaymentModule) OnRuntimeUpgrade

func (m *TransactionPaymentModule) OnRuntimeUpgrade() types.Weight

func (*TransactionPaymentModule) OperationalFeeMultiplier

func (m *TransactionPaymentModule) OperationalFeeMultiplier() sc.U8

func (*TransactionPaymentModule) PreDispatch

func (m *TransactionPaymentModule) PreDispatch(call types.Call) (sc.Empty, error)

func (*TransactionPaymentModule) ValidateUnsigned

type UncheckedExtrinsic

type UncheckedExtrinsic struct {
	mock.Mock
}

func (*UncheckedExtrinsic) Bytes

func (uxt *UncheckedExtrinsic) Bytes() []byte

func (*UncheckedExtrinsic) Check

func (*UncheckedExtrinsic) Encode

func (uxt *UncheckedExtrinsic) Encode(buffer *bytes.Buffer) error

func (*UncheckedExtrinsic) Extra

func (*UncheckedExtrinsic) Function

func (uxt *UncheckedExtrinsic) Function() primitives.Call

func (*UncheckedExtrinsic) IsSigned

func (uxt *UncheckedExtrinsic) IsSigned() bool

func (*UncheckedExtrinsic) Signature

type UnsignedValidator

type UnsignedValidator struct {
	mock.Mock
}

func (*UnsignedValidator) PreDispatch

func (m *UnsignedValidator) PreDispatch(call types.Call) (sc.Empty, error)

func (*UnsignedValidator) ValidateUnsigned

func (m *UnsignedValidator) ValidateUnsigned(source types.TransactionSource, call types.Call) (types.ValidTransaction, error)

Jump to

Keyboard shortcuts

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