Documentation
¶
Index ¶
- Constants
- type DenomListFilter
- type DenomListOrder
- type DenomRow
- type Denoms
- type DenomsTotal
- type DenomsTotalView
- type DenomsView
- func (denomsView *DenomsView) FindById(denomId string) (*DenomRow, error)
- func (denomsView *DenomsView) FindByName(denomName string) (*DenomRow, error)
- func (denomsView *DenomsView) Insert(denomRow *DenomRow) error
- func (denomsView *DenomsView) List(filter DenomListFilter, order DenomListOrder, ...) ([]DenomRow, *pagination_interface.PaginationResult, error)
- type MessageRow
- type Messages
- type MessagesListFilter
- type MessagesListOrder
- type MessagesTotal
- type MessagesTotalView
- type MessagesView
- func (nftMessagesView *MessagesView) BurnMessagesByToken(denomId string, maybeTokenId string) error
- func (nftMessagesView *MessagesView) DeleteAllByDenomTokenIds(denomId string, tokenId string) (int64, error)
- func (nftMessagesView *MessagesView) Insert(messageRow *MessageRow) error
- func (nftMessagesView *MessagesView) List(filter MessagesListFilter, order MessagesListOrder, ...) ([]MessageRow, *pagination_interface.PaginationResult, error)
- type MockDenomsTotalView
- type MockDenomsView
- func (denomView *MockDenomsView) FindById(denomId string) (*DenomRow, error)
- func (denomView *MockDenomsView) FindByName(denomName string) (*DenomRow, error)
- func (denomView *MockDenomsView) Insert(row *DenomRow) error
- func (denomView *MockDenomsView) List(filter DenomListFilter, order DenomListOrder, ...) ([]DenomRow, *pagination_interface.PaginationResult, error)
- type MockMessagesTotalView
- type MockMessagesView
- func (messagesView *MockMessagesView) BurnMessagesByToken(denomId string, maybeTokenId string) error
- func (messagesView *MockMessagesView) DeleteAllByDenomTokenIds(denomId string, tokenId string) (int64, error)
- func (messagesView *MockMessagesView) Insert(row *MessageRow) error
- func (messagesView *MockMessagesView) List(filter MessagesListFilter, order MessagesListOrder, ...) ([]MessageRow, *pagination_interface.PaginationResult, error)
- type MockTokensTotalView
- type MockTokensView
- func (tokensView *MockTokensView) BurnToken(denomId string, tokenId string) error
- func (tokensView *MockTokensView) Delete(denomId string, tokenId string) (int64, error)
- func (tokensView *MockTokensView) FindById(denomId string, tokenId string) (*TokenRowWithDenomname, error)
- func (tokensView *MockTokensView) Insert(row *TokenRow) error
- func (tokensView *MockTokensView) List(filter TokenListFilter, order TokenListOrder, ...) ([]TokenRowWithDenomname, *pagination_interface.PaginationResult, error)
- func (tokensView *MockTokensView) ListDrops(pagination *pagination_interface.Pagination) ([]string, *pagination_interface.PaginationResult, error)
- func (tokensView *MockTokensView) Update(row TokenRow) error
- type TokenListFilter
- type TokenListOrder
- type TokenRow
- type TokenRowWithDenomname
- type TokenTransferListFilter
- type TokenTransferListOrder
- type TokenTransferRow
- type TokenTransferRowWithDenomAndTokenDetails
- type TokenTransfers
- type Tokens
- type TokensTotal
- type TokensTotalView
- type TokensView
- func (tokensView *TokensView) BurnToken(denomId string, tokenId string) error
- func (tokensView *TokensView) Delete(denomId string, tokenId string) (int64, error)
- func (tokensView *TokensView) FindById(denomId string, tokenId string) (*TokenRowWithDenomname, error)
- func (tokensView *TokensView) Insert(tokenRow *TokenRow) error
- func (tokensView *TokensView) List(filter TokenListFilter, order TokenListOrder, ...) ([]TokenRowWithDenomname, *pagination_interface.PaginationResult, error)
- func (tokensView *TokensView) ListDrops(pagination *pagination_interface.Pagination) ([]string, *pagination_interface.PaginationResult, error)
- func (tokensView *TokensView) Update(tokenRow TokenRow) error
Constants ¶
View Source
const DENOMS_TABLE_NAME = "view_nft_denoms"
View Source
const DENOMS_TOTAL_TABLE_NAME = "view_nft_denoms_total"
View Source
const MESSAGES_TABLE_NAME = "view_nft_messages"
View Source
const SOFT_DELETE_FLAG = "burned"
View Source
const TOKENS_TABLE_NAME = "view_nft_tokens"
nolint:gosec
View Source
const TOKENS_TOTAL_TABLE_NAME = "view_nft_tokens_total"
nolint:gosec
View Source
const TOKEN_TRANSFERS_TABLE_NAME = "view_nft_token_transfers"
nolint:gosec
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DenomListFilter ¶
type DenomListFilter struct {
MaybeCreator *string
}
type DenomListOrder ¶
type Denoms ¶
type Denoms interface {
Insert(denomRow *DenomRow) error
FindById(denomId string) (*DenomRow, error)
FindByName(denomName string) (*DenomRow, error)
List(
filter DenomListFilter,
order DenomListOrder,
pagination *pagination_interface.Pagination,
) ([]DenomRow, *pagination_interface.PaginationResult, error)
}
func NewDenomsView ¶
type DenomsTotal ¶
type DenomsTotal interface {
Increment(identity string, total int64) error
FindBy(identity string) (int64, error)
}
func NewDenomsTotalView ¶
func NewDenomsTotalView(rdbHandle *rdb.Handle) DenomsTotal
type DenomsTotalView ¶
type DenomsView ¶
type DenomsView struct {
// contains filtered or unexported fields
}
func (*DenomsView) FindById ¶
func (denomsView *DenomsView) FindById(denomId string) (*DenomRow, error)
func (*DenomsView) FindByName ¶
func (denomsView *DenomsView) FindByName(denomName string) (*DenomRow, error)
func (*DenomsView) Insert ¶
func (denomsView *DenomsView) Insert(denomRow *DenomRow) error
func (*DenomsView) List ¶
func (denomsView *DenomsView) List( filter DenomListFilter, order DenomListOrder, pagination *pagination_interface.Pagination, ) ([]DenomRow, *pagination_interface.PaginationResult, error)
type MessageRow ¶
type MessageRow struct {
DenomId string `json:"denomId"`
MaybeTokenId *string `json:"tokenId"`
MaybeDrop *string `json:"drop"`
BlockHeight int64 `json:"blockHeight"`
BlockHash string `json:"blockHash"`
BlockTime utctime.UTCTime `json:"blockTime"`
TransactionHash string `json:"transactionHash"`
Success bool `json:"success"`
MessageIndex int `json:"messageIndex"`
MessageType string `json:"messageType"`
Data interface{} `json:"data"`
}
type Messages ¶
type Messages interface {
Insert(messageRow *MessageRow) error
List(
filter MessagesListFilter,
order MessagesListOrder,
pagination *pagination_interface.Pagination,
) ([]MessageRow, *pagination_interface.PaginationResult, error)
DeleteAllByDenomTokenIds(denomId string, tokenId string) (int64, error)
BurnMessagesByToken(denomId string, maybeTokenId string) error
}
func NewMessagesView ¶
type MessagesListFilter ¶
type MessagesListOrder ¶
type MessagesTotal ¶
type MessagesTotal interface {
IncrementAll(identities []string, total int64) error
SumBy(identities []string) (int64, error)
}
func NewMessagesTotalView ¶
func NewMessagesTotalView(rdbHandle *rdb.Handle) MessagesTotal
type MessagesTotalView ¶
type MessagesView ¶
type MessagesView struct {
// contains filtered or unexported fields
}
func (*MessagesView) BurnMessagesByToken ¶ added in v1.6.10
func (nftMessagesView *MessagesView) BurnMessagesByToken(denomId string, maybeTokenId string) error
func (*MessagesView) DeleteAllByDenomTokenIds ¶
func (nftMessagesView *MessagesView) DeleteAllByDenomTokenIds(denomId string, tokenId string) (int64, error)
func (*MessagesView) Insert ¶
func (nftMessagesView *MessagesView) Insert(messageRow *MessageRow) error
func (*MessagesView) List ¶
func (nftMessagesView *MessagesView) List( filter MessagesListFilter, order MessagesListOrder, pagination *pagination_interface.Pagination, ) ([]MessageRow, *pagination_interface.PaginationResult, error)
type MockDenomsTotalView ¶
type MockDenomsTotalView struct {
testify_mock.Mock
}
type MockDenomsView ¶
type MockDenomsView struct {
testify_mock.Mock
}
func (*MockDenomsView) FindById ¶
func (denomView *MockDenomsView) FindById(denomId string) (*DenomRow, error)
func (*MockDenomsView) FindByName ¶
func (denomView *MockDenomsView) FindByName(denomName string) (*DenomRow, error)
func (*MockDenomsView) Insert ¶
func (denomView *MockDenomsView) Insert(row *DenomRow) error
func (*MockDenomsView) List ¶
func (denomView *MockDenomsView) List( filter DenomListFilter, order DenomListOrder, pagination *pagination_interface.Pagination, ) ([]DenomRow, *pagination_interface.PaginationResult, error)
type MockMessagesTotalView ¶
type MockMessagesTotalView struct {
testify_mock.Mock
}
func (*MockMessagesTotalView) IncrementAll ¶
func (totalView *MockMessagesTotalView) IncrementAll(identities []string, total int64) error
type MockMessagesView ¶
type MockMessagesView struct {
testify_mock.Mock
}
func (*MockMessagesView) BurnMessagesByToken ¶ added in v1.6.10
func (messagesView *MockMessagesView) BurnMessagesByToken(denomId string, maybeTokenId string) error
func (*MockMessagesView) DeleteAllByDenomTokenIds ¶
func (messagesView *MockMessagesView) DeleteAllByDenomTokenIds(denomId string, tokenId string) (int64, error)
func (*MockMessagesView) Insert ¶
func (messagesView *MockMessagesView) Insert(row *MessageRow) error
func (*MockMessagesView) List ¶
func (messagesView *MockMessagesView) List( filter MessagesListFilter, order MessagesListOrder, pagination *pagination_interface.Pagination, ) ([]MessageRow, *pagination_interface.PaginationResult, error)
type MockTokensTotalView ¶
type MockTokensTotalView struct {
testify_mock.Mock
}
func (*MockTokensTotalView) DecrementAll ¶
func (totalView *MockTokensTotalView) DecrementAll(identities []string, total int64) error
func (*MockTokensTotalView) FindBy ¶
func (totalView *MockTokensTotalView) FindBy(identity string) (int64, error)
func (*MockTokensTotalView) IncrementAll ¶
func (totalView *MockTokensTotalView) IncrementAll(identities []string, total int64) error
type MockTokensView ¶
type MockTokensView struct {
testify_mock.Mock
}
func (*MockTokensView) BurnToken ¶ added in v1.6.10
func (tokensView *MockTokensView) BurnToken(denomId string, tokenId string) error
func (*MockTokensView) Delete ¶
func (tokensView *MockTokensView) Delete(denomId string, tokenId string) (int64, error)
func (*MockTokensView) FindById ¶
func (tokensView *MockTokensView) FindById(denomId string, tokenId string) (*TokenRowWithDenomname, error)
func (*MockTokensView) Insert ¶
func (tokensView *MockTokensView) Insert(row *TokenRow) error
func (*MockTokensView) List ¶
func (tokensView *MockTokensView) List( filter TokenListFilter, order TokenListOrder, pagination *pagination_interface.Pagination, ) ([]TokenRowWithDenomname, *pagination_interface.PaginationResult, error)
func (*MockTokensView) ListDrops ¶
func (tokensView *MockTokensView) ListDrops( pagination *pagination_interface.Pagination, ) ([]string, *pagination_interface.PaginationResult, error)
func (*MockTokensView) Update ¶
func (tokensView *MockTokensView) Update(row TokenRow) error
type TokenListFilter ¶
type TokenListOrder ¶
type TokenRow ¶
type TokenRow struct {
DenomId string `json:"denomId"`
TokenId string `json:"tokenId"`
MaybeDrop *string `json:"drop"`
Name string `json:"tokenName"`
URI string `json:"tokenURI"`
Data string `json:"tokenData"`
Minter string `json:"tokenMinter"`
Owner string `json:"tokenOwner"`
MintedAt utctime.UTCTime `json:"tokenMintedAt"`
MintedAtBlockHeight int64 `json:"tokenMintedAtBlockHeight"`
LastEditedAt utctime.UTCTime `json:"tokenLastEditedAt"`
LastEditedAtBlockHeight int64 `json:"tokenLastEditedAtBlockHeight"`
LastTransferredAt utctime.UTCTime `json:"tokenLastTransferredAt"`
LastTransferredAtBlockHeight int64 `json:"tokenLastTransferredAtBlockHeight"`
}
type TokenRowWithDenomname ¶
type TokenTransferListFilter ¶
type TokenTransferListOrder ¶
type TokenTransferRow ¶
type TokenTransferRow struct {
DenomId string `json:"denomId"`
TokenId string `json:"tokenId"`
BlockHeight int64 `json:"blockHeight"`
TransactionHash string `json:"transactionHash"`
Sender string `json:"sender"`
Recipient string `json:"recipient"`
TransferredAt utctime.UTCTime `json:"transferredAt"`
}
type TokenTransferRowWithDenomAndTokenDetails ¶
type TokenTransferRowWithDenomAndTokenDetails struct {
TokenTransferRow
DenomName string `json:"denomName"`
DenomSchema string `json:"denomSchema"`
TokenName string `json:"tokenName"`
Drop string `json:"drop"`
TokenURI string `json:"tokenURI"`
TokenData string `json:"tokenData"`
TokenMinter string `json:"tokenMinter"`
}
type TokenTransfers ¶
type TokenTransfers struct {
// contains filtered or unexported fields
}
func NewTokenTransfers ¶
func NewTokenTransfers(handle *rdb.Handle) *TokenTransfers
func (*TokenTransfers) Insert ¶
func (tokenTransfersView *TokenTransfers) Insert( tokenTransferRow TokenTransferRow, ) error
func (*TokenTransfers) List ¶
func (tokenTransfersView *TokenTransfers) List( filter TokenTransferListFilter, order TokenTransferListOrder, pagination *pagination_interface.Pagination, ) ([]TokenTransferRowWithDenomAndTokenDetails, *pagination_interface.PaginationResult, error)
type Tokens ¶
type Tokens interface {
Insert(tokenRow *TokenRow) error
Delete(denomId string, tokenId string) (int64, error)
FindById(denomId string, tokenId string) (*TokenRowWithDenomname, error)
Update(tokenRow TokenRow) error
List(
filter TokenListFilter,
order TokenListOrder,
pagination *pagination_interface.Pagination,
) ([]TokenRowWithDenomname, *pagination_interface.PaginationResult, error)
ListDrops(
pagination *pagination_interface.Pagination,
) ([]string, *pagination_interface.PaginationResult, error)
BurnToken(denomId string, tokenId string) error
}
func NewTokensView ¶
type TokensTotal ¶
type TokensTotal interface {
IncrementAll(identities []string, total int64) error
DecrementAll(identities []string, total int64) error
FindBy(identity string) (int64, error)
}
func NewTokensTotalView ¶
func NewTokensTotalView(rdbHandle *rdb.Handle) TokensTotal
type TokensTotalView ¶
type TokensView ¶
type TokensView struct {
// contains filtered or unexported fields
}
func (*TokensView) BurnToken ¶ added in v1.6.10
func (tokensView *TokensView) BurnToken(denomId string, tokenId string) error
func (*TokensView) Delete ¶
func (tokensView *TokensView) Delete(denomId string, tokenId string) (int64, error)
func (*TokensView) FindById ¶
func (tokensView *TokensView) FindById( denomId string, tokenId string, ) (*TokenRowWithDenomname, error)
func (*TokensView) Insert ¶
func (tokensView *TokensView) Insert(tokenRow *TokenRow) error
func (*TokensView) List ¶
func (tokensView *TokensView) List( filter TokenListFilter, order TokenListOrder, pagination *pagination_interface.Pagination, ) ([]TokenRowWithDenomname, *pagination_interface.PaginationResult, error)
func (*TokensView) ListDrops ¶
func (tokensView *TokensView) ListDrops( pagination *pagination_interface.Pagination, ) ([]string, *pagination_interface.PaginationResult, error)
func (*TokensView) Update ¶
func (tokensView *TokensView) Update(tokenRow TokenRow) error
Click to show internal directories.
Click to hide internal directories.