Documentation
¶
Index ¶
- Constants
- type Module
- func (m Module) Authorities() int64
- func (m Module) CurrentSetId() int64
- func (m Module) GenerateKeyOwnershipProof(dataPtr int32, dataLen int32) int64
- func (m Module) Item() primitives.ApiItem
- func (m Module) Metadata() primitives.RuntimeApiMetadata
- func (m Module) Name() string
- func (m Module) SubmitReportEquivocationUnsignedExtrinsic(dataPtr int32, dataLen int32) int64
Constants ¶
View Source
const (
ApiModuleName = "GrandpaApi"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the GrandpaApi Runtime API definition.
For more information about API definition, see: https://spec.polkadot.network/chap-runtime-api#id-module-grandpaapi
func (Module) Authorities ¶
Authorities returns the current set of Grandpa authorities. Returns a pointer-size of the SCALE-encoded set of authorities.
For more information about function definition, see: https://spec.polkadot.network/chap-runtime-api#sect-rte-grandpa-auth
func (Module) CurrentSetId ¶
func (Module) GenerateKeyOwnershipProof ¶
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
Metadata returns the runtime api metadata of the module.
Click to show internal directories.
Click to hide internal directories.