coloredtokenmanager

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColoredTokenManager

type ColoredTokenManager struct {
	// contains filtered or unexported fields
}

ColoredTokenManager manipulates colored tokens

func New

func New(env *solo.Solo) *ColoredTokenManager

New instantiates a colored token manager

func (*ColoredTokenManager) MintColoredTokens

func (coloredTokenmanager *ColoredTokenManager) MintColoredTokens(keyPair *ed25519.KeyPair, amount uint64) (colored.Color, error)

MintColoredTokens converts a specified amount of balance of iota tokens available to ed25519.KeyPair into a new color. Returns error if it fails.

func (*ColoredTokenManager) MustMintColoredTokens

func (coloredTokenmanager *ColoredTokenManager) MustMintColoredTokens(keyPair *ed25519.KeyPair, amount uint64) colored.Color

MustMintColoredTokens converts a specified amount of balance of iota tokens available to ed25519.KeyPair into a new color. Fails test on error.

Jump to

Keyboard shortcuts

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