Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

errors.gno

1.11 Kb · 22 lines
 1package grc721
 2
 3import "errors"
 4
 5var (
 6	ErrInvalidTokenId              = errors.New("invalid token id")
 7	ErrInvalidAddress              = errors.New("invalid address")
 8	ErrTokenIdNotHasApproved       = errors.New("token id not approved for anyone")
 9	ErrApprovalToCurrentOwner      = errors.New("approval to current owner")
10	ErrCallerIsNotOwner            = errors.New("caller is not token owner")
11	ErrCallerNotApprovedForAll     = errors.New("caller is not approved for all")
12	ErrCannotTransferToSelf        = errors.New("cannot send transfer to self")
13	ErrTransferFromIncorrectOwner  = errors.New("transfer from incorrect owner")
14	ErrTransferToNonGRC721Receiver = errors.New("transfer to non GRC721Receiver implementer")
15	ErrCallerIsNotOwnerOrApproved  = errors.New("caller is not token owner or approved")
16	ErrTokenIdAlreadyExists        = errors.New("token id already exists")
17
18	// ERC721Royalty
19	ErrInvalidRoyaltyPercentage     = errors.New("invalid royalty percentage")
20	ErrInvalidRoyaltyPaymentAddress = errors.New("invalid royalty paymentAddress")
21	ErrCannotCalculateRoyaltyAmount = errors.New("cannot calculate royalty amount")
22)