Documentation
¶
Index ¶
Constants ¶
View Source
const ( Currency = iota SupplementaryCurrency )
View Source
const (
MaxAmountPerSupplementaryCurrency = 1000000000000000000
)
Variables ¶
View Source
var ( ErrValueOverflow = errors.New("value overflow") ErrNoSufficientFounds = errors.New("no sufficient founds to process transaction") )
Functions ¶
Types ¶
type Melange ¶
type Melange struct {
Currency uint64 `yaml:"currency" msgpack:"currency"`
SupplementaryCurrency uint64 `yaml:"supplementary_currency" msgpack:"supplementary_currency"`
}
Melange is an asset that is digitally transferable between two wallets.
func FromFloat ¶
From float crates a new spice Melange from floating point number. Note this will give a precision up to nine decimal places.
Click to show internal directories.
Click to hide internal directories.