Documentation ¶
Index ¶
- Constants
- func GetCycle(blockNumber uint64) uint64
- func GetEpoch(blockNumber uint64) uint64
- func Init(cfg *configs.MainConfiguration)
- type MLChainAPI
- func (n *MLChainAPI) Get() big.Int
- func (n *MLChainAPI) GetChannelBalance(address entities.DIDString) *big.Int
- func (n *MLChainAPI) GetCurrentBlockNumber() uint64
- func (n *MLChainAPI) GetCurrentCycle() uint64
- func (n *MLChainAPI) GetCurrentEpoch() uint64
- func (n *MLChainAPI) GetCurrentMessageCost() *big.Int
- func (n *MLChainAPI) GetCurrentYear() uint64
- func (n *MLChainAPI) GetMinStakeAmountForValidators() big.Int
- func (n *MLChainAPI) GetStakeBalance(address entities.DIDString) big.Int
- func (n *MLChainAPI) GetSubnetBalance(hashOrId string) big.Int
Constants ¶
View Source
const NetworkStartDate = uint64(1706468787000)
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.