api

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinApi

type CoinApi interface {
	Issue(
		vnID vn.ID,
		coin uc.Code,
		wei uc.WEI,
		infinite bool,
		issuance int64,
		vnGuardianPri ki.PRI,
	) (*uc.Coin, bk.BID, *errors.Error)

	Airdrop(
		coin uc.Code,
		to ki.ADR,
		amount *uc.Amount,
		vnGuardianPri ki.PRI,
	) (*uc.Alter, bk.BID, *errors.Error)
}

type SPApi

type SPApi interface {
	Create(vnID vn.ID, link []sp.ID, vnGuardianPri ki.PRI) (*sp.SP, bk.BID, bk.BID, *errors.Error)
}

type VNApi

type VNApi interface {
	PreCreate(vnID vn.ID) (vnM *vn.VN, vnBID bk.BID, err *errors.Error)
	ConfirmCreate(vnBID bk.BID, guardianPri ki.PRI) (vnLinkBID bk.BID, err *errors.Error)
}

Jump to

Keyboard shortcuts

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