chain

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NetworkStartDate = uint64(1706468787000)

Variables

This section is empty.

Functions

func GetCycle

func GetCycle(blockNumber uint64) uint64

func GetEpoch

func GetEpoch(blockNumber uint64) uint64

func Init

func Init(cfg *configs.MainConfiguration)

Types

type MLChainAPI

type MLChainAPI struct {
	URL string
}
var API MLChainAPI

func NewMLChainAPI

func NewMLChainAPI(url string) *MLChainAPI

func (*MLChainAPI) Get

func (n *MLChainAPI) Get() big.Int

func (*MLChainAPI) GetChannelBalance

func (n *MLChainAPI) GetChannelBalance(address entities.DIDString) *big.Int

func (*MLChainAPI) GetCurrentBlockNumber

func (n *MLChainAPI) GetCurrentBlockNumber() uint64

func (*MLChainAPI) GetCurrentCycle

func (n *MLChainAPI) GetCurrentCycle() uint64

func (*MLChainAPI) GetCurrentEpoch

func (n *MLChainAPI) GetCurrentEpoch() uint64

func (*MLChainAPI) GetCurrentMessageCost

func (n *MLChainAPI) GetCurrentMessageCost() *big.Int

func (*MLChainAPI) GetCurrentYear

func (n *MLChainAPI) GetCurrentYear() uint64

func (*MLChainAPI) GetMinStakeAmountForValidators

func (n *MLChainAPI) GetMinStakeAmountForValidators() big.Int

func (*MLChainAPI) GetStakeBalance

func (n *MLChainAPI) GetStakeBalance(address entities.DIDString) big.Int

func (*MLChainAPI) GetSubnetBalance

func (n *MLChainAPI) GetSubnetBalance(hashOrId string) big.Int

Jump to

Keyboard shortcuts

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