Documentation
¶
Index ¶
Constants ¶
View Source
const ( PlugAutoCompleteWallet = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/wallet_plug.png" PlugAutoCompleteCollection = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/collection_plug.png" PlugAutoCompleteDomain = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/domain_plug.png" PlugAutoCompleteAccount = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/domain_plug.png" PlugAutoCompleteJetton = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/jetton_plug.png" Placeholder = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/token_placeholder.png" TonSymbol = "https://raw.githubusercontent.com/tonkeeper/opentonapi/master/pkg/references/media/ton_symbol.png" )
View Source
const AppDomain string = "tonapi.ton"
use for checking ton-connect proofs
View Source
const DefaultExtraCurrencyDecimals = 9
View Source
const LiquidImplementationsUrl = "https://tonstakers.com/"
View Source
const TFPoolImplementationsName = "TON Nominators"
View Source
const TFPoolImplementationsURL = "https://tonvalidators.org/"
View Source
const TonstakersImplementationsName = "Tonstakers"
View Source
const WhalesPoolImplementationsName = "TON Whales"
View Source
const WhalesPoolImplementationsURL = "https://tonwhales.com/staking"
Variables ¶
View Source
var ( JUsdtSlp = ton.MustParseAccountID("EQAlM_4LY6sP1QOur5aGdFBSa5ma6nqwldflmm9mshq7vCLB") TonSlp = ton.MustParseAccountID("EQCNY2AQ3ZDYwJAqx_nzl9i9Xhd_Ex7izKJM6JTxXRnO6n1F") UsdtSlp = ton.MustParseAccountID("EQCup4xxCulCcNwmOocM9HtDYPU8xe0449tQLp6a-5BLEegW") NotSlp = ton.MustParseAccountID("EQAqtjTPy9vjuXUDaR4HgMPQfJBpIQorJLmRuk-ZQbRT-eiY") )
View Source
var ( PTonV1 = ton.MustParseAccountID("EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez") PTonV2 = ton.MustParseAccountID("EQBnGWMCf3-FZZq1W4IWcWiGAc3PHuZ0_H-7sad2oY00o83S") )
View Source
var BemoAccountNew = ton.MustParseAccountID("EQCSxGZPHqa3TtnODgMan8CEM0jf6HpY-uon_NMeFgjKqkEY")
View Source
var BemoAccountOld = ton.MustParseAccountID("EQDNhy-nxYFgUqzfUzImBEP67JqsyMIcyk2S5_RwNNEYku0k")
View Source
var DomainSuffixes = map[tongo.AccountID]string{ RootDotTon: ".ton", RootTelegram: "", ton.MustParseAccountID("0:d9255340783403c635169d00aaaaaf2ab85fbb5d32c707b39a42157b7c347440"): ".dolboeb.t.me", ton.MustParseAccountID("0:561b81016cf0efe178fbc653f0cf177b852c87333c302c1e4eeab63ed0105e6a"): ".vipx.ton", }
View Source
var RootDotTon = tongo.MustParseAccountID("0:b774d95eb20543f186c06b371ab88ad704f7e256130caf96189368a7d0cb6ccf")
View Source
var RootTelegram = tongo.MustParseAccountID("EQCA14o1-VWhS2efqoh_9M1b_A9DtKTuoqfmkn83AbJzwnPi")
View Source
var SlpAccounts = map[SlpType]ton.AccountID{ JUsdtSlpType: ton.MustParseAccountID("EQDynReiCeK8xlKRbYArpp4jyzZuF6-tYfhFM0O5ulOs5H0L"), TonSlpType: ton.MustParseAccountID("EQDpJnZP89Jyxz3euDaXXFUhwCWtaOeRmiUJTi3jGYgF8fnj"), UsdtSlpType: ton.MustParseAccountID("EQAz6ehNfL7_8NI7OVh1Qg46HsuC4kFpK-icfqK9J3Frd6CJ"), NotSlpType: ton.MustParseAccountID("EQAG8_BzwlWkmqb9zImr9RJjjgZZCLMOQXP9PR0B1PYHvfSS"), }
View Source
var TFLiquidPool = ton.MustParseAccountID("0:a45b17f28409229b78360e3290420f13e4fe20f90d7e2bf8c4ac6703259e22fa")
View Source
var TFLiquidPoolCodeHash = tongo.MustParseHash("192535677eed65c20ac387efe4dd7415ad9ebb9349103e87c60e592538c9dcf3")
View Source
var TFPoolCodeHash = tongo.MustParseHash("9A3EC14BC098F6B44064C305222CAEA2800F17DDA85EE6A8198A7095EDE10DCF")
validated nominators contract code hash
View Source
var TonstakersAccountPool = ton.MustParseAccountID("EQCkWxfyhAkim3g2DjKQQg8T5P4g-Q1-K_jErGcDJZ4i-vqR")
View Source
var TonstakersSocialLinks = []string{"https://t.me/thetonstakers", "https://twitter.com/tonstakers"}
View Source
var USDT = ton.MustParseAccountID("EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs")
View Source
var WhalesPools = map[tongo.AccountID]WhalesPoolInfo{ tongo.MustParseAccountID("EQBYtJtQzU3M-AI23gFM91tW6kYlblVtjej59gS8P3uJ_ePN"): { Name: "ePN", Queue: "Queue #1", AvailableFor: closed, }, tongo.MustParseAccountID("EQCpCjQigwF27KQ588VhQv9jm_DUuL_ZLY3HCf_9yZW5_ePN"): { Name: "ePN", Queue: "Queue #1", AvailableFor: closed, }, tongo.MustParseAccountID("EQDFvnxuyA2ogNPOoEj1lu968U4PP8_FzJfrOWUsi_o1CLUB"): { Name: "Whales Club", Queue: "Queue #1", AvailableFor: closed, }, tongo.MustParseAccountID("EQA_cc5tIQ4haNbMVFUD1d0bNRt17S7wgWEqfP_xEaTACLUB"): { Name: "Whales Club", Queue: "Queue #2", AvailableFor: closed, }, tongo.MustParseAccountID("EQCkR1cGmnsE45N4K0otPl5EnxnRakmGqeJUNua5fkWhales"): { Name: "Whales Nominators", Queue: "Queue #1", AvailableFor: closed, }, tongo.MustParseAccountID("EQCY4M6TZYnOMnGBQlqi_nyeaIB1LeBFfGgP4uXQ1VWhales"): { Name: "Whales Nominators", Queue: "Queue #2", AvailableFor: closed, }, tongo.MustParseAccountID("EQAA_5_dizuA1w6OpzTSYvXhvUwYTDNTW_MZDdZ0CGKeeper"): { Name: "Tonkeeper", Queue: "Queue #1", AvailableFor: open, }, tongo.MustParseAccountID("EQDvvBmP3wUcjoXPY1jHfT4-fgb294imVYH5EHdLnAKeeper"): { Name: "Tonkeeper", Queue: "Queue #2", AvailableFor: open, }, tongo.MustParseAccountID("EQDhGXtbR6ejNQucRcoyzwiaF2Ke-5T8reptsiuZ_mLockup"): { Name: "Lockup", Queue: "Queue #1", AvailableFor: closed, }, tongo.MustParseAccountID("EQDg5ThqQ1t9eriIv2HkH6XUiUs_Wd4YmXZeGpnPzwLockup"): { Name: "Lockup", Queue: "Queue #2", AvailableFor: closed, }, }
Functions ¶
This section is empty.
Types ¶
type ExtendedCode ¶
type ExtendedCode int64
const ( ErrGaslessJettonIsNotSupported ExtendedCode = iota + 40_000 ErrGaslessTemporary ErrGaslessSignature ErrGaslessPendingMessages ErrGaslessBadRequest ErrGaslessOperationIsNotSupported ErrGaslessUserDisabled ErrGaslessEstimatingCommission ErrGaslessCommission ErrGaslessBalance ErrGaslessBootstrapTransferDisabled ErrGaslessUnknown ErrGaslessNotEnoughJettons ErrGaslessUnsupportedExtension )
type ExtraCurrencyMeta ¶
func GetExtraCurrencyMeta ¶
func GetExtraCurrencyMeta(id int32) ExtraCurrencyMeta
Click to show internal directories.
Click to hide internal directories.