highlight

package
v0.0.0-...-23dd2c0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHighlightChainNotSupported = errors.New("chain is not supported by highlight")
View Source
var ErrHighlightMaxClaims = errors.New("user hit max claims")

Functions

This section is empty.

Types

type ClaimStatus

type ClaimStatus string

ClaimStatus represents the progress of a Highlight mint

const (

	// Lifecycle of a highlight mint
	ClaimStatusTxPending       ClaimStatus = "TX_PENDING"
	ClaimStatusTxFailed        ClaimStatus = "TX_FAILED"
	ClaimStatusTxSucceeded     ClaimStatus = "TX_SUCCEEDED"
	ClaimStatusMediaProcessing ClaimStatus = "MEDIA_PROCESSING"
	ClaimStatusMediaProcessed  ClaimStatus = "MEDIA_PROCESSED"
	ClaimStatusMediaFailed     ClaimStatus = "MEDIA_FAILED"
	ClaimStatusFailedInternal  ClaimStatus = "FAILED_INTERNAL"
)

type ErrHighlightCollectionMintUnavailable

type ErrHighlightCollectionMintUnavailable struct{ CollectionID string }

func (ErrHighlightCollectionMintUnavailable) Error

type ErrHighlightInternalError

type ErrHighlightInternalError struct{ Err error }

func (ErrHighlightInternalError) Error

func (ErrHighlightInternalError) Unwrap

func (e ErrHighlightInternalError) Unwrap() error

type ErrHighlightTxnFailed

type ErrHighlightTxnFailed struct{ Msg string }

func (ErrHighlightTxnFailed) Error

func (e ErrHighlightTxnFailed) Error() string

type Provider

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

func NewProvider

func NewProvider(c *http.Client) *Provider

func (*Provider) ClaimMint

func (api *Provider) ClaimMint(ctx context.Context, collectionID string, qty int, recipient persist.ChainAddress) (claimID string, status ClaimStatus, chainAddress persist.ChainAddress, err error)

func (*Provider) GetClaimStatus

func (api *Provider) GetClaimStatus(ctx context.Context, claimID string) (ClaimStatus, persist.DecimalTokenID, persist.TokenMetadata, error)

Jump to

Keyboard shortcuts

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