Documentation
¶
Index ¶
- type CollectionReader
- type CollectionWriter
- type EventReader
- type EventWriter
- type FindOrderConsideration
- type FindOrderOffer
- type MarketplaceReader
- type MarketplaceWriter
- type NftListing
- type NftReader
- type NftWithListing
- type NftWriter
- type NotificationReader
- type NotificationWriter
- type OrderReader
- type OrderWritter
- type ProfileReader
- type ProfileWriter
- type Searcher
- type UpdateNftNewValue
- type UpdateOrderCondition
- type UpdateOrderStatusByOfferCondition
- type UpdateOrderValue
- type UserReader
- type UserWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionReader ¶
type CollectionWriter ¶
type EventReader ¶
type EventWriter ¶
type FindOrderConsideration ¶
type MarketplaceReader ¶
type MarketplaceWriter ¶
type NftListing ¶
type NftReader ¶
type NftReader interface { FindOneNft( ctx context.Context, token common.Address, identifier *big.Int, ) (entities.Nft, error) FindNftsWithListings( ctx context.Context, token common.Address, identifier *big.Int, owner common.Address, isHidden *bool, offset int32, limit int32, listingLimit int32, ) ([]NftWithListing, error) }
type NftWithListing ¶
type NftWithListing struct { entities.Nft Listings []NftListing }
type NftWriter ¶
type NftWriter interface { UpsertNftLatest( ctx context.Context, token common.Address, identifier *big.Int, owner common.Address, isBurned bool, blockNumber uint64, txIndex uint, token_uri string, ) (entities.Nft, error) UpdateNft( ctx context.Context, token common.Address, identifier *big.Int, val UpdateNftNewValue, ) (entities.Nft, error) }
type NotificationReader ¶
type NotificationWriter ¶
type NotificationWriter interface { InsertNotification( ctx context.Context, notification entities.NotificationPost, ) error UpdateNotification( ctx context.Context, notification entities.NotificationUpdate, ) error }
type OrderReader ¶
type OrderReader interface { FindOrder( ctx context.Context, offer FindOrderOffer, consideration FindOrderConsideration, orderHash common.Hash, offerer common.Address, IsFulfilled *bool, IsCancelled *bool, IsInvalid *bool, ) ([]entities.Order, error) FindExpiredOrder( ctx context.Context, ) ([]entities.ExpiredOrder, error) }
type OrderWritter ¶
type OrderWritter interface { InsertOneOrder( ctx context.Context, order entities.Order, ) (entities.Order, error) UpdateOrderStatus( ctx context.Context, condition UpdateOrderCondition, value UpdateOrderValue, ) error UpdateOrderStatusByOffer( ctx context.Context, condition UpdateOrderStatusByOfferCondition, value UpdateOrderValue, ) error }
type ProfileReader ¶
type ProfileWriter ¶
type UpdateNftNewValue ¶
type UpdateOrderCondition ¶
type UpdateOrderValue ¶
type UserReader ¶
type UserWriter ¶
type UserWriter interface { InsertUser( ctx context.Context, user *entities.User, ) (*entities.User, error) UpdateUserBlockState( ctx context.Context, address string, isBlock bool, ) error InsertUserRole( ctx context.Context, address string, roleId int32, ) (*entities.Role, error) DeleteUserRole( ctx context.Context, address string, roleId int32, ) error TransferAdminRole( ctx context.Context, maker string, taker string, ) (*entities.Role, error) UpdateUserNonce( ctx context.Context, address string, nonce string, ) (*entities.User, error) }
Source Files
¶
- collection-reader.go
- collection-writer.go
- event-reader.go
- event-writer.go
- marketplace-reader.go
- marketplace-writer.go
- nft-reader.go
- nft-writer.go
- notification-reader.go
- notification-writer.go
- order-reader.go
- order-writter.go
- profile-reader.go
- profile-writer.go
- search.go
- user-reader.go
- user-writer.go
Click to show internal directories.
Click to hide internal directories.