storage

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: 4 Imported by: 0

Documentation

Overview

Package storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubnetAlphaInEmission added in v0.0.9

func GetSubnetAlphaInEmission(c *client.Client, netuid types.U16, block *types.Hash) (*types.U64, error)

GetSubnetAlphaInEmission Returns sn tao emission percentage * 1e9 block is optional, but more performant if already subscribed to chain

func GetSubnetAlphaOutEmission added in v0.0.9

func GetSubnetAlphaOutEmission(c *client.Client, netuid types.U16, block *types.Hash) (*types.U64, error)

GetSubnetAlphaOutEmission Returns sn tao emission percentage * 1e9 block is optional, but more performant if already subscribed to chain

func GetSubnetMovingPrice added in v0.0.9

func GetSubnetMovingPrice(c *client.Client, netuid types.U16, block *types.Hash) (*typetools.U96F32, error)

GetSubnetMovingPrice Returns sn tao emission percentage * 1e9 block is optional, but more performant if already subscribed to chain

func GetSubnetTaoInEmission added in v0.0.4

func GetSubnetTaoInEmission(c *client.Client, netuid types.U16, block *types.Hash) (*types.U64, error)

GetSubnetTaoInEmission Returns sn tao emission percentage * 1e9 block is optional, but more performant if already subscribed to chain

func GetValidatorPermits added in v0.0.4

func GetValidatorPermits(c *client.Client, netuid types.U16, block *types.Hash) (*[]types.Bool, error)

GetValidatorPermits Validator permits per uid

Types

type AccountInfo

type AccountInfo struct {
	Nonce       types.U32
	Consumers   types.U32
	Providers   types.U32
	Sufficients types.U32
	Data        struct {
		Free     types.U64
		Reserved types.U64
		Frozen   types.U64
		Flags    types.U128
	}
}

func GetAccountInfo

func GetAccountInfo(c *client.Client, accountID []byte, block *types.Hash) (*AccountInfo, error)

Jump to

Keyboard shortcuts

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