Documentation ¶
Index ¶
- Variables
- func OasTransactionToCoreTransaction(oasTransaction tonapi.Transaction) (core.Transaction, error)
- type ICache
- type InMemoryCache
- func (c *InMemoryCache[T]) Delete(ctx context.Context, key string) error
- func (c *InMemoryCache[T]) Get(ctx context.Context, key string) (T, error)
- func (c *InMemoryCache[T]) Set(ctx context.Context, key string, value T, expiration time.Duration) error
- func (c *InMemoryCache[T]) SetMany(ctx context.Context, items map[string]T, expiration time.Duration) error
- type InMemoryConfig
- type LiteStorage
- func (s *LiteStorage) AccountStatusAndInterfaces(addr tongo.AccountID) (tlb.AccountStatus, []abi.ContractInterface, error)
- func (s *LiteStorage) FindAllDomainsResolvedToAddress(ctx context.Context, a tongo.AccountID, collections map[tongo.AccountID]string) ([]string, error)
- func (s *LiteStorage) GetAccountDiff(ctx context.Context, account tongo.AccountID, startTime int64, endTime int64) (int64, 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, ...) ([]tongo.Bits256, error)
- func (s *LiteStorage) GetAccountMultisigs(ctx context.Context, accountID ton.AccountID) ([]core.Multisig, error)
- func (s *LiteStorage) GetAccountNftsHistory(ctx context.Context, address tongo.AccountID, limit int, beforeLT *int64, ...) ([]tongo.Bits256, error)
- func (s *LiteStorage) GetAccountState(ctx context.Context, a tongo.AccountID) (tlb.ShardAccount, error)
- func (s *LiteStorage) GetAccountStateRaw(ctx context.Context, accountID tongo.AccountID, id *tongo.BlockIDExt) (liteclient.LiteServerAccountStateC, 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) GetBlockHeaderRaw(ctx context.Context, id tongo.BlockIDExt, mode uint32) (liteclient.LiteServerBlockHeaderC, error)
- func (s *LiteStorage) GetBlockProofRaw(ctx context.Context, knownBlock tongo.BlockIDExt, ...) (liteclient.LiteServerPartialBlockProofC, error)
- func (s *LiteStorage) GetBlockRaw(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerBlockDataC, error)
- func (s *LiteStorage) GetBlockShards(ctx context.Context, id tongo.BlockID) ([]ton.BlockID, error)
- func (s *LiteStorage) GetBlockTransactions(ctx context.Context, id tongo.BlockID) ([]*core.Transaction, error)
- func (s *LiteStorage) GetConfigAllRaw(ctx context.Context, mode uint32, id tongo.BlockIDExt) (liteclient.LiteServerConfigInfoC, error)
- func (c *LiteStorage) GetConfigFromBlock(ctx context.Context, id ton.BlockID) (tlb.ConfigParams, error)
- func (c *LiteStorage) GetConfigRaw(ctx context.Context) ([]byte, error)
- func (s *LiteStorage) GetContract(ctx context.Context, id tongo.AccountID) (*core.Contract, error)
- func (s *LiteStorage) GetDnsExpiring(ctx context.Context, id tongo.AccountID, period *int) ([]core.DnsExpiring, error)
- func (s *LiteStorage) GetDomainBids(ctx context.Context, domain string) ([]core.DomainBid, error)
- func (s *LiteStorage) GetDomainInfo(ctx context.Context, domain string) (core.NftItem, int64, error)
- func (c *LiteStorage) GetInscriptionBalancesByAccount(ctx context.Context, a ton.AccountID) ([]core.InscriptionBalance, error)
- func (c *LiteStorage) GetInscriptionsHistoryByAccount(ctx context.Context, a ton.AccountID, ticker *string, beforeLt int64, ...) ([]core.InscriptionMessage, error)
- func (s *LiteStorage) GetJettonHolders(ctx context.Context, jettonMaster tongo.AccountID, limit, offset int) ([]core.JettonHolder, error)
- func (s *LiteStorage) GetJettonMasterData(ctx context.Context, master tongo.AccountID) (core.JettonMaster, error)
- func (s *LiteStorage) GetJettonMasterMetadata(ctx context.Context, master tongo.AccountID) (tongo.JettonMetadata, error)
- func (s *LiteStorage) GetJettonMasters(ctx context.Context, limit, offset int) ([]core.JettonMaster, error)
- func (s *LiteStorage) GetJettonMastersByAddresses(ctx context.Context, addresses []ton.AccountID) ([]core.JettonMaster, error)
- func (s *LiteStorage) GetJettonTransferPayload(ctx context.Context, accountID, jettonMaster ton.AccountID) (*core.JettonTransferPayload, error)
- func (s *LiteStorage) GetJettonWalletsByOwnerAddress(ctx context.Context, address ton.AccountID, jetton *ton.AccountID, ...) ([]core.JettonWallet, error)
- func (s *LiteStorage) GetJettonsHoldersCount(ctx context.Context, accountIDs []tongo.AccountID) (map[tongo.AccountID]int32, error)
- func (c *LiteStorage) GetLastConfig(ctx context.Context) (ton.BlockchainConfig, error)
- func (s *LiteStorage) GetLatencyAndLastMasterchainSeqno(ctx context.Context) (int64, uint32, error)
- func (s *LiteStorage) GetLibraries(ctx context.Context, libraries []tongo.Bits256) (map[tongo.Bits256]*boc.Cell, 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) GetLogs(ctx context.Context, account tongo.AccountID, destination *tlb.MsgAddress, ...) ([]core.Message, error)
- func (s *LiteStorage) GetMasterchainInfoExtRaw(ctx context.Context, mode uint32) (liteclient.LiteServerMasterchainInfoExtC, error)
- func (s *LiteStorage) GetMasterchainInfoRaw(ctx context.Context) (liteclient.LiteServerMasterchainInfoC, error)
- func (s *LiteStorage) GetMissedEvents(ctx context.Context, account ton.AccountID, lt uint64, limit int) ([]oas.AccountEvent, error)
- func (s *LiteStorage) GetMultisigByID(ctx context.Context, accountID ton.AccountID) (*core.Multisig, 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) GetNftCollectionsByAddresses(ctx context.Context, addresses []ton.AccountID) ([]core.NftCollection, error)
- func (s *LiteStorage) GetNftHistory(ctx context.Context, address tongo.AccountID, limit int, beforeLT *int64, ...) ([]tongo.Bits256, error)
- func (s *LiteStorage) GetOutMsgQueueSizes(ctx context.Context) (liteclient.LiteServerOutMsgQueueSizesC, error)
- func (s *LiteStorage) GetParticipatingInLiquidPools(ctx context.Context, member tongo.AccountID) ([]core.Nominator, 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) GetReducedBlocks(ctx context.Context, from, to int64) ([]core.ReducedBlock, error)
- func (s *LiteStorage) GetSeqno(ctx context.Context, account tongo.AccountID) (uint32, error)
- func (s *LiteStorage) GetShardBlockProofRaw(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerShardBlockProofC, error)
- func (s *LiteStorage) GetShardInfoRaw(ctx context.Context, id tongo.BlockIDExt, workchain uint32, shard uint64, ...) (liteclient.LiteServerShardInfoC, error)
- func (s *LiteStorage) GetShardsAllInfo(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerAllShardsInfoC, error)
- func (s *LiteStorage) GetStateRaw(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerBlockStateC, 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, availableFor *ton.AccountID) ([]core.TFPool, error)
- func (s *LiteStorage) GetTimeRaw(ctx context.Context) (uint32, 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) GetTransactionsRaw(ctx context.Context, count uint32, accountID tongo.AccountID, lt uint64, ...) (liteclient.LiteServerTransactionListC, 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, uint64, ...)
- func (s *LiteStorage) GetWhalesPoolMemberInfo(ctx context.Context, pool, member tongo.AccountID) (core.Nominator, error)
- func (s *LiteStorage) InspectContract(ctx context.Context, account core.Account) ([]abi.ContractInterface, 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) ListBlockTransactionsRaw(ctx context.Context, id tongo.BlockIDExt, mode, count uint32, ...) (liteclient.LiteServerBlockTransactionsC, error)
- func (s *LiteStorage) NftSaleContracts(ctx context.Context, contracts []tongo.AccountID) (map[tongo.AccountID]core.NftSaleContract, error)
- func (s *LiteStorage) ParseBlock(ctx context.Context, block indexer.IDandBlock)
- 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) STONfiPools(ctx context.Context, poolIDs []core.STONfiPoolID) (map[tongo.AccountID]core.STONfiPool, error)
- func (s *LiteStorage) SearchAccountsByPubKey(pubKey ed25519.PublicKey) ([]tongo.AccountID, 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, ...) ([]core.TraceID, error)
- func (s *LiteStorage) SearchTransactionByMessageHash(ctx context.Context, hash tongo.Bits256) (*tongo.Bits256, error)
- func (s *LiteStorage) SendMessageRaw(ctx context.Context, payload []byte) (uint32, error)
- func (s *LiteStorage) SetExecutor(e abi.Executor)
- func (s *LiteStorage) Shutdown()
- func (c *LiteStorage) TrimmedConfigBase64() (string, error)
- type Option
- func WithBlockChannel(ch <-chan indexer.IDandBlock) Option
- func WithCacheExpiration(d time.Duration) Option
- func WithKnownJettons(a []tongo.AccountID) Option
- func WithPreloadAccounts(a []tongo.AccountID) Option
- func WithPreloadBlocks(ids []tongo.BlockID) Option
- func WithTFPools(pools []tongo.AccountID) Option
- func WithTonApiClient(c *tonapi.Client) Option
- func WithTrackAllAccounts() Option
- func WithTransactionsByInMsg(cache ICache[string]) Option
- func WithTransactionsByOutMsg(cache ICache[string]) Option
- func WithTransactionsIndexByHash(cache ICache[core.Transaction]) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNotFound = errors.New("key not found")
Functions ¶
func OasTransactionToCoreTransaction ¶
func OasTransactionToCoreTransaction(oasTransaction tonapi.Transaction) (core.Transaction, error)
Types ¶
type ICache ¶
type InMemoryCache ¶
type InMemoryCache[T any] struct { // contains filtered or unexported fields }
func (*InMemoryCache[T]) Delete ¶
func (c *InMemoryCache[T]) Delete(ctx context.Context, key string) error
func (*InMemoryCache[T]) Get ¶
func (c *InMemoryCache[T]) Get(ctx context.Context, key string) (T, error)
type InMemoryConfig ¶
type InMemoryConfig struct {
MaxItems int64
}
type LiteStorage ¶
type LiteStorage struct {
// contains filtered or unexported fields
}
func NewLiteStorage ¶
func (*LiteStorage) AccountStatusAndInterfaces ¶
func (s *LiteStorage) AccountStatusAndInterfaces(addr tongo.AccountID) (tlb.AccountStatus, []abi.ContractInterface, error)
func (*LiteStorage) FindAllDomainsResolvedToAddress ¶
func (*LiteStorage) GetAccountDiff ¶
func (*LiteStorage) GetAccountJettonHistoryByID ¶
func (*LiteStorage) GetAccountJettonsHistory ¶
func (*LiteStorage) GetAccountMultisigs ¶
func (*LiteStorage) GetAccountNftsHistory ¶
func (*LiteStorage) GetAccountState ¶
func (s *LiteStorage) GetAccountState(ctx context.Context, a tongo.AccountID) (tlb.ShardAccount, error)
func (*LiteStorage) GetAccountStateRaw ¶
func (s *LiteStorage) GetAccountStateRaw(ctx context.Context, accountID tongo.AccountID, id *tongo.BlockIDExt) (liteclient.LiteServerAccountStateC, error)
func (*LiteStorage) GetAccountTransactions ¶
func (*LiteStorage) GetAllAuctions ¶
func (*LiteStorage) GetBlockHeader ¶
func (s *LiteStorage) GetBlockHeader(ctx context.Context, id tongo.BlockID) (*core.BlockHeader, error)
func (*LiteStorage) GetBlockHeaderRaw ¶
func (s *LiteStorage) GetBlockHeaderRaw(ctx context.Context, id tongo.BlockIDExt, mode uint32) (liteclient.LiteServerBlockHeaderC, error)
func (*LiteStorage) GetBlockProofRaw ¶
func (s *LiteStorage) GetBlockProofRaw(ctx context.Context, knownBlock tongo.BlockIDExt, targetBlock *tongo.BlockIDExt) (liteclient.LiteServerPartialBlockProofC, error)
func (*LiteStorage) GetBlockRaw ¶
func (s *LiteStorage) GetBlockRaw(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerBlockDataC, error)
func (*LiteStorage) GetBlockShards ¶
func (*LiteStorage) GetBlockTransactions ¶
func (s *LiteStorage) GetBlockTransactions(ctx context.Context, id tongo.BlockID) ([]*core.Transaction, error)
func (*LiteStorage) GetConfigAllRaw ¶
func (s *LiteStorage) GetConfigAllRaw(ctx context.Context, mode uint32, id tongo.BlockIDExt) (liteclient.LiteServerConfigInfoC, error)
func (*LiteStorage) GetConfigFromBlock ¶
func (c *LiteStorage) GetConfigFromBlock(ctx context.Context, id ton.BlockID) (tlb.ConfigParams, error)
func (*LiteStorage) GetConfigRaw ¶
func (c *LiteStorage) GetConfigRaw(ctx context.Context) ([]byte, error)
func (*LiteStorage) GetContract ¶
func (*LiteStorage) GetDnsExpiring ¶
func (s *LiteStorage) GetDnsExpiring(ctx context.Context, id tongo.AccountID, period *int) ([]core.DnsExpiring, error)
func (*LiteStorage) GetDomainBids ¶
func (*LiteStorage) GetDomainInfo ¶
func (*LiteStorage) GetInscriptionBalancesByAccount ¶
func (c *LiteStorage) GetInscriptionBalancesByAccount(ctx context.Context, a ton.AccountID) ([]core.InscriptionBalance, error)
func (*LiteStorage) GetInscriptionsHistoryByAccount ¶
func (*LiteStorage) GetJettonHolders ¶
func (s *LiteStorage) GetJettonHolders(ctx context.Context, jettonMaster tongo.AccountID, limit, offset int) ([]core.JettonHolder, error)
func (*LiteStorage) GetJettonMasterData ¶
func (s *LiteStorage) GetJettonMasterData(ctx context.Context, master tongo.AccountID) (core.JettonMaster, error)
func (*LiteStorage) GetJettonMasterMetadata ¶
func (s *LiteStorage) GetJettonMasterMetadata(ctx context.Context, master tongo.AccountID) (tongo.JettonMetadata, error)
func (*LiteStorage) GetJettonMasters ¶
func (s *LiteStorage) GetJettonMasters(ctx context.Context, limit, offset int) ([]core.JettonMaster, error)
func (*LiteStorage) GetJettonMastersByAddresses ¶
func (s *LiteStorage) GetJettonMastersByAddresses(ctx context.Context, addresses []ton.AccountID) ([]core.JettonMaster, error)
func (*LiteStorage) GetJettonTransferPayload ¶
func (s *LiteStorage) GetJettonTransferPayload(ctx context.Context, accountID, jettonMaster ton.AccountID) (*core.JettonTransferPayload, error)
func (*LiteStorage) GetJettonWalletsByOwnerAddress ¶
func (*LiteStorage) GetJettonsHoldersCount ¶
func (*LiteStorage) GetLastConfig ¶
func (c *LiteStorage) GetLastConfig(ctx context.Context) (ton.BlockchainConfig, error)
func (*LiteStorage) GetLatencyAndLastMasterchainSeqno ¶
func (*LiteStorage) GetLibraries ¶
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) GetMasterchainInfoExtRaw ¶
func (s *LiteStorage) GetMasterchainInfoExtRaw(ctx context.Context, mode uint32) (liteclient.LiteServerMasterchainInfoExtC, error)
func (*LiteStorage) GetMasterchainInfoRaw ¶
func (s *LiteStorage) GetMasterchainInfoRaw(ctx context.Context) (liteclient.LiteServerMasterchainInfoC, error)
func (*LiteStorage) GetMissedEvents ¶
func (s *LiteStorage) GetMissedEvents(ctx context.Context, account ton.AccountID, lt uint64, limit int) ([]oas.AccountEvent, error)
func (*LiteStorage) GetMultisigByID ¶
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) GetNftCollectionsByAddresses ¶
func (s *LiteStorage) GetNftCollectionsByAddresses(ctx context.Context, addresses []ton.AccountID) ([]core.NftCollection, error)
func (*LiteStorage) GetNftHistory ¶
func (*LiteStorage) GetOutMsgQueueSizes ¶
func (s *LiteStorage) GetOutMsgQueueSizes(ctx context.Context) (liteclient.LiteServerOutMsgQueueSizesC, error)
func (*LiteStorage) GetParticipatingInLiquidPools ¶
func (*LiteStorage) GetParticipatingInTfPools ¶
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) GetReducedBlocks ¶
func (s *LiteStorage) GetReducedBlocks(ctx context.Context, from, to int64) ([]core.ReducedBlock, error)
func (*LiteStorage) GetShardBlockProofRaw ¶
func (s *LiteStorage) GetShardBlockProofRaw(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerShardBlockProofC, error)
func (*LiteStorage) GetShardInfoRaw ¶
func (s *LiteStorage) GetShardInfoRaw(ctx context.Context, id tongo.BlockIDExt, workchain uint32, shard uint64, exact bool) (liteclient.LiteServerShardInfoC, error)
func (*LiteStorage) GetShardsAllInfo ¶
func (s *LiteStorage) GetShardsAllInfo(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerAllShardsInfoC, error)
func (*LiteStorage) GetStateRaw ¶
func (s *LiteStorage) GetStateRaw(ctx context.Context, id tongo.BlockIDExt) (liteclient.LiteServerBlockStateC, error)
func (*LiteStorage) GetStorageProviders ¶
func (s *LiteStorage) GetStorageProviders(ctx context.Context) ([]core.StorageProvider, error)
func (*LiteStorage) GetSubscriptions ¶
func (s *LiteStorage) GetSubscriptions(ctx context.Context, address tongo.AccountID) ([]core.Subscription, error)
func (*LiteStorage) GetTFPools ¶
func (*LiteStorage) GetTimeRaw ¶
func (s *LiteStorage) GetTimeRaw(ctx context.Context) (uint32, error)
func (*LiteStorage) GetTransaction ¶
func (s *LiteStorage) GetTransaction(ctx context.Context, hash tongo.Bits256) (*core.Transaction, error)
func (*LiteStorage) GetTransactionsRaw ¶
func (s *LiteStorage) GetTransactionsRaw(ctx context.Context, count uint32, accountID tongo.AccountID, lt uint64, hash tongo.Bits256) (liteclient.LiteServerTransactionListC, error)
func (*LiteStorage) GetWalletPubKey ¶
func (*LiteStorage) GetWhalesPoolInfo ¶
func (s *LiteStorage) GetWhalesPoolInfo(ctx context.Context, id tongo.AccountID) (abi.GetParams_WhalesNominatorResult, abi.GetStakingStatusResult, int, uint64, error)
func (*LiteStorage) GetWhalesPoolMemberInfo ¶
func (*LiteStorage) InspectContract ¶
func (s *LiteStorage) InspectContract(ctx context.Context, account core.Account) ([]abi.ContractInterface, error)
func (*LiteStorage) JettonMastersForWallets ¶
func (*LiteStorage) LastMasterchainBlockHeader ¶
func (s *LiteStorage) LastMasterchainBlockHeader(ctx context.Context) (*core.BlockHeader, error)
func (*LiteStorage) ListBlockTransactionsRaw ¶
func (s *LiteStorage) ListBlockTransactionsRaw(ctx context.Context, id tongo.BlockIDExt, mode, count uint32, after *liteclient.LiteServerTransactionId3C) (liteclient.LiteServerBlockTransactionsC, error)
func (*LiteStorage) NftSaleContracts ¶
func (s *LiteStorage) NftSaleContracts(ctx context.Context, contracts []tongo.AccountID) (map[tongo.AccountID]core.NftSaleContract, error)
func (*LiteStorage) ParseBlock ¶
func (s *LiteStorage) ParseBlock(ctx context.Context, block indexer.IDandBlock)
func (*LiteStorage) ReindexAccount ¶
func (*LiteStorage) RunSmcMethod ¶
func (*LiteStorage) RunSmcMethodByID ¶
func (*LiteStorage) STONfiPools ¶
func (s *LiteStorage) STONfiPools(ctx context.Context, poolIDs []core.STONfiPoolID) (map[tongo.AccountID]core.STONfiPool, error)
func (*LiteStorage) SearchAccountsByPubKey ¶
func (*LiteStorage) SearchNFTs ¶
func (*LiteStorage) SearchTraces ¶
func (*LiteStorage) SearchTransactionByMessageHash ¶
func (*LiteStorage) SendMessageRaw ¶
func (*LiteStorage) SetExecutor ¶
func (s *LiteStorage) SetExecutor(e abi.Executor)
func (*LiteStorage) Shutdown ¶
func (s *LiteStorage) Shutdown()
Shutdown stops all background goroutines.
func (*LiteStorage) TrimmedConfigBase64 ¶
func (c *LiteStorage) TrimmedConfigBase64() (string, error)
TrimmedConfigBase64 returns the current trimmed blockchain config in a base64 format.
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 WithCacheExpiration ¶
func WithKnownJettons ¶
func WithPreloadAccounts ¶
func WithPreloadBlocks ¶
func WithTFPools ¶
func WithTonApiClient ¶
func WithTonApiClient(c *tonapi.Client) Option
func WithTrackAllAccounts ¶
func WithTrackAllAccounts() Option
func WithTransactionsByInMsg ¶
func WithTransactionsIndexByHash ¶
func WithTransactionsIndexByHash(cache ICache[core.Transaction]) Option
Click to show internal directories.
Click to hide internal directories.