typetools

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package typetools

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountIDToSS58

func AccountIDToSS58(acc types.AccountID) string

func Uint16ToBytes

func Uint16ToBytes(n uint16) []byte

Needs to be in little endian

Types

type U96F32 added in v0.0.9

type U96F32 big.Int

func NewU96F32 added in v0.0.9

func NewU96F32(integer uint64, fractional uint32) *U96F32

NewU96F32 creates a U96F32 value from an integer and a fractional part (scaled by 2^32).

func (*U96F32) Decode added in v0.0.9

func (u *U96F32) Decode(decoder scale.Decoder) error

func (*U96F32) Float64 added in v0.0.9

func (u *U96F32) Float64() float64

Float64 converts the U96F32 value to a float64 for display or interoperation.

Jump to

Keyboard shortcuts

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