Documentation
¶
Index ¶
- type LiteStorage
- func (s *LiteStorage) FindAllDomainsResolvedToAddress(ctx context.Context, a tongo.AccountID, collections map[tongo.AccountID]string) ([]string, error)
- func (s *LiteStorage) GetAccountJettonHistoryByID(ctx context.Context, address, jettonMaster tongo.AccountID, limit int, ...) ([]tongo.Bits256, error)
- func (s *LiteStorage) GetAccountJettonsHistory(ctx context.Context, address tongo.AccountID, limit int, beforeLT *int64, ...) ([]tongo.Bits256, error)
- func (s *LiteStorage) GetAccountTransactions(ctx context.Context, id tongo.AccountID, limit int, beforeLt, afterLt uint64) ([]*core.Transaction, error)
- func (s *LiteStorage) GetAllAuctions(ctx context.Context) ([]core.Auction, error)
- func (s *LiteStorage) GetBlockHeader(ctx context.Context, id tongo.BlockID) (*core.BlockHeader, error)
- func (s *LiteStorage) GetBlockTransactions(ctx context.Context, id tongo.BlockID) ([]*core.Transaction, error)
- func (s *LiteStorage) GetDnsExpiring(ctx context.Context, id tongo.AccountID, period int) ([]core.DnsExpiring, error)
- func (s *LiteStorage) GetGemsContracts(ctx context.Context, getGems []tongo.AccountID) (map[tongo.AccountID]core.NftSaleContract, error)
- func (s *LiteStorage) GetJettonMasterData(ctx context.Context, master tongo.AccountID) (abi.GetJettonDataResult, error)
- func (s *LiteStorage) GetJettonMasterMetadata(ctx context.Context, master tongo.AccountID) (tongo.JettonMetadata, error)
- func (s *LiteStorage) GetJettonWalletsByOwnerAddress(ctx context.Context, address tongo.AccountID) ([]core.JettonWallet, error)
- func (s *LiteStorage) GetLiquidPool(ctx context.Context, pool tongo.AccountID) (core.LiquidPool, error)
- func (s *LiteStorage) GetLiquidPools(ctx context.Context, onlyVerified bool) ([]core.LiquidPool, error)
- func (s *LiteStorage) GetNFTs(ctx context.Context, accounts []tongo.AccountID) ([]core.NftItem, error)
- func (s *LiteStorage) GetNftCollectionByCollectionAddress(ctx context.Context, address tongo.AccountID) (core.NftCollection, error)
- func (s *LiteStorage) GetNftCollections(ctx context.Context, limit, offset *int32) ([]core.NftCollection, error)
- func (s *LiteStorage) GetParticipatingInTfPools(ctx context.Context, member tongo.AccountID) ([]core.Nominator, error)
- func (s *LiteStorage) GetParticipatingInWhalesPools(ctx context.Context, member tongo.AccountID) ([]core.Nominator, error)
- func (s *LiteStorage) GetRawAccount(ctx context.Context, address tongo.AccountID) (*core.Account, error)
- func (s *LiteStorage) GetRawAccounts(ctx context.Context, ids []tongo.AccountID) ([]*core.Account, error)
- func (s *LiteStorage) GetStorageProviders(ctx context.Context) ([]core.StorageProvider, error)
- func (s *LiteStorage) GetSubscriptions(ctx context.Context, address tongo.AccountID) ([]core.Subscription, error)
- func (s *LiteStorage) GetTFPool(ctx context.Context, pool tongo.AccountID) (core.TFPool, error)
- func (s *LiteStorage) GetTFPools(ctx context.Context, onlyVerified bool) ([]core.TFPool, error)
- func (s *LiteStorage) GetTrace(ctx context.Context, hash tongo.Bits256) (*core.Trace, error)
- func (s *LiteStorage) GetTransaction(ctx context.Context, hash tongo.Bits256) (*core.Transaction, error)
- func (s *LiteStorage) GetWalletPubKey(ctx context.Context, address tongo.AccountID) (ed25519.PublicKey, error)
- func (s *LiteStorage) GetWhalesPoolInfo(ctx context.Context, id tongo.AccountID) (abi.GetParams_WhalesNominatorResult, abi.GetStakingStatusResult, int, error)
- func (s *LiteStorage) GetWhalesPoolMemberInfo(ctx context.Context, pool, member tongo.AccountID) (core.Nominator, error)
- func (s *LiteStorage) JettonMastersForWallets(ctx context.Context, wallets []tongo.AccountID) (map[tongo.AccountID]tongo.AccountID, error)
- func (s *LiteStorage) LastMasterchainBlockHeader(ctx context.Context) (*core.BlockHeader, error)
- func (s *LiteStorage) NftSaleContracts(ctx context.Context, contracts []tongo.AccountID) (map[tongo.AccountID]core.NftSaleContract, error)
- func (s *LiteStorage) ReindexAccount(ctx context.Context, accountID tongo.AccountID) error
- func (s *LiteStorage) RunSmcMethod(ctx context.Context, id tongo.AccountID, method string, stack tlb.VmStack) (uint32, tlb.VmStack, error)
- func (s *LiteStorage) RunSmcMethodByID(ctx context.Context, id tongo.AccountID, method int, stack tlb.VmStack) (uint32, tlb.VmStack, error)
- func (s *LiteStorage) SearchNFTs(ctx context.Context, collection *core.Filter[tongo.AccountID], ...) ([]tongo.AccountID, error)
- func (s *LiteStorage) SearchTraces(ctx context.Context, a tongo.AccountID, limit int, beforeLT *int64, ...) ([]tongo.Bits256, error)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiteStorage ¶
type LiteStorage struct {
// contains filtered or unexported fields
}
func NewLiteStorage ¶
func NewLiteStorage(log *zap.Logger, opts ...Option) (*LiteStorage, error)
func (*LiteStorage) FindAllDomainsResolvedToAddress ¶
func (*LiteStorage) GetAccountJettonHistoryByID ¶
func (*LiteStorage) GetAccountJettonsHistory ¶
func (*LiteStorage) GetAccountTransactions ¶
func (s *LiteStorage) GetAccountTransactions(ctx context.Context, id tongo.AccountID, limit int, beforeLt, afterLt uint64) ([]*core.Transaction, error)
func (*LiteStorage) GetAllAuctions ¶
func (*LiteStorage) GetBlockHeader ¶
func (s *LiteStorage) GetBlockHeader(ctx context.Context, id tongo.BlockID) (*core.BlockHeader, error)
func (*LiteStorage) GetBlockTransactions ¶
func (s *LiteStorage) GetBlockTransactions(ctx context.Context, id tongo.BlockID) ([]*core.Transaction, error)
func (*LiteStorage) GetDnsExpiring ¶
func (s *LiteStorage) GetDnsExpiring(ctx context.Context, id tongo.AccountID, period int) ([]core.DnsExpiring, error)
func (*LiteStorage) GetGemsContracts ¶ added in v0.1.0
func (s *LiteStorage) GetGemsContracts(ctx context.Context, getGems []tongo.AccountID) (map[tongo.AccountID]core.NftSaleContract, error)
func (*LiteStorage) GetJettonMasterData ¶
func (s *LiteStorage) GetJettonMasterData(ctx context.Context, master tongo.AccountID) (abi.GetJettonDataResult, error)
func (*LiteStorage) GetJettonMasterMetadata ¶
func (s *LiteStorage) GetJettonMasterMetadata(ctx context.Context, master tongo.AccountID) (tongo.JettonMetadata, error)
func (*LiteStorage) GetJettonWalletsByOwnerAddress ¶
func (s *LiteStorage) GetJettonWalletsByOwnerAddress(ctx context.Context, address tongo.AccountID) ([]core.JettonWallet, error)
func (*LiteStorage) GetLiquidPool ¶
func (s *LiteStorage) GetLiquidPool(ctx context.Context, pool tongo.AccountID) (core.LiquidPool, error)
func (*LiteStorage) GetLiquidPools ¶
func (s *LiteStorage) GetLiquidPools(ctx context.Context, onlyVerified bool) ([]core.LiquidPool, error)
func (*LiteStorage) GetNftCollectionByCollectionAddress ¶
func (s *LiteStorage) GetNftCollectionByCollectionAddress(ctx context.Context, address tongo.AccountID) (core.NftCollection, error)
func (*LiteStorage) GetNftCollections ¶
func (s *LiteStorage) GetNftCollections(ctx context.Context, limit, offset *int32) ([]core.NftCollection, error)
func (*LiteStorage) GetParticipatingInTfPools ¶ added in v0.1.0
func (*LiteStorage) GetParticipatingInWhalesPools ¶
func (*LiteStorage) GetRawAccount ¶
func (s *LiteStorage) GetRawAccount(ctx context.Context, address tongo.AccountID) (*core.Account, error)
GetRawAccount returns low-level information about an account taken directly from the blockchain.
func (*LiteStorage) GetRawAccounts ¶
func (s *LiteStorage) GetRawAccounts(ctx context.Context, ids []tongo.AccountID) ([]*core.Account, error)
GetRawAccounts returns low-level information about several accounts taken directly from the blockchain.
func (*LiteStorage) GetStorageProviders ¶
func (s *LiteStorage) GetStorageProviders(ctx context.Context) ([]core.StorageProvider, error)
func (*LiteStorage) GetSubscriptions ¶ added in v0.1.0
func (s *LiteStorage) GetSubscriptions(ctx context.Context, address tongo.AccountID) ([]core.Subscription, error)
func (*LiteStorage) GetTFPools ¶
func (*LiteStorage) GetTransaction ¶
func (s *LiteStorage) GetTransaction(ctx context.Context, hash tongo.Bits256) (*core.Transaction, error)
func (*LiteStorage) GetWalletPubKey ¶
func (*LiteStorage) GetWhalesPoolInfo ¶
func (s *LiteStorage) GetWhalesPoolInfo(ctx context.Context, id tongo.AccountID) (abi.GetParams_WhalesNominatorResult, abi.GetStakingStatusResult, int, error)
func (*LiteStorage) GetWhalesPoolMemberInfo ¶
func (*LiteStorage) JettonMastersForWallets ¶ added in v0.1.0
func (*LiteStorage) LastMasterchainBlockHeader ¶
func (s *LiteStorage) LastMasterchainBlockHeader(ctx context.Context) (*core.BlockHeader, error)
func (*LiteStorage) NftSaleContracts ¶ added in v0.1.0
func (s *LiteStorage) NftSaleContracts(ctx context.Context, contracts []tongo.AccountID) (map[tongo.AccountID]core.NftSaleContract, error)
func (*LiteStorage) ReindexAccount ¶
func (*LiteStorage) RunSmcMethod ¶
func (*LiteStorage) RunSmcMethodByID ¶
func (*LiteStorage) SearchNFTs ¶
type Option ¶
type Option func(o *Options)
func WithBlockChannel ¶
func WithBlockChannel(ch <-chan indexer.IDandBlock) Option
WithBlockChannel configures a channel to receive notifications about new blocks in the blockchain.
func WithKnownJettons ¶
func WithLiteServers ¶
func WithLiteServers(servers []config.LiteServer) Option
func WithPreloadAccounts ¶
func WithTFPools ¶
Click to show internal directories.
Click to hide internal directories.