session

package
v0.0.11-rc Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionEndHeightWithDefaultParams

func GetSessionEndHeightWithDefaultParams(queryHeight int64) int64

GetSessionEndHeightWithDefaultParams returns the block height at which the session containing queryHeight ends, given the default shared on-chain parameters. See shared.GetSessionEndHeight for more details.

func GetSessionIdWithDefaultParams

func GetSessionIdWithDefaultParams(
	appPubKey,
	serviceId string,
	blockHashBz []byte,
	blockHeight int64,
) (sessionId string, sessionIdBz []byte)

GetSessionIdWithDefaultParams returns the string and bytes representation of the sessionId for the session containing blockHeight, given the default shared on-chain parameters, application public key, service ID, and block hash.

func GetSessionNumberWithDefaultParams

func GetSessionNumberWithDefaultParams(queryHeight int64) int64

GetSessionNumberWithDefaultParams returns the session number of the session containing queryHeight, given the default on-chain shared parameters. See shared.GetSessionNumber for more details.

func GetSessionStartHeightWithDefaultParams

func GetSessionStartHeightWithDefaultParams(queryHeight int64) int64

GetSessionStartHeightWithDefaultParams returns the block height at which the session containing queryHeight starts, given the default shared on-chain parameters. See shared.GetSessionStartHeight for more details.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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