Documentation
¶
Index ¶
- Constants
- Variables
- func Scale(amount tlb.VarUInteger16, decimals int) decimal.Decimal
- func ScaleJettons(amount uint64, decimals int) decimal.Decimal
- type AsyncHandler
- type AsyncMiddleware
- type Handler
- func (h Handler) DnsBackResolve(ctx context.Context, params oas.DnsBackResolveParams) (r oas.DnsBackResolveRes, err error)
- func (h Handler) DnsResolve(ctx context.Context, params oas.DnsResolveParams) (oas.DnsResolveRes, error)
- func (h Handler) EmulateMessageToAccountEvent(ctx context.Context, req oas.EmulateMessageToAccountEventReq, ...) (r oas.EmulateMessageToAccountEventRes, _ error)
- func (h Handler) EmulateMessageToEvent(ctx context.Context, req oas.EmulateMessageToEventReq, ...) (r oas.EmulateMessageToEventRes, _ error)
- func (h Handler) EmulateMessageToTrace(ctx context.Context, req oas.EmulateMessageToTraceReq) (r oas.EmulateMessageToTraceRes, _ error)
- func (h Handler) EmulateWalletMessage(ctx context.Context, req oas.EmulateWalletMessageReq, ...) (oas.EmulateWalletMessageRes, error)
- func (h Handler) ExecGetMethod(ctx context.Context, params oas.ExecGetMethodParams) (oas.ExecGetMethodRes, error)
- func (h Handler) GetAccount(ctx context.Context, params oas.GetAccountParams) (oas.GetAccountRes, error)
- func (h Handler) GetAccountInfoByStateInit(ctx context.Context, request oas.GetAccountInfoByStateInitReq) (res oas.GetAccountInfoByStateInitRes, err error)
- func (h Handler) GetAccountSeqno(ctx context.Context, params oas.GetAccountSeqnoParams) (res oas.GetAccountSeqnoRes, err error)
- func (h Handler) GetAccountStateLiteServer(ctx context.Context, params oas.GetAccountStateLiteServerParams) (res oas.GetAccountStateLiteServerRes, err error)
- func (h Handler) GetAccountTransactions(ctx context.Context, params oas.GetAccountTransactionsParams) (r oas.GetAccountTransactionsRes, err error)
- func (h Handler) GetAccounts(ctx context.Context, req oas.OptGetAccountsReq) (r oas.GetAccountsRes, _ error)
- func (h Handler) GetAllAuctions(ctx context.Context, params oas.GetAllAuctionsParams) (oas.GetAllAuctionsRes, error)
- func (h Handler) GetAllShardsInfoLiteServer(ctx context.Context, params oas.GetAllShardsInfoLiteServerParams) (res oas.GetAllShardsInfoLiteServerRes, err error)
- func (h Handler) GetBlock(ctx context.Context, params oas.GetBlockParams) (r oas.GetBlockRes, _ error)
- func (h Handler) GetBlockHeaderLiteServer(ctx context.Context, params oas.GetBlockHeaderLiteServerParams) (res oas.GetBlockHeaderLiteServerRes, err error)
- func (h Handler) GetBlockLiteServer(ctx context.Context, params oas.GetBlockLiteServerParams) (res oas.GetBlockLiteServerRes, err error)
- func (h Handler) GetBlockProofLiteServer(ctx context.Context, params oas.GetBlockProofLiteServerParams) (res oas.GetBlockProofLiteServerRes, err error)
- func (h Handler) GetBlockTransactions(ctx context.Context, params oas.GetBlockTransactionsParams) (oas.GetBlockTransactionsRes, error)
- func (h Handler) GetConfig(ctx context.Context) (r oas.GetConfigRes, _ error)
- func (h Handler) GetConfigAllLiteServer(ctx context.Context, params oas.GetConfigAllLiteServerParams) (res oas.GetConfigAllLiteServerRes, err error)
- func (h Handler) GetDnsExpiring(ctx context.Context, params oas.GetDnsExpiringParams) (r oas.GetDnsExpiringRes, _ error)
- func (h Handler) GetDomainBids(ctx context.Context, params oas.GetDomainBidsParams) (oas.GetDomainBidsRes, error)
- func (h Handler) GetEvent(ctx context.Context, params oas.GetEventParams) (oas.GetEventRes, error)
- func (h Handler) GetEventsByAccount(ctx context.Context, params oas.GetEventsByAccountParams) (r oas.GetEventsByAccountRes, _ error)
- func (h Handler) GetItemsFromCollection(ctx context.Context, params oas.GetItemsFromCollectionParams) (oas.GetItemsFromCollectionRes, error)
- func (h Handler) GetJettonInfo(ctx context.Context, params oas.GetJettonInfoParams) (r oas.GetJettonInfoRes, err error)
- func (h Handler) GetJettonNormalizedMetadata(ctx context.Context, master tongo.AccountID) NormalizedMetadata
- func (h Handler) GetJettons(ctx context.Context, params oas.GetJettonsParams) (r oas.GetJettonsRes, _ error)
- func (h Handler) GetJettonsBalances(ctx context.Context, params oas.GetJettonsBalancesParams) (oas.GetJettonsBalancesRes, error)
- func (h Handler) GetJettonsHistory(ctx context.Context, params oas.GetJettonsHistoryParams) (res oas.GetJettonsHistoryRes, err error)
- func (h Handler) GetJettonsHistoryByID(ctx context.Context, params oas.GetJettonsHistoryByIDParams) (res oas.GetJettonsHistoryByIDRes, err error)
- func (h Handler) GetListBlockTransactionsLiteServer(ctx context.Context, params oas.GetListBlockTransactionsLiteServerParams) (res oas.GetListBlockTransactionsLiteServerRes, err error)
- func (h Handler) GetMasterchainHead(ctx context.Context) (r oas.GetMasterchainHeadRes, err error)
- func (h Handler) GetMasterchainInfoExtLiteServer(ctx context.Context, params oas.GetMasterchainInfoExtLiteServerParams) (oas.GetMasterchainInfoExtLiteServerRes, error)
- func (h Handler) GetMasterchainInfoLiteServer(ctx context.Context) (res oas.GetMasterchainInfoLiteServerRes, err error)
- func (h Handler) GetNftCollection(ctx context.Context, params oas.GetNftCollectionParams) (oas.GetNftCollectionRes, error)
- func (h Handler) GetNftCollections(ctx context.Context, params oas.GetNftCollectionsParams) (oas.GetNftCollectionsRes, error)
- func (h Handler) GetNftItemByAddress(ctx context.Context, req oas.GetNftItemByAddressParams) (oas.GetNftItemByAddressRes, error)
- func (h Handler) GetNftItemsByAddresses(ctx context.Context, req oas.OptGetNftItemsByAddressesReq) (oas.GetNftItemsByAddressesRes, error)
- func (h Handler) GetNftItemsByOwner(ctx context.Context, params oas.GetNftItemsByOwnerParams) (oas.GetNftItemsByOwnerRes, error)
- func (h Handler) GetPublicKeyByAccountID(ctx context.Context, params oas.GetPublicKeyByAccountIDParams) (r oas.GetPublicKeyByAccountIDRes, _ error)
- func (h *Handler) GetRates(ctx context.Context, params oas.GetRatesParams) (res oas.GetRatesRes, err error)
- func (h Handler) GetRawAccount(ctx context.Context, params oas.GetRawAccountParams) (r oas.GetRawAccountRes, _ error)
- func (h Handler) GetSearchAccounts(ctx context.Context, params oas.GetSearchAccountsParams) (res oas.GetSearchAccountsRes, err error)
- func (h Handler) GetShardBlockProofLiteServer(ctx context.Context, params oas.GetShardBlockProofLiteServerParams) (res oas.GetShardBlockProofLiteServerRes, err error)
- func (h Handler) GetShardInfoLiteServer(ctx context.Context, params oas.GetShardInfoLiteServerParams) (res oas.GetShardInfoLiteServerRes, err error)
- func (h Handler) GetStateLiteServer(ctx context.Context, params oas.GetStateLiteServerParams) (res oas.GetStateLiteServerRes, err error)
- func (h Handler) GetStorageProviders(ctx context.Context) (r oas.GetStorageProvidersRes, _ error)
- func (h Handler) GetSubscriptionsByAccount(ctx context.Context, params oas.GetSubscriptionsByAccountParams) (res oas.GetSubscriptionsByAccountRes, err error)
- func (h Handler) GetTimeLiteServer(ctx context.Context) (res oas.GetTimeLiteServerRes, err error)
- func (h Handler) GetTonConnectPayload(ctx context.Context) (res oas.GetTonConnectPayloadRes, err error)
- func (h Handler) GetTrace(ctx context.Context, params oas.GetTraceParams) (r oas.GetTraceRes, _ error)
- func (h Handler) GetTransaction(ctx context.Context, params oas.GetTransactionParams) (r oas.GetTransactionRes, _ error)
- func (h Handler) GetTransactionByMessageHash(ctx context.Context, params oas.GetTransactionByMessageHashParams) (r oas.GetTransactionByMessageHashRes, _ error)
- func (h Handler) GetTransactionsLiteServer(ctx context.Context, params oas.GetTransactionsLiteServerParams) (oas.GetTransactionsLiteServerRes, error)
- func (h Handler) GetWalletBackup(ctx context.Context, params oas.GetWalletBackupParams) (res oas.GetWalletBackupRes, err error)
- func (h Handler) GetWalletsByPublicKey(ctx context.Context, params oas.GetWalletsByPublicKeyParams) (oas.GetWalletsByPublicKeyRes, error)
- func (h Handler) PoolsByNominators(ctx context.Context, params oas.PoolsByNominatorsParams) (oas.PoolsByNominatorsRes, error)
- func (h Handler) ReindexAccount(ctx context.Context, params oas.ReindexAccountParams) (r oas.ReindexAccountRes, err error)
- func (h Handler) SendMessage(ctx context.Context, req oas.SendMessageReq) (r oas.SendMessageRes, _ error)
- func (h Handler) SendMessageLiteServer(ctx context.Context, request oas.SendMessageLiteServerReq) (res oas.SendMessageLiteServerRes, err error)
- func (h Handler) SetWalletBackup(ctx context.Context, request oas.SetWalletBackupReq, ...) (res oas.SetWalletBackupRes, err error)
- func (h Handler) StakingPoolHistory(ctx context.Context, params oas.StakingPoolHistoryParams) (oas.StakingPoolHistoryRes, error)
- func (h Handler) StakingPoolInfo(ctx context.Context, params oas.StakingPoolInfoParams) (oas.StakingPoolInfoRes, error)
- func (h Handler) StakingPools(ctx context.Context, params oas.StakingPoolsParams) (r oas.StakingPoolsRes, _ error)
- func (h Handler) TonConnectProof(ctx context.Context, request oas.TonConnectProofReq) (res oas.TonConnectProofRes, err error)
- type Limits
- type NormalizedMetadata
- type Option
- func WithAddressBook(book addressBook) Option
- func WithChainState(state chainState) Option
- func WithExecutor(e executor) Option
- func WithLimits(limits Limits) Option
- func WithMessageSender(msgSender messageSender) Option
- func WithPreviewGenerator(previewGenerator previewGenerator) Option
- func WithRatesSource(source ratesSource) Option
- func WithSpamRules(spamRules func() rules.Rules) Option
- func WithStorage(s storage) Option
- func WithTonConnectSecret(tonConnectSecret string) Option
- type Options
- type Server
- type ServerOption
- type ServerOptions
- type VerificationType
Constants ¶
const ( LongLivedConnection = 0 RegularConnection = 1 )
For authentication purposes we need to distinguish between regular and long-lived connections.
const UnknownJettonName = "UKWN"
Variables ¶
var ErrRateLimit = errors.New("rate limit")
Functions ¶
Types ¶
type AsyncHandler ¶
type AsyncMiddleware ¶
type AsyncMiddleware func(AsyncHandler) AsyncHandler
type Handler ¶
type Handler struct {
oas.UnimplementedHandler // automatically implement all methods
// contains filtered or unexported fields
}
func (Handler) DnsBackResolve ¶
func (h Handler) DnsBackResolve(ctx context.Context, params oas.DnsBackResolveParams) (r oas.DnsBackResolveRes, err error)
func (Handler) DnsResolve ¶
func (h Handler) DnsResolve(ctx context.Context, params oas.DnsResolveParams) (oas.DnsResolveRes, error)
func (Handler) EmulateMessageToAccountEvent ¶
func (h Handler) EmulateMessageToAccountEvent(ctx context.Context, req oas.EmulateMessageToAccountEventReq, params oas.EmulateMessageToAccountEventParams) (r oas.EmulateMessageToAccountEventRes, _ error)
func (Handler) EmulateMessageToEvent ¶
func (h Handler) EmulateMessageToEvent(ctx context.Context, req oas.EmulateMessageToEventReq, params oas.EmulateMessageToEventParams) (r oas.EmulateMessageToEventRes, _ error)
func (Handler) EmulateMessageToTrace ¶
func (h Handler) EmulateMessageToTrace(ctx context.Context, req oas.EmulateMessageToTraceReq) (r oas.EmulateMessageToTraceRes, _ error)
func (Handler) EmulateWalletMessage ¶
func (h Handler) EmulateWalletMessage(ctx context.Context, req oas.EmulateWalletMessageReq, params oas.EmulateWalletMessageParams) (oas.EmulateWalletMessageRes, error)
func (Handler) ExecGetMethod ¶
func (h Handler) ExecGetMethod(ctx context.Context, params oas.ExecGetMethodParams) (oas.ExecGetMethodRes, error)
func (Handler) GetAccount ¶
func (h Handler) GetAccount(ctx context.Context, params oas.GetAccountParams) (oas.GetAccountRes, error)
func (Handler) GetAccountInfoByStateInit ¶
func (h Handler) GetAccountInfoByStateInit(ctx context.Context, request oas.GetAccountInfoByStateInitReq) (res oas.GetAccountInfoByStateInitRes, err error)
func (Handler) GetAccountSeqno ¶ added in v1.0.0
func (h Handler) GetAccountSeqno(ctx context.Context, params oas.GetAccountSeqnoParams) (res oas.GetAccountSeqnoRes, err error)
func (Handler) GetAccountStateLiteServer ¶ added in v1.0.0
func (h Handler) GetAccountStateLiteServer(ctx context.Context, params oas.GetAccountStateLiteServerParams) (res oas.GetAccountStateLiteServerRes, err error)
func (Handler) GetAccountTransactions ¶
func (h Handler) GetAccountTransactions(ctx context.Context, params oas.GetAccountTransactionsParams) (r oas.GetAccountTransactionsRes, err error)
func (Handler) GetAccounts ¶
func (h Handler) GetAccounts(ctx context.Context, req oas.OptGetAccountsReq) (r oas.GetAccountsRes, _ error)
func (Handler) GetAllAuctions ¶
func (h Handler) GetAllAuctions(ctx context.Context, params oas.GetAllAuctionsParams) (oas.GetAllAuctionsRes, error)
func (Handler) GetAllShardsInfoLiteServer ¶ added in v1.0.0
func (h Handler) GetAllShardsInfoLiteServer(ctx context.Context, params oas.GetAllShardsInfoLiteServerParams) (res oas.GetAllShardsInfoLiteServerRes, err error)
func (Handler) GetBlock ¶
func (h Handler) GetBlock(ctx context.Context, params oas.GetBlockParams) (r oas.GetBlockRes, _ error)
func (Handler) GetBlockHeaderLiteServer ¶ added in v1.0.0
func (h Handler) GetBlockHeaderLiteServer(ctx context.Context, params oas.GetBlockHeaderLiteServerParams) (res oas.GetBlockHeaderLiteServerRes, err error)
func (Handler) GetBlockLiteServer ¶ added in v1.0.0
func (h Handler) GetBlockLiteServer(ctx context.Context, params oas.GetBlockLiteServerParams) (res oas.GetBlockLiteServerRes, err error)
func (Handler) GetBlockProofLiteServer ¶ added in v1.0.0
func (h Handler) GetBlockProofLiteServer(ctx context.Context, params oas.GetBlockProofLiteServerParams) (res oas.GetBlockProofLiteServerRes, err error)
func (Handler) GetBlockTransactions ¶
func (h Handler) GetBlockTransactions(ctx context.Context, params oas.GetBlockTransactionsParams) (oas.GetBlockTransactionsRes, error)
func (Handler) GetConfigAllLiteServer ¶ added in v1.0.0
func (h Handler) GetConfigAllLiteServer(ctx context.Context, params oas.GetConfigAllLiteServerParams) (res oas.GetConfigAllLiteServerRes, err error)
func (Handler) GetDnsExpiring ¶
func (h Handler) GetDnsExpiring(ctx context.Context, params oas.GetDnsExpiringParams) (r oas.GetDnsExpiringRes, _ error)
func (Handler) GetDomainBids ¶ added in v1.0.0
func (h Handler) GetDomainBids(ctx context.Context, params oas.GetDomainBidsParams) (oas.GetDomainBidsRes, error)
func (Handler) GetEvent ¶
func (h Handler) GetEvent(ctx context.Context, params oas.GetEventParams) (oas.GetEventRes, error)
func (Handler) GetEventsByAccount ¶
func (h Handler) GetEventsByAccount(ctx context.Context, params oas.GetEventsByAccountParams) (r oas.GetEventsByAccountRes, _ error)
func (Handler) GetItemsFromCollection ¶
func (h Handler) GetItemsFromCollection(ctx context.Context, params oas.GetItemsFromCollectionParams) (oas.GetItemsFromCollectionRes, error)
func (Handler) GetJettonInfo ¶
func (h Handler) GetJettonInfo(ctx context.Context, params oas.GetJettonInfoParams) (r oas.GetJettonInfoRes, err error)
func (Handler) GetJettonNormalizedMetadata ¶
func (Handler) GetJettons ¶ added in v1.0.0
func (h Handler) GetJettons(ctx context.Context, params oas.GetJettonsParams) (r oas.GetJettonsRes, _ error)
func (Handler) GetJettonsBalances ¶
func (h Handler) GetJettonsBalances(ctx context.Context, params oas.GetJettonsBalancesParams) (oas.GetJettonsBalancesRes, error)
func (Handler) GetJettonsHistory ¶
func (h Handler) GetJettonsHistory(ctx context.Context, params oas.GetJettonsHistoryParams) (res oas.GetJettonsHistoryRes, err error)
func (Handler) GetJettonsHistoryByID ¶
func (h Handler) GetJettonsHistoryByID(ctx context.Context, params oas.GetJettonsHistoryByIDParams) (res oas.GetJettonsHistoryByIDRes, err error)
func (Handler) GetListBlockTransactionsLiteServer ¶ added in v1.0.0
func (h Handler) GetListBlockTransactionsLiteServer(ctx context.Context, params oas.GetListBlockTransactionsLiteServerParams) (res oas.GetListBlockTransactionsLiteServerRes, err error)
func (Handler) GetMasterchainHead ¶
func (Handler) GetMasterchainInfoExtLiteServer ¶ added in v1.0.0
func (h Handler) GetMasterchainInfoExtLiteServer(ctx context.Context, params oas.GetMasterchainInfoExtLiteServerParams) (oas.GetMasterchainInfoExtLiteServerRes, error)
func (Handler) GetMasterchainInfoLiteServer ¶ added in v1.0.0
func (Handler) GetNftCollection ¶
func (h Handler) GetNftCollection(ctx context.Context, params oas.GetNftCollectionParams) (oas.GetNftCollectionRes, error)
func (Handler) GetNftCollections ¶
func (h Handler) GetNftCollections(ctx context.Context, params oas.GetNftCollectionsParams) (oas.GetNftCollectionsRes, error)
func (Handler) GetNftItemByAddress ¶
func (h Handler) GetNftItemByAddress(ctx context.Context, req oas.GetNftItemByAddressParams) (oas.GetNftItemByAddressRes, error)
func (Handler) GetNftItemsByAddresses ¶
func (h Handler) GetNftItemsByAddresses(ctx context.Context, req oas.OptGetNftItemsByAddressesReq) (oas.GetNftItemsByAddressesRes, error)
func (Handler) GetNftItemsByOwner ¶
func (h Handler) GetNftItemsByOwner(ctx context.Context, params oas.GetNftItemsByOwnerParams) (oas.GetNftItemsByOwnerRes, error)
func (Handler) GetPublicKeyByAccountID ¶
func (h Handler) GetPublicKeyByAccountID(ctx context.Context, params oas.GetPublicKeyByAccountIDParams) (r oas.GetPublicKeyByAccountIDRes, _ error)
func (*Handler) GetRates ¶
func (h *Handler) GetRates(ctx context.Context, params oas.GetRatesParams) (res oas.GetRatesRes, err error)
func (Handler) GetRawAccount ¶
func (h Handler) GetRawAccount(ctx context.Context, params oas.GetRawAccountParams) (r oas.GetRawAccountRes, _ error)
func (Handler) GetSearchAccounts ¶
func (h Handler) GetSearchAccounts(ctx context.Context, params oas.GetSearchAccountsParams) (res oas.GetSearchAccountsRes, err error)
func (Handler) GetShardBlockProofLiteServer ¶ added in v1.0.0
func (h Handler) GetShardBlockProofLiteServer(ctx context.Context, params oas.GetShardBlockProofLiteServerParams) (res oas.GetShardBlockProofLiteServerRes, err error)
func (Handler) GetShardInfoLiteServer ¶ added in v1.0.0
func (h Handler) GetShardInfoLiteServer(ctx context.Context, params oas.GetShardInfoLiteServerParams) (res oas.GetShardInfoLiteServerRes, err error)
func (Handler) GetStateLiteServer ¶ added in v1.0.0
func (h Handler) GetStateLiteServer(ctx context.Context, params oas.GetStateLiteServerParams) (res oas.GetStateLiteServerRes, err error)
func (Handler) GetStorageProviders ¶
func (Handler) GetSubscriptionsByAccount ¶ added in v0.1.0
func (h Handler) GetSubscriptionsByAccount(ctx context.Context, params oas.GetSubscriptionsByAccountParams) (res oas.GetSubscriptionsByAccountRes, err error)
func (Handler) GetTimeLiteServer ¶ added in v1.0.0
func (Handler) GetTonConnectPayload ¶
func (Handler) GetTrace ¶
func (h Handler) GetTrace(ctx context.Context, params oas.GetTraceParams) (r oas.GetTraceRes, _ error)
func (Handler) GetTransaction ¶
func (h Handler) GetTransaction(ctx context.Context, params oas.GetTransactionParams) (r oas.GetTransactionRes, _ error)
func (Handler) GetTransactionByMessageHash ¶ added in v1.0.0
func (h Handler) GetTransactionByMessageHash(ctx context.Context, params oas.GetTransactionByMessageHashParams) (r oas.GetTransactionByMessageHashRes, _ error)
func (Handler) GetTransactionsLiteServer ¶ added in v1.0.0
func (h Handler) GetTransactionsLiteServer(ctx context.Context, params oas.GetTransactionsLiteServerParams) (oas.GetTransactionsLiteServerRes, error)
func (Handler) GetWalletBackup ¶
func (h Handler) GetWalletBackup(ctx context.Context, params oas.GetWalletBackupParams) (res oas.GetWalletBackupRes, err error)
func (Handler) GetWalletsByPublicKey ¶ added in v1.0.0
func (h Handler) GetWalletsByPublicKey(ctx context.Context, params oas.GetWalletsByPublicKeyParams) (oas.GetWalletsByPublicKeyRes, error)
func (Handler) PoolsByNominators ¶
func (h Handler) PoolsByNominators(ctx context.Context, params oas.PoolsByNominatorsParams) (oas.PoolsByNominatorsRes, error)
func (Handler) ReindexAccount ¶
func (h Handler) ReindexAccount(ctx context.Context, params oas.ReindexAccountParams) (r oas.ReindexAccountRes, err error)
ReindexAccount updates internal cache for a particular account.
func (Handler) SendMessage ¶
func (h Handler) SendMessage(ctx context.Context, req oas.SendMessageReq) (r oas.SendMessageRes, _ error)
func (Handler) SendMessageLiteServer ¶ added in v1.0.0
func (h Handler) SendMessageLiteServer(ctx context.Context, request oas.SendMessageLiteServerReq) (res oas.SendMessageLiteServerRes, err error)
func (Handler) SetWalletBackup ¶
func (h Handler) SetWalletBackup(ctx context.Context, request oas.SetWalletBackupReq, params oas.SetWalletBackupParams) (res oas.SetWalletBackupRes, err error)
func (Handler) StakingPoolHistory ¶ added in v1.0.0
func (h Handler) StakingPoolHistory(ctx context.Context, params oas.StakingPoolHistoryParams) (oas.StakingPoolHistoryRes, error)
func (Handler) StakingPoolInfo ¶
func (h Handler) StakingPoolInfo(ctx context.Context, params oas.StakingPoolInfoParams) (oas.StakingPoolInfoRes, error)
func (Handler) StakingPools ¶
func (h Handler) StakingPools(ctx context.Context, params oas.StakingPoolsParams) (r oas.StakingPoolsRes, _ error)
func (Handler) TonConnectProof ¶
func (h Handler) TonConnectProof(ctx context.Context, request oas.TonConnectProofReq) (res oas.TonConnectProofRes, err error)
type Limits ¶
type Limits struct {
// BulkLimits stands for a number of entities a user is allowed to request at once with a bulk query.
BulkLimits int
}
type NormalizedMetadata ¶
type NormalizedMetadata struct {
Name string
Description string
Image string
Symbol string
Decimals int
Verification VerificationType
Social []string
Websites []string
}
NormalizedMetadata is a special version of jetton metadata ready to be shown to the users. It contains a mix of information from two sources: 1. a jetton master metadata taken from the blockchain (onchain/offchain) 2. a jetton description taken from the community git https://github.com/tonkeeper/ton-assets. It additionally rewrites some fields if necessary.
func NormalizeMetadata ¶
func NormalizeMetadata(meta tep64.Metadata, info *addressbook.KnownJetton) NormalizedMetadata
type Option ¶
type Option func(o *Options)
func WithAddressBook ¶
func WithAddressBook(book addressBook) Option
func WithChainState ¶
func WithChainState(state chainState) Option
func WithExecutor ¶
func WithExecutor(e executor) Option
func WithLimits ¶
func WithMessageSender ¶
func WithMessageSender(msgSender messageSender) Option
func WithPreviewGenerator ¶
func WithPreviewGenerator(previewGenerator previewGenerator) Option
func WithRatesSource ¶ added in v1.0.0
func WithRatesSource(source ratesSource) Option
func WithSpamRules ¶
func WithStorage ¶
func WithStorage(s storage) Option
func WithTonConnectSecret ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options configures behavior of a Handler instance.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server opens a port and exposes REST-ish API.
Server integrates two groups of endpoints:
- The first group named "Ogen" consists of endpoints generated by ogen based on api/openapi.yml. It has an independent server in "oas" package.
- The second group named "Async" contains methods that aren't supported by ogen (streaming methods with non-standard Content-Type). These methods are defined manually and are exposed with http.ServeMux.
We provide basic middleware like logging and metrics for both groups.
func (*Server) RegisterAsyncHandler ¶
func (s *Server) RegisterAsyncHandler(pattern string, handler AsyncHandler, connectionType int)
type ServerOption ¶
type ServerOption func(options *ServerOptions)
func WithAsyncMiddleware ¶
func WithAsyncMiddleware(m ...AsyncMiddleware) ServerOption
func WithMemPool ¶
func WithMemPool(memPool sources.MemPoolSource) ServerOption
func WithOgenMiddleware ¶
func WithOgenMiddleware(m ...oas.Middleware) ServerOption
func WithTransactionSource ¶
func WithTransactionSource(txSource sources.TransactionSource) ServerOption
type ServerOptions ¶
type ServerOptions struct {
// contains filtered or unexported fields
}
type VerificationType ¶
type VerificationType string
const ( VerificationWhitelist VerificationType = "whitelist" VerificationNone VerificationType = "none" )
Source Files
¶
- account_converters.go
- account_handlers.go
- auction_handlers.go
- blockchain_converters.go
- blockchain_handlers.go
- converters.go
- dns_handlers.go
- event_converters.go
- event_handlers.go
- handler.go
- interfaces.go
- jetton_converters.go
- jetton_handlers.go
- limits.go
- liteserver_converters.go
- liteserver_handlers.go
- metadata.go
- middlewares.go
- nft_converters.go
- nft_handlers.go
- normalized_metadata.go
- rates_handlers.go
- server.go
- staking_converters.go
- staking_handlers.go
- storage_handlers.go
- test_events.go
- tonconnect_handlers.go
- wallet_handlers.go