Documentation ¶
Index ¶
Constants ¶
View Source
const JettonProxyContractCode = "" /* 140-byte string literal not displayed */
JettonProxyContractCode source code at https://github.com/gobicycle/ton-proxy-contract
View Source
const MaxCommentLength = 1000 // qty in chars
View Source
const MaxJettonForwardTonAmount = 20_000_000
Variables ¶
View Source
var ( JettonTransferTonAmount = tlb.FromNanoTONU(100_000_000) JettonForwardAmount = tlb.FromNanoTONU(MaxJettonForwardTonAmount) // must be < JettonTransferTonAmount JettonInternalForwardAmount = tlb.FromNanoTONU(1) DefaultHotWalletHysteresis = decimal.NewFromFloat(0.95) // `hot_wallet_residual_balance` = `hot_wallet_max_balance` * `hysteresis` ExternalMessageLifetime = 50 * time.Second ExternalWithdrawalPeriod = 80 * time.Second // must be ExternalWithdrawalPeriod > ExternalMessageLifetime and some time for balance update InternalWithdrawalPeriod = 80 * time.Second ExpirationProcessorPeriod = 5 * time.Second AllowableBlockchainLagging = 40 * time.Second // TODO: use env var AllowableServiceToNodeTimeDiff = 2 * time.Second )
View Source
var Config = struct { LiteServer string `env:"LITESERVER,required"` LiteServerKey string `env:"LITESERVER_KEY,required"` Seed string `env:"SEED,required"` DatabaseURI string `env:"DB_URI,required"` APIPort int `env:"API_PORT,required"` APIToken string `env:"API_TOKEN,required"` Testnet bool `env:"IS_TESTNET" envDefault:"true"` ColdWalletString string `env:"COLD_WALLET"` JettonString string `env:"JETTONS"` TonString string `env:"TON_CUTOFFS,required"` IsDepositSideCalculation bool `env:"DEPOSIT_SIDE_BALANCE" envDefault:"true"` // TODO: rename to DEPOSIT_SIDE_CALCULATION QueueURI string `env:"QUEUE_URI"` QueueName string `env:"QUEUE_NAME"` QueueEnabled bool `env:"QUEUE_ENABLED" envDefault:"false"` ProofCheckEnabled bool `env:"PROOF_CHECK_ENABLED" envDefault:"false"` NetworkConfigUrl string `env:"NETWORK_CONFIG_URL"` WebhookEndpoint string `env:"WEBHOOK_ENDPOINT"` WebhookToken string `env:"WEBHOOK_TOKEN"` AllowableLaggingSec int `env:"ALLOWABLE_LAG"` ForwardTonAmount int `env:"FORWARD_TON_AMOUNT" envDefault:"1"` Jettons map[string]Jetton Ton Cutoffs ColdWallet *address.Address BlockchainConfig *boc.Cell }{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.