storage

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecoderLog

type DecoderLog struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type ExtrinsicParam

type ExtrinsicParam struct {
	Name     string      `json:"name"`
	Type     string      `json:"type"`
	Value    interface{} `json:"value"`
	ValueRaw string      `json:"valueRaw"`
}

type RawAuraPreDigest

type RawAuraPreDigest struct {
	SlotNumber int64 `json:"slotNumber"`
}

type RawBabePreDigest

type RawBabePreDigest struct {
	Primary   *RawBabePreDigestPrimary      `json:"primary,omitempty"`
	Secondary *RawBabePreDigestSecondary    `json:"secondary,omitempty"`
	VRF       *RawBabePreDigestSecondaryVRF `json:"VRF,omitempty"`
}

type RawBabePreDigestPrimary

type RawBabePreDigestPrimary struct {
	AuthorityIndex uint   `json:"authorityIndex"`
	SlotNumber     uint64 `json:"slotNumber"`
	Weight         uint   `json:"weight"`
	VrfOutput      string `json:"vrfOutput"`
	VrfProof       string `json:"vrfProof"`
}

type RawBabePreDigestSecondary

type RawBabePreDigestSecondary struct {
	AuthorityIndex uint   `json:"authorityIndex"`
	SlotNumber     uint64 `json:"slotNumber"`
	Weight         uint   `json:"weight"`
}

type RawBabePreDigestSecondaryVRF

type RawBabePreDigestSecondaryVRF struct {
	AuthorityIndex uint   `json:"authorityIndex"`
	SlotNumber     uint64 `json:"slotNumber"`
	VrfOutput      string `json:"vrfOutput"`
	VrfProof       string `json:"vrfProof"`
}

type StateStorage

type StateStorage string

func Decode

func Decode(raw string, decodeType string, option *types.ScaleDecoderOption) (s StateStorage, err error)

func (*StateStorage) ToAny

func (s *StateStorage) ToAny(any interface{})

func (*StateStorage) ToDecimal

func (s *StateStorage) ToDecimal() (r decimal.Decimal)

ToDecimal Python GRPC return balance type is String, when grpc return json, balance string will return "balance"

func (*StateStorage) ToInt

func (s *StateStorage) ToInt() (r int)

func (*StateStorage) ToInt64

func (s *StateStorage) ToInt64() (r int64)

func (*StateStorage) ToMapInterface

func (s *StateStorage) ToMapInterface() (r map[string]interface{})

func (*StateStorage) ToMapString

func (s *StateStorage) ToMapString() (r map[string]string)

func (*StateStorage) ToRawAuraPreDigest

func (s *StateStorage) ToRawAuraPreDigest() (r *RawAuraPreDigest)

func (*StateStorage) ToRawBabePreDigest

func (s *StateStorage) ToRawBabePreDigest() (r *RawBabePreDigest)

func (*StateStorage) ToString

func (s *StateStorage) ToString() (r string)

func (*StateStorage) ToStringSlice

func (s *StateStorage) ToStringSlice() (r []string)

func (*StateStorage) ToU32FromCodec

func (s *StateStorage) ToU32FromCodec() (r uint32)

Jump to

Keyboard shortcuts

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