SYMBOL INDEX (419 symbols across 24 files) FILE: api/handlers.go type Handler (line 27) | type Handler struct method getNewAddress (line 119) | func (h *Handler) getNewAddress(resp http.ResponseWriter, req *http.Re... method getAddresses (line 151) | func (h *Handler) getAddresses(resp http.ResponseWriter, req *http.Req... method sendWithdrawal (line 170) | func (h *Handler) sendWithdrawal(resp http.ResponseWriter, req *http.R... method getSync (line 209) | func (h *Handler) getSync(resp http.ResponseWriter, req *http.Request) { method getWithdrawalStatus (line 232) | func (h *Handler) getWithdrawalStatus(resp http.ResponseWriter, req *h... method getIncome (line 271) | func (h *Handler) getIncome(resp http.ResponseWriter, req *http.Reques... method getIncomeHistory (line 290) | func (h *Handler) getIncomeHistory(resp http.ResponseWriter, req *http... method serviceTonWithdrawal (line 338) | func (h *Handler) serviceTonWithdrawal(resp http.ResponseWriter, req *... method serviceJettonWithdrawal (line 368) | func (h *Handler) serviceJettonWithdrawal(resp http.ResponseWriter, re... method getMetrics (line 398) | func (h *Handler) getMetrics(resp http.ResponseWriter, req *http.Reque... method getIncomeByTx (line 415) | func (h *Handler) getIncomeByTx(resp http.ResponseWriter, req *http.Re... method getBalance (line 444) | func (h *Handler) getBalance(resp http.ResponseWriter, req *http.Reque... method getResolve (line 512) | func (h *Handler) getResolve(resp http.ResponseWriter, req *http.Reque... type WithdrawalRequest (line 36) | type WithdrawalRequest struct type ServiceTonWithdrawalRequest (line 46) | type ServiceTonWithdrawalRequest struct type ServiceJettonWithdrawalRequest (line 50) | type ServiceJettonWithdrawalRequest struct type WalletAddress (line 55) | type WalletAddress struct type GetAddressesResponse (line 60) | type GetAddressesResponse struct type WithdrawalResponse (line 64) | type WithdrawalResponse struct type GetBalanceResponse (line 68) | type GetBalanceResponse struct type ResolveResponse (line 75) | type ResolveResponse struct type WithdrawalStatusResponse (line 79) | type WithdrawalStatusResponse struct type GetIncomeResponse (line 86) | type GetIncomeResponse struct type GetHistoryResponse (line 91) | type GetHistoryResponse struct type GetIncomeByTxResponse (line 95) | type GetIncomeByTxResponse struct type totalIncome (line 100) | type totalIncome struct type income (line 106) | type income struct function NewHandler (line 115) | func NewHandler(s storage, b blockchain, token string, shard byte, hotWa... function RegisterHandlers (line 543) | func RegisterHandlers(mux *http.ServeMux, h *Handler) { function generateAddress (line 559) | func generateAddress( function getAddresses (line 635) | func getAddresses(ctx context.Context, userID string, dbConn storage) (G... function isValidCommentLen (line 656) | func isValidCommentLen(comment string) bool { function isValidCurrency (line 660) | func isValidCurrency(cur string) bool { function convertWithdrawal (line 667) | func convertWithdrawal(w WithdrawalRequest) (core.WithdrawalRequest, err... function convertTonServiceWithdrawal (line 712) | func convertTonServiceWithdrawal(s storage, w ServiceTonWithdrawalReques... function convertJettonServiceWithdrawal (line 730) | func convertJettonServiceWithdrawal(s storage, w ServiceJettonWithdrawal... function convertIncome (line 754) | func convertIncome(dbConn storage, totalIncomes []core.TotalIncome) GetI... function convertOneIncome (line 784) | func convertOneIncome(dbConn storage, currency string, oneIncome core.Ex... function convertHistory (line 810) | func convertHistory(dbConn storage, currency string, incomes []core.Exte... function validateAddress (line 821) | func validateAddress(addr string) (core.Address, bool, error) { type storage (line 840) | type storage interface type blockchain (line 859) | type blockchain interface FILE: api/middleware.go function recoverMiddleware (line 13) | func recoverMiddleware(next func(http.ResponseWriter, *http.Request)) fu... function authMiddleware (line 27) | func authMiddleware(next func(http.ResponseWriter, *http.Request)) func(... function get (line 37) | func get(next func(http.ResponseWriter, *http.Request)) func(http.Respon... function post (line 47) | func post(next func(http.ResponseWriter, *http.Request)) func(http.Respo... function checkToken (line 57) | func checkToken(req *http.Request, token string) bool { function writeHttpError (line 71) | func writeHttpError(resp http.ResponseWriter, status int, comment string) { FILE: audit/log.go type Severity (line 10) | type Severity constant Error (line 13) | Error Severity = "ERROR" constant Warning (line 14) | Warning Severity = "WARNING" constant Info (line 15) | Info Severity = "INFO" type message (line 18) | type message struct function pushLog (line 23) | func pushLog(m message) { function LogTX (line 37) | func LogTX(severity Severity, location string, hash []byte, text string) { function Log (line 44) | func Log(severity Severity, location, event, text string) { FILE: blockchain/blockchain.go type Connection (line 30) | type Connection struct method WaitForBlock (line 35) | func (c *Connection) WaitForBlock(seqno uint32) ton.APIClientWrapped { method FindLastTransactionByInMsgHash (line 39) | func (c *Connection) FindLastTransactionByInMsgHash(ctx context.Contex... method FindLastTransactionByOutMsgHash (line 44) | func (c *Connection) FindLastTransactionByOutMsgHash(ctx context.Conte... method GenerateDefaultWallet (line 154) | func (c *Connection) GenerateDefaultWallet(seed string, isHighload boo... method GenerateSubWallet (line 173) | func (c *Connection) GenerateSubWallet(seed string, shard byte, startS... method GetJettonWalletAddress (line 196) | func (c *Connection) GetJettonWalletAddress( method GetJettonBalanceByOwner (line 218) | func (c *Connection) GetJettonBalanceByOwner( method DnsResolveSmc (line 234) | func (c *Connection) DnsResolveSmc( method GenerateDepositJettonWalletForProxy (line 291) | func (c *Connection) GenerateDepositJettonWalletForProxy( method getContract (line 328) | func (c *Connection) getContract(ctx context.Context, addr *address.Ad... method GetJettonBalance (line 414) | func (c *Connection) GetJettonBalance(ctx context.Context, address cor... method GetLastJettonBalance (line 437) | func (c *Connection) GetLastJettonBalance(ctx context.Context, address... method GetAccountCurrentState (line 451) | func (c *Connection) GetAccountCurrentState(ctx context.Context, addre... method DeployTonWallet (line 479) | func (c *Connection) DeployTonWallet(ctx context.Context, wallet *wall... method GetTransactionIDsFromBlock (line 500) | func (c *Connection) GetTransactionIDsFromBlock(ctx context.Context, b... method GetTransactionFromBlock (line 527) | func (c *Connection) GetTransactionFromBlock(ctx context.Context, bloc... method getCurrentNodeTime (line 539) | func (c *Connection) getCurrentNodeTime(ctx context.Context) (time.Tim... method CheckTime (line 552) | func (c *Connection) CheckTime(ctx context.Context, cutoff time.Durati... method WaitStatus (line 571) | func (c *Connection) WaitStatus(ctx context.Context, addr *address.Add... method GetAccount (line 594) | func (c *Connection) GetAccount(ctx context.Context, block *ton.BlockI... method SendExternalMessage (line 606) | func (c *Connection) SendExternalMessage(ctx context.Context, msg *tlb... method RunGetMethod (line 613) | func (c *Connection) RunGetMethod(ctx context.Context, block *ton.Bloc... method ListTransactions (line 629) | func (c *Connection) ListTransactions(ctx context.Context, addr *addre... method Client (line 633) | func (c *Connection) Client() ton.LiteClient { method CurrentMasterchainInfo (line 637) | func (c *Connection) CurrentMasterchainInfo(ctx context.Context) (*ton... method GetMasterchainInfo (line 641) | func (c *Connection) GetMasterchainInfo(ctx context.Context) (*ton.Blo... method SendExternalMessageWaitTransaction (line 645) | func (c *Connection) SendExternalMessageWaitTransaction(ctx context.Co... type contract (line 49) | type contract struct function NewConnection (line 56) | func NewConnection(addr, key string, rateLimit int) (*Connection, error) { function getConfigData (line 111) | func getConfigData(ctx context.Context, api ton.APIClientWrapped) (*addr... function getWalletRecord (line 258) | func getWalletRecord(d *dns.Domain) *address.Address { function getJettonWalletAddressByTVM (line 365) | func getJettonWalletAddressByTVM( function newEmulator (line 402) | func newEmulator(code, data *boc.Cell) (*tvm.Emulator, error) { function inShard (line 535) | func inShard(addr core.Address, shard byte) bool { function getBlockchainConfig (line 649) | func getBlockchainConfig(ctx context.Context, client ton.LiteClient, blo... FILE: blockchain/blockchain_test.go function connect (line 24) | func connect(t *testing.T) *Connection { function getSeed (line 40) | func getSeed() string { function Test_NewConnection (line 48) | func Test_NewConnection(t *testing.T) { function Test_GenerateDefaultWallet (line 52) | func Test_GenerateDefaultWallet(t *testing.T) { function Test_GenerateSubWallet (line 77) | func Test_GenerateSubWallet(t *testing.T) { function Test_GetJettonWalletAddress (line 96) | func Test_GetJettonWalletAddress(t *testing.T) { function Test_GenerateJettonWalletAddressForProxy (line 120) | func Test_GenerateJettonWalletAddressForProxy(t *testing.T) { function Test_GetJettonBalance (line 159) | func Test_GetJettonBalance(t *testing.T) { function Test_GetAccountCurrentState (line 185) | func Test_GetAccountCurrentState(t *testing.T) { function Test_DeployTonWallet (line 205) | func Test_DeployTonWallet(t *testing.T) { function Test_GetTransactionIDsFromBlock (line 273) | func Test_GetTransactionIDsFromBlock(t *testing.T) { function Test_GetTransactionFromBlock (line 287) | func Test_GetTransactionFromBlock(t *testing.T) { function Test_CheckTime (line 313) | func Test_CheckTime(t *testing.T) { function Test_WaitStatus (line 333) | func Test_WaitStatus(t *testing.T) { function Test_GetAccount (line 347) | func Test_GetAccount(t *testing.T) { function Test_RunGetMethod (line 363) | func Test_RunGetMethod(t *testing.T) { function Test_NextBlock (line 379) | func Test_NextBlock(t *testing.T) { function Test_Stop (line 394) | func Test_Stop(t *testing.T) { FILE: blockchain/limited_client.go type limitedLiteClient (line 12) | type limitedLiteClient struct method QueryLiteserver (line 24) | func (w *limitedLiteClient) QueryLiteserver(ctx context.Context, paylo... method StickyContext (line 32) | func (w *limitedLiteClient) StickyContext(ctx context.Context) context... method StickyNodeID (line 36) | func (w *limitedLiteClient) StickyNodeID(ctx context.Context) uint32 { method StickyContextNextNode (line 40) | func (w *limitedLiteClient) StickyContextNextNode(ctx context.Context)... method StickyContextNextNodeBalanced (line 44) | func (w *limitedLiteClient) StickyContextNextNodeBalanced(ctx context.... function newLimitedClient (line 17) | func newLimitedClient(lc ton.LiteClient, rateLimit int) *limitedLiteClie... FILE: blockchain/shard_tracker.go constant ErrBlockNotApplied (line 14) | ErrBlockNotApplied = "block is not applied" constant ErrBlockNotInDB (line 15) | ErrBlockNotInDB = "code 651" type ShardTracker (line 17) | type ShardTracker struct method NextBlock (line 44) | func (s *ShardTracker) NextBlock() (core.ShardBlockHeader, bool, error) { method Stop (line 71) | func (s *ShardTracker) Stop() { method getNext (line 75) | func (s *ShardTracker) getNext() *core.ShardBlockHeader { method getNextMasterBlockID (line 84) | func (s *ShardTracker) getNextMasterBlockID(ctx context.Context) (*ton... method loadShardBlocksBatch (line 104) | func (s *ShardTracker) loadShardBlocksBatch(masterBlockID *ton.BlockID... method getShardBlocksRecursively (line 139) | func (s *ShardTracker) getShardBlocksRecursively(i *ton.BlockIDExt, ba... function NewShardTracker (line 29) | func NewShardTracker(shard byte, startBlock *ton.BlockIDExt, connection ... function isInShard (line 181) | func isInShard(blockShardPrefix uint64, shard byte) bool { function filterByShard (line 194) | func filterByShard(headers []*ton.BlockIDExt, shard byte) *ton.BlockIDExt { function convertBlockToShardHeader (line 204) | func convertBlockToShardHeader(block *tlb.Block, info *ton.BlockIDExt, s... method getShardBlocksHeader (line 221) | func (c *Connection) getShardBlocksHeader(ctx context.Context, shardBloc... function isNotReadyError (line 240) | func isNotReadyError(err error) bool { FILE: cmd/processor/main.go function main (line 25) | func main() { FILE: cmd/testutil/http.go type Client (line 18) | type Client struct method InitDeposits (line 37) | func (s *Client) InitDeposits(host string) (map[string][]string, error) { method GetAllAddresses (line 69) | func (s *Client) GetAllAddresses(host string) (api.GetAddressesRespons... method SendWithdrawal (line 101) | func (s *Client) SendWithdrawal(host, currency, destination string, am... method GetNewAddress (line 150) | func (s *Client) GetNewAddress(host, currency string) (string, error) { method GetWithdrawalStatus (line 196) | func (s *Client) GetWithdrawalStatus(host string, id int64) (api.Withd... function NewClient (line 26) | func NewClient(urlA, urlB, token, userID string) *Client { FILE: cmd/testutil/main.go constant depositsQty (line 21) | depositsQty = 10 constant tonWithdrawAmount (line 22) | tonWithdrawAmount = 550_000_000 constant jettonWithdrawAmount (line 23) | jettonWithdrawAmount = 550_000_000 constant tonMinCutoff (line 24) | tonMinCutoff = 10_000_000_000 function main (line 27) | func main() { FILE: cmd/testutil/utils.go type PayerProcessor (line 19) | type PayerProcessor struct method Start (line 183) | func (p *PayerProcessor) Start() { method balanceMonitor (line 191) | func (p *PayerProcessor) balanceMonitor() { method updateHotWalletBalances (line 238) | func (p *PayerProcessor) updateHotWalletBalances(ctx context.Context) ... method getDepositBalance (line 274) | func (p *PayerProcessor) getDepositBalance(ctx context.Context, d Depo... method startPayments (line 289) | func (p *PayerProcessor) startPayments(side PaymentSide) { method checkBalances (line 315) | func (p *PayerProcessor) checkBalances(side PaymentSide) bool { method withdrawToDeposits (line 336) | func (p *PayerProcessor) withdrawToDeposits(fromSide PaymentSide) ([]i... method waitWithdrawals (line 388) | func (p *PayerProcessor) waitWithdrawals(fromSide PaymentSide, ids []i... method validateWithdrawals (line 423) | func (p *PayerProcessor) validateWithdrawals(ctx context.Context, from... method loadTXs (line 496) | func (p *PayerProcessor) loadTXs(ctx context.Context, lastTxID TxID, a... constant TonLossForJettonExternalWithdrawal (line 32) | TonLossForJettonExternalWithdrawal int64 = 58_376_225 constant TonLossForJettonInternalWithdrawal (line 33) | TonLossForJettonInternalWithdrawal int64 = 55_306_226 constant TonLossForTonExternalWithdrawal (line 34) | TonLossForTonExternalWithdrawal int64 = 10_232_080 constant TonLossForTonInternalWithdrawal (line 35) | TonLossForTonInternalWithdrawal int64 = 8_034_998 type PaymentSide (line 38) | type PaymentSide constant SideA (line 41) | SideA PaymentSide = "A" constant SideB (line 42) | SideB PaymentSide = "B" type TxID (line 45) | type TxID struct type Deposit (line 50) | type Deposit struct type hotBalances (line 56) | type hotBalances struct method ReadBalance (line 69) | func (h *hotBalances) ReadBalance(walletSide PaymentSide, currency str... method WriteBalance (line 90) | func (h *hotBalances) WriteBalance(walletSide PaymentSide, currency st... function newHotBalances (line 62) | func newHotBalances() *hotBalances { function NewPayerProcessor (line 104) | func NewPayerProcessor( function convertDeposits (line 157) | func convertDeposits(bcClient *blockchain.Connection, deposits map[strin... type withdrawal (line 330) | type withdrawal struct function checkDoubleSpending (line 485) | func checkDoubleSpending(newUUIDs []uuid.UUID, knownUUIDs map[uuid.UUID]... function parseTX (line 531) | func parseTX(tx *tlb.Transaction) ([]withdrawal, []uuid.UUID, error) { function compareWithdrawals (line 579) | func compareWithdrawals(all, target []withdrawal) []withdrawal { function getLastTxID (line 596) | func getLastTxID(ctx context.Context, bcClient *blockchain.Connection, a... function predictLoss (line 611) | func predictLoss(currency string) float64 { FILE: cmd/testwebhook/main.go function main (line 11) | func main() { function getNotification (line 20) | func getNotification(resp http.ResponseWriter, req *http.Request) { function checkToken (line 35) | func checkToken(req *http.Request, token string) { FILE: config/config.go constant MaxJettonForwardTonAmount (line 16) | MaxJettonForwardTonAmount = 20_000_000 constant JettonProxyContractCode (line 36) | JettonProxyContractCode = "B5EE9C72410102010037000114FF00F4A413F4BCF2C80... constant MaxCommentLength (line 38) | MaxCommentLength = 1000 type Jetton (line 68) | type Jetton struct type Cutoffs (line 75) | type Cutoffs struct function GetConfig (line 82) | func GetConfig() { function parseJettonString (line 115) | func parseJettonString(s string) map[string]Jetton { function parseTonString (line 158) | func parseTonString(s string) Cutoffs { FILE: core/block_scanner.go type BlockScanner (line 23) | type BlockScanner struct method Start (line 87) | func (s *BlockScanner) Start() { method Stop (line 108) | func (s *BlockScanner) Stop() { method processBlock (line 112) | func (s *BlockScanner) processBlock(ctx context.Context, block ShardBl... method pushNotifications (line 134) | func (s *BlockScanner) pushNotifications(e BlockEvents) error { method pushNotification (line 157) | func (s *BlockScanner) pushNotification( method filterTXs (line 198) | func (s *BlockScanner) filterTXs( method processTXs (line 247) | func (s *BlockScanner) processTXs( method processTonHotWalletTXs (line 281) | func (s *BlockScanner) processTonHotWalletTXs(txs transactions) (Event... method processTonDepositWalletTXs (line 313) | func (s *BlockScanner) processTonDepositWalletTXs(txs transactions) (E... method processJettonDepositWalletTXs (line 364) | func (s *BlockScanner) processJettonDepositWalletTXs( method calculateJettonAmounts (line 413) | func (s *BlockScanner) calculateJettonAmounts( method failedWithdrawals (line 590) | func (s *BlockScanner) failedWithdrawals(inMap map[Address]struct{}, o... method processTonHotWalletExternalInMsg (line 630) | func (s *BlockScanner) processTonHotWalletExternalInMsg(tx *tlb.Transa... method processTonHotWalletProxyMsg (line 719) | func (s *BlockScanner) processTonHotWalletProxyMsg(msg *tlb.InternalMe... method processTonHotWalletInternalInMsg (line 753) | func (s *BlockScanner) processTonHotWalletInternalInMsg(tx *tlb.Transa... method processTonDepositWalletExternalInMsg (line 820) | func (s *BlockScanner) processTonDepositWalletExternalInMsg(tx *tlb.Tr... method processTonDepositWalletInternalInMsg (line 866) | func (s *BlockScanner) processTonDepositWalletInternalInMsg(tx *tlb.Tr... method processJettonDepositOutMsgs (line 906) | func (s *BlockScanner) processJettonDepositOutMsgs(tx *tlb.Transaction... method processJettonDepositInMsg (line 993) | func (s *BlockScanner) processJettonDepositInMsg(tx *tlb.Transaction) ... type transactions (line 32) | type transactions struct type jettonTransferNotificationMsg (line 38) | type jettonTransferNotificationMsg struct type JettonTransferMsg (line 44) | type JettonTransferMsg struct type HighLoadWalletExtMsgInfo (line 50) | type HighLoadWalletExtMsgInfo struct type incomeNotification (line 56) | type incomeNotification struct function NewBlockScanner (line 66) | func NewBlockScanner( function checkTxForSuccess (line 228) | func checkTxForSuccess(tx *tlb.Transaction) (bool, error) { function convertUnknownJettonTxs (line 442) | func convertUnknownJettonTxs(txs []*tlb.Transaction, addr Address, amoun... function decodeJettonTransferNotification (line 466) | func decodeJettonTransferNotification(msg *tlb.InternalMessage) (jettonT... function DecodeJettonTransfer (line 492) | func DecodeJettonTransfer(msg *tlb.InternalMessage) (JettonTransferMsg, ... function decodeJettonExcesses (line 521) | func decodeJettonExcesses(msg *tlb.InternalMessage) (int64, error) { function parseExternalMessage (line 540) | func parseExternalMessage(msg *tlb.ExternalMessage) ( function getHighLoadWalletExtMsgInfo (line 605) | func getHighLoadWalletExtMsgInfo(extMsg *tlb.ExternalMessage) (HighLoadW... FILE: core/models.go constant TonSymbol (line 20) | TonSymbol = "TON" constant DefaultWorkchain (line 21) | DefaultWorkchain = 0 constant SideHotWallet (line 27) | SideHotWallet IncomeSide = "hot_wallet" constant SideDeposit (line 28) | SideDeposit IncomeSide = "deposit" constant ServiceWithdrawalEvent (line 34) | ServiceWithdrawalEvent EventName = "service withdrawal" constant InternalWithdrawalEvent (line 35) | InternalWithdrawalEvent EventName = "internal withdrawal" constant ExternalWithdrawalEvent (line 36) | ExternalWithdrawalEvent EventName = "external withdrawal" constant InitEvent (line 37) | InitEvent EventName = "initialization" type WalletType (line 40) | type WalletType constant TonHotWallet (line 43) | TonHotWallet WalletType = "ton_hot" constant JettonHotWallet (line 44) | JettonHotWallet WalletType = "jetton_hot" constant TonDepositWallet (line 45) | TonDepositWallet WalletType = "ton_deposit" constant JettonDepositWallet (line 46) | JettonDepositWallet WalletType = "jetton_deposit" constant JettonOwner (line 47) | JettonOwner WalletType = "owner" type WithdrawalStatus (line 50) | type WithdrawalStatus constant PendingStatus (line 53) | PendingStatus WithdrawalStatus = "pending" constant ProcessingStatus (line 54) | ProcessingStatus WithdrawalStatus = "processing" constant ProcessedStatus (line 55) | ProcessedStatus WithdrawalStatus = "processed" constant FailedStatus (line 56) | FailedStatus WithdrawalStatus = "failed" type Address (line 64) | type Address method Scan (line 67) | func (a *Address) Scan(src interface{}) error { method Value (line 80) | func (a Address) Value() (driver.Value, error) { method ToTonutilsAddressStd (line 85) | func (a Address) ToTonutilsAddressStd(flags byte) *address.Address { method ToUserFormat (line 90) | func (a Address) ToUserFormat() string { method ToBytes (line 97) | func (a Address) ToBytes() []byte { function TonutilsAddressToUserFormat (line 101) | func TonutilsAddressToUserFormat(addr *address.Address) string { function AddressFromBytes (line 107) | func AddressFromBytes(data []byte) (Address, error) { function AddressFromTonutilsAddress (line 116) | func AddressFromTonutilsAddress(addr *address.Address) (Address, error) { function AddressMustFromTonutilsAddress (line 126) | func AddressMustFromTonutilsAddress(addr *address.Address) Address { type AddressInfo (line 134) | type AddressInfo struct type JettonWallet (line 140) | type JettonWallet struct type OwnerWallet (line 145) | type OwnerWallet struct type WalletData (line 150) | type WalletData struct type WithdrawalRequest (line 158) | type WithdrawalRequest struct type WithdrawalData (line 170) | type WithdrawalData struct type ServiceWithdrawalRequest (line 177) | type ServiceWithdrawalRequest struct type ServiceWithdrawalTask (line 182) | type ServiceWithdrawalTask struct type ExternalWithdrawalTask (line 189) | type ExternalWithdrawalTask struct type InternalWithdrawal (line 199) | type InternalWithdrawal struct type SendingConfirmation (line 208) | type SendingConfirmation struct type ExternalWithdrawal (line 214) | type ExternalWithdrawal struct type JettonWithdrawalConfirmation (line 225) | type JettonWithdrawalConfirmation struct type InternalIncome (line 229) | type InternalIncome struct type ExternalIncome (line 240) | type ExternalIncome struct type Events (line 251) | type Events struct method Append (line 260) | func (e *Events) Append(ae Events) { type BlockEvents (line 269) | type BlockEvents struct type InternalWithdrawalTask (line 274) | type InternalWithdrawalTask struct type TotalIncome (line 281) | type TotalIncome struct type TotalWithdrawalsAmount (line 287) | type TotalWithdrawalsAmount struct function NewCoins (line 294) | func NewCoins(int *big.Int) Coins { function ZeroCoins (line 298) | func ZeroCoins() Coins { type ShardBlockHeader (line 304) | type ShardBlockHeader struct type storage (line 313) | type storage interface type blockchain (line 338) | type blockchain interface type blocksTracker (line 350) | type blocksTracker interface type Notificator (line 355) | type Notificator interface FILE: core/proxy.go type JettonProxy (line 16) | type JettonProxy struct method Address (line 63) | func (p *JettonProxy) Address() *address.Address { method StateInit (line 68) | func (p *JettonProxy) StateInit() *tlb.StateInit { method BuildMessage (line 73) | func (p *JettonProxy) BuildMessage(destination *address.Address, body ... function NewJettonProxy (line 23) | func NewJettonProxy(subwalletId uint32, owner *address.Address) (*Jetton... function buildJettonProxyStateInit (line 42) | func buildJettonProxyStateInit(subwalletId uint32, owner *address.Addres... FILE: core/wallets.go type Wallets (line 22) | type Wallets struct function InitWallets (line 32) | func InitWallets( function initTonHotWallet (line 79) | func initTonHotWallet( function initJettonHotWallet (line 143) | func initJettonHotWallet( function buildComment (line 199) | func buildComment(comment string) *cell.Cell { function LoadComment (line 207) | func LoadComment(cell *cell.Cell) string { function WithdrawTONs (line 226) | func WithdrawTONs(ctx context.Context, from, to *wallet.Wallet, comment ... function WithdrawJettons (line 246) | func WithdrawJettons( function MakeJettonTransferMessage (line 278) | func MakeJettonTransferMessage( function decodeBinaryComment (line 318) | func decodeBinaryComment(comment string) (*cell.Cell, error) { function BuildTonWithdrawalMessage (line 344) | func BuildTonWithdrawalMessage(t ExternalWithdrawalTask) *wallet.Message { function BuildJettonWithdrawalMessage (line 371) | func BuildJettonWithdrawalMessage( function BuildJettonProxyWithdrawalMessage (line 399) | func BuildJettonProxyWithdrawalMessage( function buildJettonProxyServiceTonWithdrawalMessage (line 434) | func buildJettonProxyServiceTonWithdrawalMessage( function buildTonFillMessage (line 457) | func buildTonFillMessage( FILE: core/withdrawal_processor.go type WithdrawalsProcessor (line 20) | type WithdrawalsProcessor struct method Start (line 64) | func (p *WithdrawalsProcessor) Start() { method Stop (line 71) | func (p *WithdrawalsProcessor) Stop() { method startWithdrawalsProcessor (line 75) | func (p *WithdrawalsProcessor) startWithdrawalsProcessor() { method buildWithdrawalMessages (line 130) | func (p *WithdrawalsProcessor) buildWithdrawalMessages(ctx context.Con... method getHotWalletBalances (line 222) | func (p *WithdrawalsProcessor) getHotWalletBalances(ctx context.Contex... method buildJettonInternalWithdrawalMessage (line 257) | func (p *WithdrawalsProcessor) buildJettonInternalWithdrawalMessage( method buildServiceWithdrawalMessage (line 292) | func (p *WithdrawalsProcessor) buildServiceWithdrawalMessage( method buildServiceFilling (line 315) | func (p *WithdrawalsProcessor) buildServiceFilling( method buildServiceTonWithdrawal (line 356) | func (p *WithdrawalsProcessor) buildServiceTonWithdrawal( method buildServiceJettonWithdrawal (line 385) | func (p *WithdrawalsProcessor) buildServiceJettonWithdrawal( method buildExternalWithdrawalMessage (line 444) | func (p *WithdrawalsProcessor) buildExternalWithdrawalMessage(wt Exter... method startExpirationProcessor (line 452) | func (p *WithdrawalsProcessor) startExpirationProcessor() { method startInternalTonWithdrawalsProcessor (line 471) | func (p *WithdrawalsProcessor) startInternalTonWithdrawalsProcessor() { method withdrawTONsFromDeposit (line 509) | func (p *WithdrawalsProcessor) withdrawTONsFromDeposit(ctx context.Con... method serviceWithdrawJettons (line 545) | func (p *WithdrawalsProcessor) serviceWithdrawJettons(ctx context.Cont... method waitSync (line 584) | func (p *WithdrawalsProcessor) waitSync() { method makeColdWalletWithdrawals (line 604) | func (p *WithdrawalsProcessor) makeColdWalletWithdrawals(ctx context.C... type internalWithdrawal (line 29) | type internalWithdrawal struct type serviceWithdrawal (line 34) | type serviceWithdrawal struct type withdrawals (line 40) | type withdrawals struct function NewWithdrawalsProcessor (line 47) | func NewWithdrawalsProcessor( function decreaseBalances (line 240) | func decreaseBalances(balances map[string]*big.Int, currency string, amo... FILE: db/db.go type Connection (line 24) | type Connection struct method GetWalletType (line 58) | func (c *Connection) GetWalletType(address core.Address) (core.WalletT... method GetUserID (line 63) | func (c *Connection) GetUserID(address core.Address) (string, bool) { method GetOwner (line 69) | func (c *Connection) GetOwner(address core.Address) *core.Address { method GetWalletTypeByTonutilsAddress (line 77) | func (c *Connection) GetWalletTypeByTonutilsAddress(address *address.A... method GetLastSubwalletID (line 88) | func (c *Connection) GetLastSubwalletID(ctx context.Context) (uint32, ... method SaveTonWallet (line 97) | func (c *Connection) SaveTonWallet(ctx context.Context, walletData cor... method GetJettonWallet (line 118) | func (c *Connection) GetJettonWallet(ctx context.Context, address core... method SaveJettonWallet (line 136) | func (c *Connection) SaveJettonWallet( method GetTonWalletsAddresses (line 201) | func (c *Connection) GetTonWalletsAddresses( method GetJettonOwnersAddresses (line 236) | func (c *Connection) GetJettonOwnersAddresses( method LoadAddressBook (line 272) | func (c *Connection) LoadAddressBook(ctx context.Context) error { method saveInternalIncome (line 363) | func (c *Connection) saveInternalIncome(ctx context.Context, tx pgx.Tx... method SaveWithdrawalRequest (line 403) | func (c *Connection) SaveWithdrawalRequest(ctx context.Context, w core... method SaveServiceWithdrawalRequest (line 435) | func (c *Connection) SaveServiceWithdrawalRequest(ctx context.Context,... method UpdateServiceWithdrawalRequest (line 454) | func (c *Connection) UpdateServiceWithdrawalRequest( method IsWithdrawalRequestUnique (line 474) | func (c *Connection) IsWithdrawalRequestUnique(ctx context.Context, w ... method GetExternalWithdrawalTasks (line 493) | func (c *Connection) GetExternalWithdrawalTasks(ctx context.Context, l... method GetServiceHotWithdrawalTasks (line 527) | func (c *Connection) GetServiceHotWithdrawalTasks(ctx context.Context,... method GetServiceDepositWithdrawalTasks (line 559) | func (c *Connection) GetServiceDepositWithdrawalTasks(ctx context.Cont... method SaveInternalWithdrawalTask (line 659) | func (c *Connection) SaveInternalWithdrawalTask( method SaveParsedBlockData (line 681) | func (c *Connection) SaveParsedBlockData(ctx context.Context, events c... method GetTonInternalWithdrawalTasks (line 731) | func (c *Connection) GetTonInternalWithdrawalTasks(ctx context.Context... method GetJettonInternalWithdrawalTasks (line 775) | func (c *Connection) GetJettonInternalWithdrawalTasks( method CreateExternalWithdrawals (line 931) | func (c *Connection) CreateExternalWithdrawals( method GetTonHotWalletAddress (line 969) | func (c *Connection) GetTonHotWalletAddress(ctx context.Context) (core... method GetLastSavedBlockID (line 982) | func (c *Connection) GetLastSavedBlockID(ctx context.Context) (*ton.Bl... method SetExpired (line 1010) | func (c *Connection) SetExpired(ctx context.Context) error { method IsActualBlockData (line 1069) | func (c *Connection) IsActualBlockData(ctx context.Context) (bool, int... method IsInProgressInternalWithdrawalRequest (line 1087) | func (c *Connection) IsInProgressInternalWithdrawalRequest( method GetExternalWithdrawalStatus (line 1118) | func (c *Connection) GetExternalWithdrawalStatus(ctx context.Context, ... method GetIncome (line 1170) | func (c *Connection) GetIncome( method GetIncomeHistory (line 1227) | func (c *Connection) GetIncomeHistory( method GetIncomeByTx (line 1297) | func (c *Connection) GetIncomeByTx( method GetTotalWithdrawalAmounts (line 1346) | func (c *Connection) GetTotalWithdrawalAmounts(ctx context.Context, cu... type addressBook (line 29) | type addressBook struct method get (line 34) | func (ab *addressBook) get(address core.Address) (core.AddressInfo, bo... method put (line 41) | func (ab *addressBook) put(address core.Address, t core.AddressInfo) { function NewConnection (line 47) | func NewConnection(URI string) (*Connection, error) { function stripInvalidUTF8 (line 324) | func stripInvalidUTF8(s string) string { function saveExternalIncome (line 337) | func saveExternalIncome(ctx context.Context, tx pgx.Tx, inc core.Externa... function saveBlock (line 591) | func saveBlock(ctx context.Context, tx pgx.Tx, block core.ShardBlockHead... function updateInternalWithdrawal (line 610) | func updateInternalWithdrawal(ctx context.Context, tx pgx.Tx, w core.Int... function applyJettonWithdrawalConfirmation (line 827) | func applyJettonWithdrawalConfirmation( function updateExternalWithdrawal (line 841) | func updateExternalWithdrawal(ctx context.Context, tx pgx.Tx, w core.Ext... function applySendingConfirmations (line 907) | func applySendingConfirmations(ctx context.Context, tx pgx.Tx, w core.Se... FILE: db/db_test.go function execMultiStatement (line 15) | func execMultiStatement(c *Connection, ctx context.Context, query string... function migrateUp (line 35) | func migrateUp(c *Connection, t *testing.T, source string) error { function migrateDown (line 56) | func migrateDown(c *Connection, t *testing.T) { function init (line 67) | func init() { function connect (line 74) | func connect(t *testing.T) *Connection { function Test_NewConnection (line 82) | func Test_NewConnection(t *testing.T) { function Test_GetTonInternalWithdrawalTasks (line 86) | func Test_GetTonInternalWithdrawalTasks(t *testing.T) { function Test_GetJettonInternalWithdrawalTasks (line 111) | func Test_GetJettonInternalWithdrawalTasks(t *testing.T) { function Test_GetJettonInternalWithdrawalTasksForbidden (line 139) | func Test_GetJettonInternalWithdrawalTasksForbidden(t *testing.T) { function Test_SetExpired (line 167) | func Test_SetExpired(t *testing.T) { function TestStripInvalidUTF8 (line 260) | func TestStripInvalidUTF8(t *testing.T) { FILE: deploy/db/01_init.up.sql type payments (line 5) | CREATE TABLE IF NOT EXISTS payments.ton_wallets type ton_wallets_address_index (line 14) | CREATE INDEX IF NOT EXISTS ton_wallets_address_index type ton_wallets_type_index (line 17) | CREATE INDEX IF NOT EXISTS ton_wallets_type_index type ton_wallets_user_id_index (line 20) | CREATE INDEX IF NOT EXISTS ton_wallets_user_id_index type payments (line 23) | CREATE TABLE IF NOT EXISTS payments.jetton_wallets type jetton_wallets_subwallet_id_index (line 33) | CREATE INDEX IF NOT EXISTS jetton_wallets_subwallet_id_index type payments (line 36) | CREATE TABLE IF NOT EXISTS payments.internal_incomes type internal_incomes_deposit_address_index (line 46) | CREATE INDEX IF NOT EXISTS internal_incomes_deposit_address_index type payments (line 49) | CREATE TABLE IF NOT EXISTS payments.external_withdrawals type external_withdrawals_expired_at_index (line 64) | CREATE INDEX IF NOT EXISTS external_withdrawals_expired_at_index type external_withdrawals_msg_uuid_index (line 67) | CREATE INDEX IF NOT EXISTS external_withdrawals_msg_uuid_index type external_withdrawals_address_index (line 70) | CREATE INDEX IF NOT EXISTS external_withdrawals_address_index type external_withdrawals_query_id_index (line 73) | CREATE INDEX IF NOT EXISTS external_withdrawals_query_id_index type payments (line 76) | CREATE TABLE IF NOT EXISTS payments.withdrawal_requests type withdrawal_requests_user_id_index (line 95) | CREATE INDEX IF NOT EXISTS withdrawal_requests_user_id_index type withdrawal_requests_user_query_id_index (line 98) | CREATE INDEX IF NOT EXISTS withdrawal_requests_user_query_id_index type withdrawal_requests_dest_address_index (line 101) | CREATE INDEX IF NOT EXISTS withdrawal_requests_dest_address_index type payments (line 104) | CREATE TABLE IF NOT EXISTS payments.external_incomes type external_incomes_deposit_address_index (line 116) | CREATE INDEX IF NOT EXISTS external_incomes_deposit_address_index type payments (line 119) | CREATE TABLE IF NOT EXISTS payments.block_data type block_data_seqno_index (line 130) | CREATE INDEX IF NOT EXISTS block_data_seqno_index type payments (line 133) | CREATE TABLE IF NOT EXISTS payments.internal_withdrawals type internal_withdrawals_from_address_index (line 148) | CREATE INDEX IF NOT EXISTS internal_withdrawals_from_address_index type internal_withdrawals_since_lt_index (line 151) | CREATE INDEX IF NOT EXISTS internal_withdrawals_since_lt_index type internal_withdrawals_expired_at_index (line 154) | CREATE INDEX IF NOT EXISTS internal_withdrawals_expired_at_index type payments (line 157) | CREATE TABLE IF NOT EXISTS payments.service_withdrawal_requests FILE: metrics/metrics.go type counter (line 10) | type counter struct method Inc (line 15) | func (c *counter) Inc() { method Add (line 19) | func (c *counter) Add(n uint64) { method Print (line 23) | func (c *counter) Print(w io.Writer) error { type printer (line 34) | type printer interface FILE: queue/queue.go type AmqpClient (line 9) | type AmqpClient struct method declareExchange (line 38) | func (c *AmqpClient) declareExchange(exchangeName string) error { method Publish (line 56) | func (c *AmqpClient) Publish(payload any) error { function NewAmqpClient (line 18) | func NewAmqpClient(uri string, enabled bool, queueName string) (*AmqpCli... FILE: webhook/webhook.go type Client (line 12) | type Client struct method Publish (line 33) | func (s *Client) Publish(payload any) error { function NewWebhookClient (line 19) | func NewWebhookClient(uri string, token string) (*Client, error) { function send (line 57) | func send(client *http.Client, request *http.Request) error {