services

package
v0.0.0-...-f45fc59 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuyNFT

func BuyNFT(ctx *gin.Context, addressFrom string, addressTo string, id string) (interface{}, error)

func FetchAllMintedBlogs

func FetchAllMintedBlogs(ctx *gin.Context, address string) (interface{}, error)

func FetchAllNFTs

func FetchAllNFTs(address string) ([]nftlabs.NftMetadata, error)

func FetchNFTById

func FetchNFTById(id int64) (*nftlabs.NftMetadata, error)

func MintBlog

func MintBlog(ctx *gin.Context, blog *dtos.MintBlog, address string) (interface{}, error)

func MintExclusiveNFT

func MintExclusiveNFT(ipfsHash string, address string, blog *dtos.MintBlog) (*nftlabs.NftMetadata, error)

func SendTransaction

func SendTransaction(profileAddress string, userAddress string, amount int)

func SponsorAuthor

func SponsorAuthor(ctx *gin.Context, profileAddress string, userAddress string) (interface{}, error)

func TransferNFT

func TransferNFT(id int64, addressFrom string, addressTo string) (*nftlabs.NftMetadata, error)

func UploadToIPFS

func UploadToIPFS(body map[string]interface{}) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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