parameters

package
v0.6.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

Variables

This section is empty.

Functions

func InitL1 added in v0.3.0

func InitL1(l1 *L1Params)

func InitL1Lazy added in v0.3.0

func InitL1Lazy(f func())

InitL1Lazy sets a function to be called the first time L1() is called. The function must call InitL1().

Types

type BaseToken added in v0.3.0

type BaseToken struct {
	Name            string `json:"name" swagger:"desc(The base token name),required"`
	TickerSymbol    string `json:"tickerSymbol" swagger:"desc(The ticker symbol),required"`
	Unit            string `json:"unit" swagger:"desc(The token unit),required"`
	Subunit         string `json:"subunit" swagger:"desc(The token subunit),required"`
	Decimals        uint32 `json:"decimals" swagger:"desc(The token decimals),required"`
	UseMetricPrefix bool   `json:"useMetricPrefix" swagger:"desc(Whether or not the token uses a metric prefix),required"`
}

type L1Params added in v0.3.0

type L1Params struct {
	MaxPayloadSize int                        `json:"maxPayloadSize" swagger:"required"`
	Protocol       *iotago.ProtocolParameters `json:"protocol" swagger:"required"`
	BaseToken      *BaseToken                 `json:"baseToken" swagger:"required"`
}

L1Params describes parameters coming from the L1Params node

func L1 added in v0.3.0

func L1() *L1Params

func L1NoLock added in v1.0.3

func L1NoLock() *L1Params

Jump to

Keyboard shortcuts

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