Documentation
¶
Index ¶
- Constants
- func NewBlock(header types.Header, extrinsics sc.Sequence[types.UncheckedExtrinsic]) primitives.Block
- func NewCheckedExtrinsic(signer sc.Option[primitives.AccountId], function primitives.Call, ...) primitives.CheckedExtrinsic
- func NewUncheckedExtrinsic(version sc.U8, signature sc.Option[primitives.ExtrinsicSignature], ...) primitives.UncheckedExtrinsic
- func NewUnsignedUncheckedExtrinsic(function primitives.Call) primitives.UncheckedExtrinsic
- type PayloadInitializer
- type RuntimeApi
- type RuntimeDecoder
- type SudoDecoder
Constants ¶
View Source
const ( // ExtrinsicFormatVersion is the current version of the [`UncheckedExtrinsic`] encoded format. // // This version needs to be bumped if the encoded representation changes. // It ensures that if the representation is changed and the format is not known, // the decoding fails. ExtrinsicFormatVersion = 4 ExtrinsicBitSigned = 0b1000_0000 ExtrinsicUnmaskVersion = 0b0111_1111 )
Variables ¶
This section is empty.
Functions ¶
func NewBlock ¶
func NewBlock(header types.Header, extrinsics sc.Sequence[types.UncheckedExtrinsic]) primitives.Block
func NewCheckedExtrinsic ¶
func NewCheckedExtrinsic(signer sc.Option[primitives.AccountId], function primitives.Call, extra primitives.SignedExtra, storage io.Storage, transactionBroker io.TransactionBroker, logger log.RuntimeLogger) primitives.CheckedExtrinsic
func NewUncheckedExtrinsic ¶
func NewUncheckedExtrinsic(version sc.U8, signature sc.Option[primitives.ExtrinsicSignature], function primitives.Call, extra primitives.SignedExtra, storage io.Storage, transactionBroker io.TransactionBroker, logger log.RuntimeLogger) primitives.UncheckedExtrinsic
NewUncheckedExtrinsic returns a new instance of an unchecked extrinsic.
func NewUnsignedUncheckedExtrinsic ¶
func NewUnsignedUncheckedExtrinsic(function primitives.Call) primitives.UncheckedExtrinsic
NewUnsignedUncheckedExtrinsic returns a new instance of an unsigned extrinsic.
Types ¶
type PayloadInitializer ¶
type PayloadInitializer = func(call primitives.Call, extra primitives.SignedExtra) ( primitives.SignedPayload, error, )
type RuntimeApi ¶
type RuntimeApi struct {
// contains filtered or unexported fields
}
func NewRuntimeApi ¶
func NewRuntimeApi(apis []primitives.ApiModule, logger log.RuntimeLogger) RuntimeApi
func (RuntimeApi) Items ¶
func (ra RuntimeApi) Items() sc.Sequence[primitives.ApiItem]
func (RuntimeApi) Module ¶
func (ra RuntimeApi) Module(name string) primitives.ApiModule
type RuntimeDecoder ¶
type RuntimeDecoder interface { DecodeBlock(buffer *bytes.Buffer) (primitives.Block, error) DecodeParachainBlockData(blockData sc.Sequence[sc.U8]) (parachain.BlockData, error) DecodeUncheckedExtrinsic(buffer *bytes.Buffer) (primitives.UncheckedExtrinsic, error) DecodeCall(buffer *bytes.Buffer) (primitives.Call, error) }
func NewRuntimeDecoder ¶
func NewRuntimeDecoder(modules []types.Module, extra primitives.SignedExtra, sudoIndex sc.U8, storage io.Storage, transactionBroker io.TransactionBroker, logger log.RuntimeLogger) RuntimeDecoder
type SudoDecoder ¶
type SudoDecoder interface {
DecodeSudoArgs(buffer *bytes.Buffer, decodeCallFunc func(buffer *bytes.Buffer) (primitives.Call, error)) (primitives.Call, error)
}
Click to show internal directories.
Click to hide internal directories.