Versions in this module Expand all Collapse all v0 v0.9.0 Mar 1, 2024 Changes in this version type Config + DefaultVersion *runtime.Version + type TestInstanceOption func(*Config) + func TestWithLogLevel(lvl log.Level) TestInstanceOption + func TestWithTrie(tt *trie.Trie) TestInstanceOption + func TestWithVersion(version *runtime.Version) TestInstanceOption v0.8.0 Dec 11, 2023 Changes in this version + const Name + var DefaultTestLogLvl = log.Info + var ErrExportFunctionNotFound = errors.New("export function not found") + func GetRuntimeVersion(code []byte) (version runtime.Version, err error) + func NewKillStorageResult(deleted uint32, allDeleted bool) scale.VaryingDataType + type Config struct + CodeHash common.Hash + Keystore *keystore.GlobalKeystore + LogLvl log.Level + Network runtime.BasicNetwork + NodeStorage runtime.NodeStorage + Role common.NetworkRole + Storage runtime.Storage + Transaction runtime.TransactionState + type Instance struct + Context *runtime.Context + Module api.Module + Runtime wazero.Runtime + func NewInstance(code []byte, cfg Config) (instance *Instance, err error) + func NewInstanceFromFile(fp string, cfg Config) (*Instance, error) + func NewInstanceFromTrie(t *trie.Trie, cfg Config) (*Instance, error) + func NewRuntimeFromGenesis(cfg Config) (instance *Instance, err error) + func NewTestInstance(t *testing.T, targetRuntime string) *Instance + func NewTestInstanceWithTrie(t *testing.T, targetRuntime string, tt *trie.Trie) *Instance + func (*Instance) CheckInherents() + func (*Instance) GenerateSessionKeys() + func (*Instance) OffchainWorker() + func (*Instance) RandomSeed() + func (i *Instance) Exec(function string, data []byte) (result []byte, err error) + func (in *Instance) ApplyExtrinsic(data types.Extrinsic) ([]byte, error) + func (in *Instance) BabeConfiguration() (*types.BabeConfiguration, error) + func (in *Instance) BabeGenerateKeyOwnershipProof(slot uint64, authorityID [32]byte) (types.OpaqueKeyOwnershipProof, error) + func (in *Instance) BabeSubmitReportEquivocationUnsignedExtrinsic(equivocationProof types.BabeEquivocationProof, ...) error + func (in *Instance) DecodeSessionKeys(enc []byte) ([]byte, error) + func (in *Instance) ExecuteBlock(block *types.Block) ([]byte, error) + func (in *Instance) FinalizeBlock() (*types.Header, error) + func (in *Instance) GetCodeHash() common.Hash + func (in *Instance) GrandpaAuthorities() ([]types.Authority, error) + func (in *Instance) GrandpaGenerateKeyOwnershipProof(authSetID uint64, authorityID ed25519.PublicKeyBytes) (types.GrandpaOpaqueKeyOwnershipProof, error) + func (in *Instance) GrandpaSubmitReportEquivocationUnsignedExtrinsic(equivocationProof types.GrandpaEquivocationProof, ...) error + func (in *Instance) InherentExtrinsics(data []byte) ([]byte, error) + func (in *Instance) InitializeBlock(header *types.Header) error + func (in *Instance) Keystore() *keystore.GlobalKeystore + func (in *Instance) Metadata() ([]byte, error) + func (in *Instance) NetworkService() runtime.BasicNetwork + func (in *Instance) NodeStorage() runtime.NodeStorage + func (in *Instance) PaymentQueryInfo(ext []byte) (*types.RuntimeDispatchInfo, error) + func (in *Instance) QueryCallFeeDetails(ext []byte) (*types.FeeDetails, error) + func (in *Instance) QueryCallInfo(ext []byte) (*types.RuntimeDispatchInfo, error) + func (in *Instance) SetContextStorage(s runtime.Storage) + func (in *Instance) Stop() + func (in *Instance) ValidateTransaction(e types.Extrinsic) (*transaction.Validity, error) + func (in *Instance) Validator() bool + func (in *Instance) Version() (runtime.Version, error)