Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestnetConfig = "" /* 7940-byte string literal not displayed */ MainnetConfig = "" /* 62348-byte string literal not displayed */ )
View Source
const DefaultJettonForwardTonAmount = 20_000_000
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
Variables ¶
View Source
var ( JettonTransferTonAmount = tlb.FromNanoTONU(100_000_000) JettonForwardAmount = tlb.FromNanoTONU(DefaultJettonForwardTonAmount) // must be < JettonTransferTonAmount 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"` APIHost string `env:"API_HOST" envDefault:"0.0.0.0:8081"` 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"` Jettons map[string]Jetton Ton Cutoffs ColdWallet *address.Address BlockchainConfig *boc.Cell }{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.