Documentation ¶
Index ¶
- Variables
- type Usecase
- func (u *Usecase) GetBalancesByPkScript(ctx context.Context, pkScript []byte, blockHeight uint64, limit int32, ...) ([]*entity.Balance, error)
- func (u *Usecase) GetBalancesByRuneId(ctx context.Context, runeId runes.RuneId, blockHeight uint64, limit int32, ...) ([]*entity.Balance, error)
- func (u *Usecase) GetLatestBlock(ctx context.Context) (types.BlockHeader, error)
- func (u *Usecase) GetOngoingRuneEntries(ctx context.Context, search string, blockHeight uint64, limit, offset int32) ([]*runes.RuneEntry, error)
- func (u *Usecase) GetRuneEntries(ctx context.Context, search string, blockHeight uint64, limit, offset int32) ([]*runes.RuneEntry, error)
- func (u *Usecase) GetRuneEntryByRuneId(ctx context.Context, runeId runes.RuneId) (*runes.RuneEntry, error)
- func (u *Usecase) GetRuneEntryByRuneIdAndHeight(ctx context.Context, runeId runes.RuneId, blockHeight uint64) (*runes.RuneEntry, error)
- func (u *Usecase) GetRuneEntryByRuneIdAndHeightBatch(ctx context.Context, runeIds []runes.RuneId, blockHeight uint64) (map[runes.RuneId]*runes.RuneEntry, error)
- func (u *Usecase) GetRuneEntryByRuneIdBatch(ctx context.Context, runeIds []runes.RuneId) (map[runes.RuneId]*runes.RuneEntry, error)
- func (u *Usecase) GetRuneIdFromRune(ctx context.Context, rune runes.Rune) (runes.RuneId, error)
- func (u *Usecase) GetRuneTransactions(ctx context.Context, pkScript []byte, runeId runes.RuneId, ...) ([]*entity.RuneTransaction, error)
- func (u *Usecase) GetRunesUTXOsByPkScript(ctx context.Context, pkScript []byte, blockHeight uint64, limit int32, ...) ([]*entity.RunesUTXOWithSats, error)
- func (u *Usecase) GetRunesUTXOsByRuneIdAndPkScript(ctx context.Context, runeId runes.RuneId, pkScript []byte, blockHeight uint64, ...) ([]*entity.RunesUTXOWithSats, error)
- func (u *Usecase) GetTotalHoldersByRuneIds(ctx context.Context, runeIds []runes.RuneId, blockHeight uint64) (map[runes.RuneId]int64, error)
- func (u *Usecase) GetUTXOsOutputByLocation(ctx context.Context, txHash chainhash.Hash, outputIdx uint32) (*entity.RunesUTXOWithSats, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUTXONotFound = errors.New("utxo not found")
Functions ¶
This section is empty.
Types ¶
type Usecase ¶
type Usecase struct {
// contains filtered or unexported fields
}
func New ¶
func New(runesDg datagateway.RunesDataGateway, bitcoinClient btcclient.Contract) *Usecase
func (*Usecase) GetBalancesByPkScript ¶
func (u *Usecase) GetBalancesByPkScript(ctx context.Context, pkScript []byte, blockHeight uint64, limit int32, offset int32) ([]*entity.Balance, error)
Use limit = -1 as no limit.
func (*Usecase) GetBalancesByRuneId ¶
func (u *Usecase) GetBalancesByRuneId(ctx context.Context, runeId runes.RuneId, blockHeight uint64, limit int32, offset int32) ([]*entity.Balance, error)
Use limit = -1 as no limit.
func (*Usecase) GetLatestBlock ¶
func (*Usecase) GetOngoingRuneEntries ¶ added in v0.4.6
func (*Usecase) GetRuneEntries ¶ added in v0.4.6
func (*Usecase) GetRuneEntryByRuneId ¶
func (*Usecase) GetRuneEntryByRuneIdAndHeight ¶
func (*Usecase) GetRuneEntryByRuneIdAndHeightBatch ¶
func (*Usecase) GetRuneEntryByRuneIdBatch ¶
func (*Usecase) GetRuneIdFromRune ¶
func (*Usecase) GetRuneTransactions ¶
func (u *Usecase) GetRuneTransactions(ctx context.Context, pkScript []byte, runeId runes.RuneId, fromBlock, toBlock uint64, limit int32, offset int32) ([]*entity.RuneTransaction, error)
Use limit = -1 as no limit.
func (*Usecase) GetRunesUTXOsByPkScript ¶ added in v0.3.0
func (*Usecase) GetRunesUTXOsByRuneIdAndPkScript ¶ added in v0.3.0
func (*Usecase) GetTotalHoldersByRuneIds ¶ added in v0.4.6
Click to show internal directories.
Click to hide internal directories.