nft

package
v0.0.0-...-9fe6307 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NFTService

type NFTService struct {
	EthClient ethereum.EthChain
	Logger    *log.Logger
}

NFTService defines the NFT service provided by the owner

func MakeNFTService

func MakeNFTService(config *viper.Viper) NFTService

MakeNFTService builds an NFTService instance from the given config

func NewNFTService

func NewNFTService(ethClient ethereum.EthChain, logger *log.Logger) NFTService

NewNFTService constructs a new NFTService instance

func (NFTService) Callback

func (s NFTService) Callback(reqCtxID, reqID, input string) (output string, result string)

Callback implements the iservice.RespondCallback interface

func (NFTService) MintNft

func (s NFTService) MintNft(
	to ethcmn.Address,
	amountToMint *big.Int,
	metaID string,
	setPrice *big.Int,
	isForSale bool,
) (string, error)

MintNft mints an NFT on ethereum

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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