Documentation ¶
Index ¶
Constants ¶
View Source
const (
ApiModuleName = "CollectCollationInfo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the CollectCollationInfo Runtime API definition.
For more information about API definition, see: https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/primitives/core/src/lib.rs#L378
func New ¶
func New(parachainSystem parachain_system.Module, logger log.RuntimeLogger) Module
func (Module) CollectCollationInfo ¶
CollectCollationInfo returns the collation information by the header of a built block. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded block header. Returns a pointer-size of the SCALE-encoded collation information.
func (Module) Item ¶
func (m Module) Item() primitives.ApiItem
Item returns the first 8 bytes of the Blake2b hash of the name and version of the api module.
func (Module) Metadata ¶
func (m Module) Metadata() primitives.RuntimeApiMetadata
Click to show internal directories.
Click to hide internal directories.