Documentation ¶
Index ¶
- Constants
- type AccountAddress
- type AccountRevisionList
- type AccountState
- type Action
- type ActionDns
- type ActionMsg
- type ActionNoop
- type AdnlAddress
- type Bip39Hints
- type BoolFalse
- type BoolTrue
- type Bytes
- type Client
- func (client *Client) AddLogMessage(text string, verbosityLevel int32) (*Ok, error)
- func (client *Client) ChangeLocalPassword(inputKey InputKey, newLocalPassword SecureBytes) (*Key, error)
- func (client *Client) Close() (*Ok, error)
- func (client *Client) CreateNewKey(localPassword SecureBytes, mnemonicPassword SecureBytes, ...) (*Key, error)
- func (client *Client) CreateQuery(action Action, address AccountAddress, privateKey InputKey, timeout int32) (*QueryInfo, error)
- func (client *Client) Decrypt(encryptedData SecureBytes, secret SecureBytes) (*Data, error)
- func (client *Client) DeleteAllKeys() (*Ok, error)
- func (client *Client) DeleteKey(key Key) (*Ok, error)
- func (client *Client) Destroy()
- func (client *Client) DnsResolve(accountAddress AccountAddress, category int32, name string, ttl int32) (*DnsResolved, error)
- func (client *Client) Encrypt(decryptedData SecureBytes, secret SecureBytes) (*Data, error)
- func (client *Client) ExportEncryptedKey(inputKey InputKey, keyPassword SecureBytes) (*ExportedEncryptedKey, error)
- func (client *Client) ExportKey(inputKey InputKey) (*ExportedKey, error)
- func (client *Client) ExportPemKey(inputKey InputKey, keyPassword SecureBytes) (*ExportedPemKey, error)
- func (client *Client) ExportUnencryptedKey(inputKey InputKey) (*ExportedUnencryptedKey, error)
- func (client *Client) GetAccountAddress(initialAccountState InitialAccountState, revision int32) (*AccountAddress, error)
- func (client *Client) GetAccountState(accountAddress AccountAddress) (*FullAccountState, error)
- func (client *Client) GetBip39Hints(prefix string) (*Bip39Hints, error)
- func (client *Client) GetLogStream() (LogStream, error)
- func (client *Client) GetLogTagVerbosityLevel(tag string) (*LogVerbosityLevel, error)
- func (client *Client) GetLogTags() (*LogTags, error)
- func (client *Client) GetLogVerbosityLevel() (*LogVerbosityLevel, error)
- func (client *Client) ImportEncryptedKey(exportedEncryptedKey ExportedEncryptedKey, keyPassword SecureBytes, ...) (*Key, error)
- func (client *Client) ImportKey(exportedKey ExportedKey, localPassword SecureBytes, ...) (*Key, error)
- func (client *Client) ImportPemKey(exportedKey ExportedPemKey, keyPassword SecureBytes, localPassword SecureBytes) (*Key, error)
- func (client *Client) ImportUnencryptedKey(exportedUnencryptedKey ExportedUnencryptedKey, localPassword SecureBytes) (*Key, error)
- func (client *Client) Init(options Options) (*OptionsInfo, error)
- func (client *Client) Kdf(iterations int32, password SecureBytes, salt SecureBytes) (*Data, error)
- func (client *Client) LiteServerGetInfo() (*LiteServerInfo, error)
- func (client *Client) OnLiteServerQueryError(error Error, id JSONInt64) (*Ok, error)
- func (client *Client) OnLiteServerQueryResult(bytes []byte, id JSONInt64) (*Ok, error)
- func (client *Client) OptionsSetConfig(config Config) (*OptionsConfigInfo, error)
- func (client *Client) OptionsValidateConfig(config Config) (*OptionsConfigInfo, error)
- func (client *Client) PackAccountAddress(accountAddress UnpackedAccountAddress) (*AccountAddress, error)
- func (client *Client) QueryEstimateFees(id int64, ignoreChksig bool) (*QueryFees, error)
- func (client *Client) QueryForget(id int64) (*Ok, error)
- func (client *Client) QueryGetInfo(id int64) (*QueryInfo, error)
- func (client *Client) QuerySend(id int64) (*Ok, error)
- func (client *Client) RawCreateAndSendMessage(data []byte, destination AccountAddress, initialAccountState []byte) (*Ok, error)
- func (client *Client) RawCreateQuery(body []byte, destination AccountAddress, initCode []byte, initData []byte) (*QueryInfo, error)
- func (client *Client) RawGetAccountState(accountAddress AccountAddress) (*RawFullAccountState, error)
- func (client *Client) RawGetTransactions(accountAddress AccountAddress, fromTransactionId InternalTransactionId, ...) (*RawTransactions, error)
- func (client *Client) RawSendMessage(body []byte) (*Ok, error)
- func (client *Client) RunTests(dir string) (*Ok, error)
- func (client *Client) SetLogStream(logStream LogStream) (*Ok, error)
- func (client *Client) SetLogTagVerbosityLevel(newVerbosityLevel int32, tag string) (*Ok, error)
- func (client *Client) SetLogVerbosityLevel(newVerbosityLevel int32) (*Ok, error)
- func (client *Client) SmcGetCode(id int64) (*TvmCell, error)
- func (client *Client) SmcGetData(id int64) (*TvmCell, error)
- func (client *Client) SmcGetState(id int64) (*TvmCell, error)
- func (client *Client) SmcLoad(accountAddress AccountAddress) (*SmcInfo, error)
- func (client *Client) SmcRunGetMethod(id int64, method SmcMethodId, stack []TvmStackEntry) (*SmcRunResult, error)
- func (client *Client) Sync(syncState SyncState) (string, error)
- func (client *Client) UnpackAccountAddress(accountAddress string) (*UnpackedAccountAddress, error)
- func (client *Client) WithBlock(function Function, id TonBlockIdExt) (*Object, error)
- type Config
- type Data
- type DnsAccountState
- type DnsAction
- type DnsActionDelete
- type DnsActionDeleteAll
- type DnsActionSet
- type DnsEntry
- type DnsEntryData
- type DnsEntryDataAdnlAddress
- type DnsEntryDataNextResolver
- type DnsEntryDataSmcAddress
- type DnsEntryDataText
- type DnsEntryDataUnknown
- type DnsInitialAccountState
- type DnsResolved
- type Double
- type Error
- type ExportedEncryptedKey
- type ExportedKey
- type ExportedPemKey
- type ExportedUnencryptedKey
- type Fees
- type FullAccountState
- type Function
- type GenericAccountState
- type InitialAccountState
- type InputKey
- type InputKeyFake
- type InputKeyRegular
- type Int32
- type Int53
- type Int64
- type InternalTransactionId
- type JSONInt64
- type Key
- type KeyStoreType
- type KeyStoreTypeDirectory
- type KeyStoreTypeInMemory
- type LiteServerInfo
- type LogStream
- type LogStreamDefault
- type LogStreamEmpty
- type LogStreamEnum
- type LogStreamFile
- type LogTags
- type LogVerbosityLevel
- type MsgData
- type MsgDataEncryptedText
- type MsgDataText
- type MsgMessage
- type Object
- type Ok
- type Options
- type OptionsConfigInfo
- type OptionsInfo
- type QueryFees
- type QueryInfo
- type RawAccountState
- type RawFullAccountState
- type RawInitialAccountState
- type RawMessage
- type RawTransaction
- type RawTransactions
- type SecureBytes
- type SecureString
- type SmcInfo
- type SmcMethodId
- type SmcMethodIdName
- type SmcMethodIdNumber
- type SmcRunResult
- type String
- type SyncState
- type SyncStateDone
- type SyncStateInProgress
- type TONPrivateKey
- type TONResponse
- type TONResult
- type TestGiverAccountState
- type TestGiverInitialAccountState
- type TestWalletAccountState
- type TestWalletInitialAccountState
- type TonBlockId
- type TonBlockIdExt
- type TonInitRequest
- type TonMessage
- type TonlibConfigFile
- type TonlibConfigFileConfig
- type TonlibConfigServer
- type TonlibListenserverConfig
- type TvmCell
- type TvmList
- type TvmNumber
- type TvmNumberDecimal
- type TvmSlice
- type TvmStackEntry
- type TvmStackEntryCell
- type TvmStackEntryList
- type TvmStackEntryNumber
- type TvmStackEntrySlice
- type TvmStackEntryTuple
- type TvmStackEntryUnsupported
- type TvmTuple
- type UninitedAccountState
- type UnpackedAccountAddress
- type UpdateSendLiteServerQuery
- type UpdateSyncState
- type ValidatorConfig
- type WalletAccountState
- type WalletHighloadV1AccountState
- type WalletHighloadV1InitialAccountState
- type WalletHighloadV2AccountState
- type WalletHighloadV2InitialAccountState
- type WalletInitialAccountState
- type WalletV3AccountState
- type WalletV3InitialAccountState
- type ZeroState
Constants ¶
const ( DEFAULT_TIMEOUT = 4.5 DefaultRetries = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAddress ¶ added in v1.0.0
type AccountAddress struct { AccountAddress string `json:"account_address"` // // contains filtered or unexported fields }
AccountAddress
func NewAccountAddress ¶ added in v1.0.0
func NewAccountAddress(accountAddress string) *AccountAddress
NewAccountAddress creates a new AccountAddress
@param accountAddress
func (*AccountAddress) MessageType ¶ added in v1.0.0
func (accountAddress *AccountAddress) MessageType() string
MessageType return the string telegram-type of AccountAddress
type AccountRevisionList ¶ added in v1.2.0
type AccountRevisionList struct { Revisions []int32 `json:"revisions"` // // contains filtered or unexported fields }
AccountRevisionList
func NewAccountRevisionList ¶ added in v1.2.0
func NewAccountRevisionList(revisions []int32) *AccountRevisionList
NewAccountRevisionList creates a new AccountRevisionList
@param revisions
func (*AccountRevisionList) MessageType ¶ added in v1.2.0
func (accountRevisionList *AccountRevisionList) MessageType() string
MessageType return the string telegram-type of AccountRevisionList
type AccountState ¶ added in v1.2.0
type AccountState RawAccountState
type ActionDns ¶ added in v1.2.0
type ActionDns struct { Actions []DnsAction `json:"actions"` // // contains filtered or unexported fields }
ActionDns
func (*ActionDns) MessageType ¶ added in v1.2.0
MessageType return the string telegram-type of ActionDns
type ActionMsg ¶ added in v1.2.0
type ActionMsg struct { AllowSendToUninited bool `json:"allow_send_to_uninited"` // Messages []MsgMessage `json:"messages"` // // contains filtered or unexported fields }
ActionMsg
func NewActionMsg ¶ added in v1.2.0
func NewActionMsg(allowSendToUninited bool, messages []MsgMessage) *ActionMsg
NewActionMsg creates a new ActionMsg
@param allowSendToUninited @param messages
func (*ActionMsg) MessageType ¶ added in v1.2.0
MessageType return the string telegram-type of ActionMsg
type ActionNoop ¶ added in v1.2.0
type ActionNoop struct {
// contains filtered or unexported fields
}
ActionNoop
func NewActionNoop ¶ added in v1.2.0
func NewActionNoop() *ActionNoop
NewActionNoop creates a new ActionNoop
func (*ActionNoop) MessageType ¶ added in v1.2.0
func (actionNoop *ActionNoop) MessageType() string
MessageType return the string telegram-type of ActionNoop
type AdnlAddress ¶ added in v1.2.0
type AdnlAddress struct { AdnlAddress string `json:"adnl_address"` // // contains filtered or unexported fields }
AdnlAddress
func NewAdnlAddress ¶ added in v1.2.0
func NewAdnlAddress(adnlAddress string) *AdnlAddress
NewAdnlAddress creates a new AdnlAddress
@param adnlAddress
func (*AdnlAddress) MessageType ¶ added in v1.2.0
func (adnlAddress *AdnlAddress) MessageType() string
MessageType return the string telegram-type of AdnlAddress
type Bip39Hints ¶ added in v1.0.0
type Bip39Hints struct { Words []string `json:"words"` // // contains filtered or unexported fields }
Bip39Hints
func NewBip39Hints ¶ added in v1.0.0
func NewBip39Hints(words []string) *Bip39Hints
NewBip39Hints creates a new Bip39Hints
@param words
func (*Bip39Hints) MessageType ¶ added in v1.0.0
func (bip39Hints *Bip39Hints) MessageType() string
MessageType return the string telegram-type of Bip39Hints
type BoolFalse ¶ added in v1.0.0
type BoolFalse struct {
// contains filtered or unexported fields
}
BoolFalse
func NewBoolFalse ¶ added in v1.0.0
func NewBoolFalse() *BoolFalse
NewBoolFalse creates a new BoolFalse
func (*BoolFalse) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of BoolFalse
type BoolTrue ¶ added in v1.0.0
type BoolTrue struct {
// contains filtered or unexported fields
}
BoolTrue
func (*BoolTrue) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of BoolTrue
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Telegram TdLib client
func NewClient ¶
func NewClient(tonCnf *TonInitRequest, config Config, timeout int64, clientLogging bool, tonLogging int32) (*Client, error)
NewClient Creates a new instance of TONLib.
func (*Client) AddLogMessage ¶ added in v1.0.0
AddLogMessage Adds a message to tonlib internal log. This is an offline method. Can be called before authorization. Can be called synchronously @param text Text of a message to log @param verbosityLevel Minimum verbosity level needed for the message to be logged, 0-1023
func (*Client) ChangeLocalPassword ¶
func (client *Client) ChangeLocalPassword(inputKey InputKey, newLocalPassword SecureBytes) (*Key, error)
ChangeLocalPassword @param inputKey @param newLocalPassword
func (*Client) CreateNewKey ¶ added in v1.0.0
func (client *Client) CreateNewKey(localPassword SecureBytes, mnemonicPassword SecureBytes, randomExtraSeed SecureBytes) (*Key, error)
CreateNewKey @param localPassword @param mnemonicPassword @param randomExtraSeed
func (*Client) CreateQuery ¶ added in v1.2.0
func (client *Client) CreateQuery(action Action, address AccountAddress, privateKey InputKey, timeout int32) (*QueryInfo, error)
CreateQuery @param action @param address @param privateKey @param timeout
func (*Client) Decrypt ¶ added in v1.0.0
func (client *Client) Decrypt(encryptedData SecureBytes, secret SecureBytes) (*Data, error)
Decrypt @param encryptedData @param secret
func (*Client) DeleteAllKeys ¶ added in v1.0.0
DeleteAllKeys
func (*Client) DnsResolve ¶ added in v1.2.0
func (client *Client) DnsResolve(accountAddress AccountAddress, category int32, name string, ttl int32) (*DnsResolved, error)
DnsResolve @param accountAddress @param category @param name @param ttl
func (*Client) Encrypt ¶ added in v1.0.0
func (client *Client) Encrypt(decryptedData SecureBytes, secret SecureBytes) (*Data, error)
Encrypt @param decryptedData @param secret
func (*Client) ExportEncryptedKey ¶ added in v0.1.0
func (client *Client) ExportEncryptedKey(inputKey InputKey, keyPassword SecureBytes) (*ExportedEncryptedKey, error)
ExportEncryptedKey @param inputKey @param keyPassword
func (*Client) ExportKey ¶ added in v1.0.0
func (client *Client) ExportKey(inputKey InputKey) (*ExportedKey, error)
ExportKey @param inputKey
func (*Client) ExportPemKey ¶ added in v0.1.0
func (client *Client) ExportPemKey(inputKey InputKey, keyPassword SecureBytes) (*ExportedPemKey, error)
ExportPemKey @param inputKey @param keyPassword
func (*Client) ExportUnencryptedKey ¶ added in v1.2.0
func (client *Client) ExportUnencryptedKey(inputKey InputKey) (*ExportedUnencryptedKey, error)
ExportUnencryptedKey @param inputKey
func (*Client) GetAccountAddress ¶ added in v1.2.0
func (client *Client) GetAccountAddress(initialAccountState InitialAccountState, revision int32) (*AccountAddress, error)
GetAccountAddress @param initialAccountState @param revision
func (*Client) GetAccountState ¶
func (client *Client) GetAccountState(accountAddress AccountAddress) (*FullAccountState, error)
GetAccountState @param accountAddress
func (*Client) GetBip39Hints ¶ added in v1.0.0
func (client *Client) GetBip39Hints(prefix string) (*Bip39Hints, error)
GetBip39Hints @param prefix
func (*Client) GetLogStream ¶ added in v1.0.0
GetLogStream Returns information about currently used log stream for internal logging of tonlib. This is an offline method. Can be called before authorization. Can be called synchronously
func (*Client) GetLogTagVerbosityLevel ¶ added in v1.0.0
func (client *Client) GetLogTagVerbosityLevel(tag string) (*LogVerbosityLevel, error)
GetLogTagVerbosityLevel Returns current verbosity level for a specified tonlib internal log tag. This is an offline method. Can be called before authorization. Can be called synchronously @param tag Logging tag to change verbosity level
func (*Client) GetLogTags ¶ added in v1.0.0
GetLogTags Returns list of available tonlib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. This is an offline method. Can be called before authorization. Can be called synchronously
func (*Client) GetLogVerbosityLevel ¶ added in v1.0.0
func (client *Client) GetLogVerbosityLevel() (*LogVerbosityLevel, error)
GetLogVerbosityLevel Returns current verbosity level of the internal logging of tonlib. This is an offline method. Can be called before authorization. Can be called synchronously
func (*Client) ImportEncryptedKey ¶ added in v0.3.2
func (client *Client) ImportEncryptedKey(exportedEncryptedKey ExportedEncryptedKey, keyPassword SecureBytes, localPassword SecureBytes) (*Key, error)
ImportEncryptedKey @param exportedEncryptedKey @param keyPassword @param localPassword
func (*Client) ImportKey ¶ added in v0.3.1
func (client *Client) ImportKey(exportedKey ExportedKey, localPassword SecureBytes, mnemonicPassword SecureBytes) (*Key, error)
ImportKey @param exportedKey @param localPassword @param mnemonicPassword
func (*Client) ImportPemKey ¶ added in v0.3.1
func (client *Client) ImportPemKey(exportedKey ExportedPemKey, keyPassword SecureBytes, localPassword SecureBytes) (*Key, error)
ImportPemKey @param exportedKey @param keyPassword @param localPassword
func (*Client) ImportUnencryptedKey ¶ added in v1.2.0
func (client *Client) ImportUnencryptedKey(exportedUnencryptedKey ExportedUnencryptedKey, localPassword SecureBytes) (*Key, error)
ImportUnencryptedKey @param exportedUnencryptedKey @param localPassword
func (*Client) Init ¶ added in v1.0.0
func (client *Client) Init(options Options) (*OptionsInfo, error)
Init @param options
func (*Client) Kdf ¶ added in v1.0.0
func (client *Client) Kdf(iterations int32, password SecureBytes, salt SecureBytes) (*Data, error)
Kdf @param iterations @param password @param salt
func (*Client) LiteServerGetInfo ¶ added in v1.0.0
func (client *Client) LiteServerGetInfo() (*LiteServerInfo, error)
LiteServerGetInfo
func (*Client) OnLiteServerQueryError ¶ added in v1.0.0
OnLiteServerQueryError @param error @param id
func (*Client) OnLiteServerQueryResult ¶ added in v1.0.0
OnLiteServerQueryResult @param bytes @param id
func (*Client) OptionsSetConfig ¶ added in v1.0.0
func (client *Client) OptionsSetConfig(config Config) (*OptionsConfigInfo, error)
OptionsSetConfig @param config
func (*Client) OptionsValidateConfig ¶ added in v1.0.0
func (client *Client) OptionsValidateConfig(config Config) (*OptionsConfigInfo, error)
OptionsValidateConfig @param config
func (*Client) PackAccountAddress ¶
func (client *Client) PackAccountAddress(accountAddress UnpackedAccountAddress) (*AccountAddress, error)
PackAccountAddress @param accountAddress
func (*Client) QueryEstimateFees ¶ added in v1.0.0
QueryEstimateFees sometimes it`s respond with "@type: ok" instead of "query.fees" @param id @param ignoreChksig
func (*Client) QueryForget ¶ added in v1.0.0
QueryForget @param id
func (*Client) QueryGetInfo ¶ added in v1.0.0
QueryGetInfo @param id
func (*Client) RawCreateAndSendMessage ¶ added in v1.0.0
func (client *Client) RawCreateAndSendMessage(data []byte, destination AccountAddress, initialAccountState []byte) (*Ok, error)
RawCreateAndSendMessage @param data @param destination @param initialAccountState
func (*Client) RawCreateQuery ¶ added in v1.0.0
func (client *Client) RawCreateQuery(body []byte, destination AccountAddress, initCode []byte, initData []byte) (*QueryInfo, error)
RawCreateQuery @param body @param destination @param initCode @param initData
func (*Client) RawGetAccountState ¶ added in v1.0.0
func (client *Client) RawGetAccountState(accountAddress AccountAddress) (*RawFullAccountState, error)
RawGetAccountState @param accountAddress
func (*Client) RawGetTransactions ¶ added in v1.0.0
func (client *Client) RawGetTransactions(accountAddress AccountAddress, fromTransactionId InternalTransactionId, privateKey InputKey) (*RawTransactions, error)
RawGetTransactions @param accountAddress @param fromTransactionId @param privateKey
func (*Client) RawSendMessage ¶ added in v1.0.0
RawSendMessage @param body
func (*Client) SetLogStream ¶ added in v1.0.0
SetLogStream Sets new log stream for internal logging of tonlib. This is an offline method. Can be called before authorization. Can be called synchronously @param logStream New log stream
func (*Client) SetLogTagVerbosityLevel ¶ added in v1.0.0
SetLogTagVerbosityLevel Sets the verbosity level for a specified tonlib internal log tag. This is an offline method. Can be called before authorization. Can be called synchronously @param newVerbosityLevel New verbosity level; 1-1024 @param tag Logging tag to change verbosity level
func (*Client) SetLogVerbosityLevel ¶ added in v1.0.0
SetLogVerbosityLevel Sets the verbosity level of the internal logging of tonlib. This is an offline method. Can be called before authorization. Can be called synchronously @param newVerbosityLevel New value of the verbosity level for logging. Value 0 corresponds to fatal errors, value 1 corresponds to errors, value 2 corresponds to warnings and debug warnings, value 3 corresponds to informational, value 4 corresponds to debug, value 5 corresponds to verbose debug, value greater than 5 and up to 1023 can be used to enable even more logging
func (*Client) SmcGetCode ¶ added in v1.0.0
SmcGetCode @param id
func (*Client) SmcGetData ¶ added in v1.0.0
SmcGetData @param id
func (*Client) SmcGetState ¶ added in v1.0.0
SmcGetState @param id
func (*Client) SmcLoad ¶ added in v1.0.0
func (client *Client) SmcLoad(accountAddress AccountAddress) (*SmcInfo, error)
SmcLoad @param accountAddress
func (*Client) SmcRunGetMethod ¶ added in v1.0.0
func (client *Client) SmcRunGetMethod(id int64, method SmcMethodId, stack []TvmStackEntry) (*SmcRunResult, error)
SmcRunGetMethod @param id @param method @param stack
func (*Client) UnpackAccountAddress ¶
func (client *Client) UnpackAccountAddress(accountAddress string) (*UnpackedAccountAddress, error)
UnpackAccountAddress @param accountAddress
type Config ¶
type Config struct { BlockchainName string `json:"blockchain_name"` // Config string `json:"config"` // IgnoreCache bool `json:"ignore_cache"` // UseCallbacksForNetwork bool `json:"use_callbacks_for_network"` // // contains filtered or unexported fields }
Config
func NewConfig ¶ added in v1.0.0
func NewConfig(blockchainName string, config string, ignoreCache bool, useCallbacksForNetwork bool) *Config
NewConfig creates a new Config
@param blockchainName @param config @param ignoreCache @param useCallbacksForNetwork
func (*Config) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Config
type Data ¶ added in v1.0.0
type Data struct { Bytes *SecureBytes `json:"bytes"` // // contains filtered or unexported fields }
Data
func NewData ¶ added in v1.0.0
func NewData(bytes *SecureBytes) *Data
NewData creates a new Data
@param bytes
func (*Data) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Data
type DnsAccountState ¶ added in v1.2.0
type DnsAccountState struct { WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
DnsAccountState
func NewDnsAccountState ¶ added in v1.2.0
func NewDnsAccountState(walletId JSONInt64) *DnsAccountState
NewDnsAccountState creates a new DnsAccountState
@param walletId
func (*DnsAccountState) MessageType ¶ added in v1.2.0
func (dnsAccountState *DnsAccountState) MessageType() string
MessageType return the string telegram-type of DnsAccountState
type DnsActionDelete ¶ added in v1.2.0
type DnsActionDelete struct { Category int32 `json:"category"` // Name string `json:"name"` // // contains filtered or unexported fields }
DnsActionDelete
func NewDnsActionDelete ¶ added in v1.2.0
func NewDnsActionDelete(category int32, name string) *DnsActionDelete
NewDnsActionDelete creates a new DnsActionDelete
@param category @param name
func (*DnsActionDelete) MessageType ¶ added in v1.2.0
func (dnsActionDelete *DnsActionDelete) MessageType() string
MessageType return the string telegram-type of DnsActionDelete
type DnsActionDeleteAll ¶ added in v1.2.0
type DnsActionDeleteAll struct {
// contains filtered or unexported fields
}
DnsActionDeleteAll
func NewDnsActionDeleteAll ¶ added in v1.2.0
func NewDnsActionDeleteAll() *DnsActionDeleteAll
NewDnsActionDeleteAll creates a new DnsActionDeleteAll
func (*DnsActionDeleteAll) MessageType ¶ added in v1.2.0
func (dnsActionDeleteAll *DnsActionDeleteAll) MessageType() string
MessageType return the string telegram-type of DnsActionDeleteAll
type DnsActionSet ¶ added in v1.2.0
type DnsActionSet struct { Entry *DnsEntry `json:"entry"` // // contains filtered or unexported fields }
DnsActionSet
func NewDnsActionSet ¶ added in v1.2.0
func NewDnsActionSet(entry *DnsEntry) *DnsActionSet
NewDnsActionSet creates a new DnsActionSet
@param entry
func (*DnsActionSet) MessageType ¶ added in v1.2.0
func (dnsActionSet *DnsActionSet) MessageType() string
MessageType return the string telegram-type of DnsActionSet
type DnsEntry ¶ added in v1.2.0
type DnsEntry struct { Category int32 `json:"category"` // Entry *DnsEntryData `json:"entry"` // Name string `json:"name"` // // contains filtered or unexported fields }
DnsEntry
func NewDnsEntry ¶ added in v1.2.0
func NewDnsEntry(category int32, entry *DnsEntryData, name string) *DnsEntry
NewDnsEntry creates a new DnsEntry
@param category @param entry @param name
func (*DnsEntry) MessageType ¶ added in v1.2.0
MessageType return the string telegram-type of DnsEntry
type DnsEntryData ¶ added in v1.2.0
type DnsEntryData string
type DnsEntryDataAdnlAddress ¶ added in v1.2.0
type DnsEntryDataAdnlAddress struct { AdnlAddress *AdnlAddress `json:"adnl_address"` // // contains filtered or unexported fields }
DnsEntryDataAdnlAddress
func NewDnsEntryDataAdnlAddress ¶ added in v1.2.0
func NewDnsEntryDataAdnlAddress(adnlAddress *AdnlAddress) *DnsEntryDataAdnlAddress
NewDnsEntryDataAdnlAddress creates a new DnsEntryDataAdnlAddress
@param adnlAddress
func (*DnsEntryDataAdnlAddress) MessageType ¶ added in v1.2.0
func (dnsEntryDataAdnlAddress *DnsEntryDataAdnlAddress) MessageType() string
MessageType return the string telegram-type of DnsEntryDataAdnlAddress
type DnsEntryDataNextResolver ¶ added in v1.2.0
type DnsEntryDataNextResolver struct { Resolver *AccountAddress `json:"resolver"` // // contains filtered or unexported fields }
DnsEntryDataNextResolver
func NewDnsEntryDataNextResolver ¶ added in v1.2.0
func NewDnsEntryDataNextResolver(resolver *AccountAddress) *DnsEntryDataNextResolver
NewDnsEntryDataNextResolver creates a new DnsEntryDataNextResolver
@param resolver
func (*DnsEntryDataNextResolver) MessageType ¶ added in v1.2.0
func (dnsEntryDataNextResolver *DnsEntryDataNextResolver) MessageType() string
MessageType return the string telegram-type of DnsEntryDataNextResolver
type DnsEntryDataSmcAddress ¶ added in v1.2.0
type DnsEntryDataSmcAddress struct { SmcAddress *AccountAddress `json:"smc_address"` // // contains filtered or unexported fields }
DnsEntryDataSmcAddress
func NewDnsEntryDataSmcAddress ¶ added in v1.2.0
func NewDnsEntryDataSmcAddress(smcAddress *AccountAddress) *DnsEntryDataSmcAddress
NewDnsEntryDataSmcAddress creates a new DnsEntryDataSmcAddress
@param smcAddress
func (*DnsEntryDataSmcAddress) MessageType ¶ added in v1.2.0
func (dnsEntryDataSmcAddress *DnsEntryDataSmcAddress) MessageType() string
MessageType return the string telegram-type of DnsEntryDataSmcAddress
type DnsEntryDataText ¶ added in v1.2.0
type DnsEntryDataText struct { Text string `json:"text"` // // contains filtered or unexported fields }
DnsEntryDataText
func NewDnsEntryDataText ¶ added in v1.2.0
func NewDnsEntryDataText(text string) *DnsEntryDataText
NewDnsEntryDataText creates a new DnsEntryDataText
@param text
func (*DnsEntryDataText) MessageType ¶ added in v1.2.0
func (dnsEntryDataText *DnsEntryDataText) MessageType() string
MessageType return the string telegram-type of DnsEntryDataText
type DnsEntryDataUnknown ¶ added in v1.2.0
type DnsEntryDataUnknown struct { Bytes string `json:"bytes"` // // contains filtered or unexported fields }
DnsEntryDataUnknown
func NewDnsEntryDataUnknown ¶ added in v1.2.0
func NewDnsEntryDataUnknown(bytes string) *DnsEntryDataUnknown
NewDnsEntryDataUnknown creates a new DnsEntryDataUnknown
@param bytes
func (*DnsEntryDataUnknown) MessageType ¶ added in v1.2.0
func (dnsEntryDataUnknown *DnsEntryDataUnknown) MessageType() string
MessageType return the string telegram-type of DnsEntryDataUnknown
type DnsInitialAccountState ¶ added in v1.2.0
type DnsInitialAccountState struct { PublicKey string `json:"public_key"` // WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
DnsInitialAccountState
func NewDnsInitialAccountState ¶ added in v1.2.0
func NewDnsInitialAccountState(publicKey string, walletId JSONInt64) *DnsInitialAccountState
NewDnsInitialAccountState creates a new DnsInitialAccountState
@param publicKey @param walletId
func (*DnsInitialAccountState) MessageType ¶ added in v1.2.0
func (dnsInitialAccountState *DnsInitialAccountState) MessageType() string
MessageType return the string telegram-type of DnsInitialAccountState
type DnsResolved ¶ added in v1.2.0
type DnsResolved struct { Entries []DnsEntry `json:"entries"` // // contains filtered or unexported fields }
DnsResolved
func NewDnsResolved ¶ added in v1.2.0
func NewDnsResolved(entries []DnsEntry) *DnsResolved
NewDnsResolved creates a new DnsResolved
@param entries
func (*DnsResolved) MessageType ¶ added in v1.2.0
func (dnsResolved *DnsResolved) MessageType() string
MessageType return the string telegram-type of DnsResolved
type Double ¶ added in v1.0.0
type Double struct {
// contains filtered or unexported fields
}
Double
func (*Double) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Double
type Error ¶ added in v1.0.0
type Error struct { Code int32 `json:"code"` // Message string `json:"message"` // // contains filtered or unexported fields }
Error
func (*Error) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Error
type ExportedEncryptedKey ¶ added in v1.0.0
type ExportedEncryptedKey struct { Data *SecureBytes `json:"data"` // // contains filtered or unexported fields }
ExportedEncryptedKey
func NewExportedEncryptedKey ¶ added in v1.0.0
func NewExportedEncryptedKey(data *SecureBytes) *ExportedEncryptedKey
NewExportedEncryptedKey creates a new ExportedEncryptedKey
@param data
func (*ExportedEncryptedKey) MessageType ¶ added in v1.0.0
func (exportedEncryptedKey *ExportedEncryptedKey) MessageType() string
MessageType return the string telegram-type of ExportedEncryptedKey
type ExportedKey ¶ added in v1.0.0
type ExportedKey struct { WordList []SecureString `json:"word_list"` // // contains filtered or unexported fields }
ExportedKey
func NewExportedKey ¶ added in v1.0.0
func NewExportedKey(wordList []SecureString) *ExportedKey
NewExportedKey creates a new ExportedKey
@param wordList
func (*ExportedKey) MessageType ¶ added in v1.0.0
func (exportedKey *ExportedKey) MessageType() string
MessageType return the string telegram-type of ExportedKey
type ExportedPemKey ¶ added in v1.0.0
type ExportedPemKey struct { Pem *SecureString `json:"pem"` // // contains filtered or unexported fields }
ExportedPemKey
func NewExportedPemKey ¶ added in v1.0.0
func NewExportedPemKey(pem *SecureString) *ExportedPemKey
NewExportedPemKey creates a new ExportedPemKey
@param pem
func (*ExportedPemKey) MessageType ¶ added in v1.0.0
func (exportedPemKey *ExportedPemKey) MessageType() string
MessageType return the string telegram-type of ExportedPemKey
type ExportedUnencryptedKey ¶ added in v1.2.0
type ExportedUnencryptedKey struct { Data *SecureBytes `json:"data"` // // contains filtered or unexported fields }
ExportedUnencryptedKey
func NewExportedUnencryptedKey ¶ added in v1.2.0
func NewExportedUnencryptedKey(data *SecureBytes) *ExportedUnencryptedKey
NewExportedUnencryptedKey creates a new ExportedUnencryptedKey
@param data
func (*ExportedUnencryptedKey) MessageType ¶ added in v1.2.0
func (exportedUnencryptedKey *ExportedUnencryptedKey) MessageType() string
MessageType return the string telegram-type of ExportedUnencryptedKey
type Fees ¶ added in v1.0.0
type Fees struct { FwdFee int64 `json:"fwd_fee"` // GasFee int64 `json:"gas_fee"` // InFwdFee int64 `json:"in_fwd_fee"` // StorageFee int64 `json:"storage_fee"` // // contains filtered or unexported fields }
Fees
func NewFees ¶ added in v1.0.0
NewFees creates a new Fees
@param fwdFee @param gasFee @param inFwdFee @param storageFee
func (*Fees) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Fees
type FullAccountState ¶ added in v1.2.0
type FullAccountState struct { AccountState *AccountState `json:"account_state"` // Balance JSONInt64 `json:"balance"` // BlockId *TonBlockIdExt `json:"block_id"` // LastTransactionId *InternalTransactionId `json:"last_transaction_id"` // SyncUtime int64 `json:"sync_utime"` // // contains filtered or unexported fields }
FullAccountState
func NewFullAccountState ¶ added in v1.2.0
func NewFullAccountState(accountState *AccountState, balance JSONInt64, blockId *TonBlockIdExt, lastTransactionId *InternalTransactionId, syncUtime int64) *FullAccountState
NewFullAccountState creates a new FullAccountState
@param accountState @param balance @param blockId @param lastTransactionId @param syncUtime
func (*FullAccountState) MessageType ¶ added in v1.2.0
func (fullAccountState *FullAccountState) MessageType() string
MessageType return the string telegram-type of FullAccountState
type Function ¶ added in v1.2.0
type Function struct {
// contains filtered or unexported fields
}
Function
func (*Function) MessageType ¶ added in v1.2.0
MessageType return the string telegram-type of Function
type GenericAccountState ¶ added in v1.0.0
type GenericAccountState string
type InitialAccountState ¶ added in v1.2.0
type InitialAccountState interface{ MessageType() string }
because of different subclasses in common class InitialAccountState and AccountState InitialAccountState
type InputKey ¶
type InputKey struct { Type string `json:"@type"` LocalPassword string `json:"local_password"` Key TONPrivateKey `json:"key"` }
type InputKeyFake ¶ added in v1.0.0
type InputKeyFake struct {
// contains filtered or unexported fields
}
InputKeyFake
func NewInputKeyFake ¶ added in v1.0.0
func NewInputKeyFake() *InputKeyFake
NewInputKeyFake creates a new InputKeyFake
func (*InputKeyFake) MessageType ¶ added in v1.0.0
func (inputKeyFake *InputKeyFake) MessageType() string
MessageType return the string telegram-type of InputKeyFake
type InputKeyRegular ¶ added in v1.0.0
type InputKeyRegular struct { Key *Key `json:"key"` // LocalPassword *SecureBytes `json:"local_password"` // // contains filtered or unexported fields }
InputKeyRegular
func NewInputKeyRegular ¶ added in v1.0.0
func NewInputKeyRegular(key *Key, localPassword *SecureBytes) *InputKeyRegular
NewInputKeyRegular creates a new InputKeyRegular
@param key @param localPassword
func (*InputKeyRegular) MessageType ¶ added in v1.0.0
func (inputKeyRegular *InputKeyRegular) MessageType() string
MessageType return the string telegram-type of InputKeyRegular
type Int32 ¶ added in v1.0.0
type Int32 struct {
// contains filtered or unexported fields
}
Int32
func (*Int32) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Int32
type Int53 ¶ added in v1.0.0
type Int53 struct {
// contains filtered or unexported fields
}
Int53
func (*Int53) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Int53
type Int64 ¶ added in v1.0.0
type Int64 struct {
// contains filtered or unexported fields
}
Int64
func (*Int64) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Int64
type InternalTransactionId ¶
type InternalTransactionId struct { Hash string `json:"hash"` // Lt JSONInt64 `json:"lt"` // // contains filtered or unexported fields }
InternalTransactionId
func NewInternalTransactionId ¶ added in v1.0.0
func NewInternalTransactionId(hash string, lt JSONInt64) *InternalTransactionId
NewInternalTransactionId creates a new InternalTransactionId
@param hash @param lt
func (*InternalTransactionId) MessageType ¶ added in v1.0.0
func (internalTransactionId *InternalTransactionId) MessageType() string
MessageType return the string telegram-type of InternalTransactionId
type JSONInt64 ¶ added in v1.0.0
type JSONInt64 int64
JSONInt64 alias for int64, in order to deal with json big number problem
func (*JSONInt64) MarshalJSON ¶ added in v1.0.0
MarshalJSON marshals to json
func (*JSONInt64) UnmarshalJSON ¶ added in v1.0.0
UnmarshalJSON unmarshals from json
type Key ¶ added in v1.0.0
type Key struct { PublicKey string `json:"public_key"` // Secret string `json:"secret"` // // contains filtered or unexported fields }
key struct cause it strings values no bytes Key
func (*Key) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Key
type KeyStoreType ¶ added in v1.0.0
KeyStoreType directory
type KeyStoreTypeDirectory ¶
type KeyStoreTypeDirectory struct { Directory string `json:"directory"` // // contains filtered or unexported fields }
KeyStoreTypeDirectory
func NewKeyStoreTypeDirectory ¶ added in v1.0.0
func NewKeyStoreTypeDirectory(directory string) *KeyStoreTypeDirectory
NewKeyStoreTypeDirectory creates a new KeyStoreTypeDirectory
@param directory
func (*KeyStoreTypeDirectory) MessageType ¶ added in v1.0.0
func (keyStoreTypeDirectory *KeyStoreTypeDirectory) MessageType() string
MessageType return the string telegram-type of KeyStoreTypeDirectory
type KeyStoreTypeInMemory ¶
type KeyStoreTypeInMemory struct {
// contains filtered or unexported fields
}
KeyStoreTypeInMemory
func NewKeyStoreTypeInMemory ¶ added in v1.0.0
func NewKeyStoreTypeInMemory() *KeyStoreTypeInMemory
NewKeyStoreTypeInMemory creates a new KeyStoreTypeInMemory
func (*KeyStoreTypeInMemory) MessageType ¶ added in v1.0.0
func (keyStoreTypeInMemory *KeyStoreTypeInMemory) MessageType() string
MessageType return the string telegram-type of KeyStoreTypeInMemory
type LiteServerInfo ¶ added in v1.0.0
type LiteServerInfo struct { Capabilities JSONInt64 `json:"capabilities"` // Now int64 `json:"now"` // Version int32 `json:"version"` // // contains filtered or unexported fields }
LiteServerInfo
func NewLiteServerInfo ¶ added in v1.0.0
func NewLiteServerInfo(capabilities JSONInt64, now int64, version int32) *LiteServerInfo
NewLiteServerInfo creates a new LiteServerInfo
@param capabilities @param now @param version
func (*LiteServerInfo) MessageType ¶ added in v1.0.0
func (liteServerInfo *LiteServerInfo) MessageType() string
MessageType return the string telegram-type of LiteServerInfo
type LogStream ¶ added in v1.0.0
type LogStream interface {
GetLogStreamEnum() LogStreamEnum
}
type LogStreamDefault ¶ added in v1.0.0
type LogStreamDefault struct {
// contains filtered or unexported fields
}
LogStreamDefault The log is written to stderr or an OS specific log
func NewLogStreamDefault ¶ added in v1.0.0
func NewLogStreamDefault() *LogStreamDefault
NewLogStreamDefault creates a new LogStreamDefault
func (*LogStreamDefault) GetLogStreamEnum ¶ added in v1.0.0
func (logStreamDefault *LogStreamDefault) GetLogStreamEnum() LogStreamEnum
GetLogStreamEnum return the enum type of this object
func (*LogStreamDefault) MessageType ¶ added in v1.0.0
func (logStreamDefault *LogStreamDefault) MessageType() string
MessageType return the string telegram-type of LogStreamDefault
type LogStreamEmpty ¶ added in v1.0.0
type LogStreamEmpty struct {
// contains filtered or unexported fields
}
LogStreamEmpty The log is written nowhere
func NewLogStreamEmpty ¶ added in v1.0.0
func NewLogStreamEmpty() *LogStreamEmpty
NewLogStreamEmpty creates a new LogStreamEmpty
func (*LogStreamEmpty) GetLogStreamEnum ¶ added in v1.0.0
func (logStreamEmpty *LogStreamEmpty) GetLogStreamEnum() LogStreamEnum
GetLogStreamEnum return the enum type of this object
func (*LogStreamEmpty) MessageType ¶ added in v1.0.0
func (logStreamEmpty *LogStreamEmpty) MessageType() string
MessageType return the string telegram-type of LogStreamEmpty
type LogStreamEnum ¶ added in v1.0.0
type LogStreamEnum string
LogStreamEnum Alias for abstract LogStream 'Sub-Classes', used as constant-enum here
const ( LogStreamDefaultType LogStreamEnum = "logStreamDefault" LogStreamFileType LogStreamEnum = "logStreamFile" LogStreamEmptyType LogStreamEnum = "logStreamEmpty" )
LogStream enums
type LogStreamFile ¶ added in v1.0.0
type LogStreamFile struct { MaxFileSize int64 `json:"max_file_size"` // Maximum size of the file to where the internal tonlib log is written before the file will be auto-rotated Path string `json:"path"` // Path to the file to where the internal tonlib log will be written // contains filtered or unexported fields }
LogStreamFile The log is written to a file
func NewLogStreamFile ¶ added in v1.0.0
func NewLogStreamFile(maxFileSize int64, path string) *LogStreamFile
NewLogStreamFile creates a new LogStreamFile
@param maxFileSize Maximum size of the file to where the internal tonlib log is written before the file will be auto-rotated @param path Path to the file to where the internal tonlib log will be written
func (*LogStreamFile) GetLogStreamEnum ¶ added in v1.0.0
func (logStreamFile *LogStreamFile) GetLogStreamEnum() LogStreamEnum
GetLogStreamEnum return the enum type of this object
func (*LogStreamFile) MessageType ¶ added in v1.0.0
func (logStreamFile *LogStreamFile) MessageType() string
MessageType return the string telegram-type of LogStreamFile
type LogTags ¶ added in v1.0.0
type LogTags struct { Tags []string `json:"tags"` // List of log tags // contains filtered or unexported fields }
LogTags Contains a list of available tonlib internal log tags
func (*LogTags) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of LogTags
type LogVerbosityLevel ¶ added in v1.0.0
type LogVerbosityLevel struct { VerbosityLevel int32 `json:"verbosity_level"` // Log verbosity level // contains filtered or unexported fields }
LogVerbosityLevel Contains a tonlib internal log verbosity level
func NewLogVerbosityLevel ¶ added in v1.0.0
func NewLogVerbosityLevel(verbosityLevel int32) *LogVerbosityLevel
NewLogVerbosityLevel creates a new LogVerbosityLevel
@param verbosityLevel Log verbosity level
func (*LogVerbosityLevel) MessageType ¶ added in v1.0.0
func (logVerbosityLevel *LogVerbosityLevel) MessageType() string
MessageType return the string telegram-type of LogVerbosityLevel
type MsgDataEncryptedText ¶ added in v1.2.0
type MsgDataEncryptedText struct { Text string `json:"text"` // // contains filtered or unexported fields }
MsgDataEncryptedText
func NewMsgDataEncryptedText ¶ added in v1.2.0
func NewMsgDataEncryptedText(text string) *MsgDataEncryptedText
NewMsgDataEncryptedText creates a new MsgDataEncryptedText
@param text
func (*MsgDataEncryptedText) MessageType ¶ added in v1.2.0
func (msgDataEncryptedText *MsgDataEncryptedText) MessageType() string
MessageType return the string telegram-type of MsgDataEncryptedText
type MsgDataText ¶ added in v1.2.0
type MsgDataText struct { Text string `json:"text"` // // contains filtered or unexported fields }
MsgDataText
func NewMsgDataText ¶ added in v1.2.0
func NewMsgDataText(text string) *MsgDataText
NewMsgDataText creates a new MsgDataText
@param text
func (*MsgDataText) MessageType ¶ added in v1.2.0
func (msgDataText *MsgDataText) MessageType() string
MessageType return the string telegram-type of MsgDataText
type MsgMessage ¶ added in v1.2.0
type MsgMessage struct { Amount JSONInt64 `json:"amount"` // Data MsgData `json:"data"` // Destination *AccountAddress `json:"destination"` // // contains filtered or unexported fields }
MsgMessage
func NewMsgMessage ¶ added in v1.2.0
func NewMsgMessage(amount JSONInt64, data MsgData, destination *AccountAddress) *MsgMessage
NewMsgMessage creates a new MsgMessage
@param amount @param data @param destination
func (*MsgMessage) MessageType ¶ added in v1.2.0
func (msgMessage *MsgMessage) MessageType() string
MessageType return the string telegram-type of MsgMessage
type Object ¶ added in v1.2.0
type Object struct {
// contains filtered or unexported fields
}
Object
func (*Object) MessageType ¶ added in v1.2.0
MessageType return the string telegram-type of Object
type Ok ¶ added in v1.0.0
type Ok struct {
// contains filtered or unexported fields
}
Ok
func (*Ok) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Ok
type Options ¶ added in v1.0.0
type Options struct { Config *Config `json:"config"` // KeystoreType *KeyStoreType `json:"keystore_type"` // // contains filtered or unexported fields }
Options
func NewOptions ¶ added in v1.0.0
func NewOptions(config *Config, keystoreType *KeyStoreType) *Options
NewOptions creates a new Options
@param config @param keystoreType
func ParseConfigFile ¶
ParseConfigFile parse JSON config file to
func (*Options) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of Options
type OptionsConfigInfo ¶ added in v1.0.0
type OptionsConfigInfo struct { DefaultWalletId JSONInt64 `json:"default_wallet_id"` // // contains filtered or unexported fields }
OptionsConfigInfo
func NewOptionsConfigInfo ¶ added in v1.0.0
func NewOptionsConfigInfo(defaultWalletId JSONInt64) *OptionsConfigInfo
NewOptionsConfigInfo creates a new OptionsConfigInfo
@param defaultWalletId
func (*OptionsConfigInfo) MessageType ¶ added in v1.0.0
func (optionsConfigInfo *OptionsConfigInfo) MessageType() string
MessageType return the string telegram-type of OptionsConfigInfo
type OptionsInfo ¶ added in v1.0.0
type OptionsInfo struct { ConfigInfo *OptionsConfigInfo `json:"config_info"` // // contains filtered or unexported fields }
OptionsInfo
func NewOptionsInfo ¶ added in v1.0.0
func NewOptionsInfo(configInfo *OptionsConfigInfo) *OptionsInfo
NewOptionsInfo creates a new OptionsInfo
@param configInfo
func (*OptionsInfo) MessageType ¶ added in v1.0.0
func (optionsInfo *OptionsInfo) MessageType() string
MessageType return the string telegram-type of OptionsInfo
type QueryFees ¶ added in v1.0.0
type QueryFees struct { DestinationFees []Fees `json:"destination_fees"` // SourceFees *Fees `json:"source_fees"` // // contains filtered or unexported fields }
QueryFees
func NewQueryFees ¶ added in v1.0.0
NewQueryFees creates a new QueryFees
@param destinationFees @param sourceFees
func (*QueryFees) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of QueryFees
type QueryInfo ¶ added in v1.0.0
type QueryInfo struct { BodyHash string `json:"body_hash"` // Id int64 `json:"id"` // ValidUntil int64 `json:"valid_until"` // // contains filtered or unexported fields }
QueryInfo
func NewQueryInfo ¶ added in v1.0.0
NewQueryInfo creates a new QueryInfo
@param bodyHash @param id @param validUntil
func (*QueryInfo) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of QueryInfo
type RawAccountState ¶ added in v1.0.0
type RawAccountState struct { Code string `json:"code"` // Data string `json:"data"` // FrozenHash string `json:"frozen_hash"` // // contains filtered or unexported fields }
RawAccountState
func NewRawAccountState ¶ added in v1.0.0
func NewRawAccountState(code string, data string, frozenHash string) *RawAccountState
NewRawAccountState creates a new RawAccountState
@param code @param data @param frozenHash
func (*RawAccountState) MessageType ¶ added in v1.0.0
func (rawAccountState *RawAccountState) MessageType() string
MessageType return the string telegram-type of RawAccountState
type RawFullAccountState ¶ added in v1.2.0
type RawFullAccountState struct { Balance JSONInt64 `json:"balance"` // BlockId *TonBlockIdExt `json:"block_id"` // Code string `json:"code"` // Data string `json:"data"` // FrozenHash string `json:"frozen_hash"` // LastTransactionId *InternalTransactionId `json:"last_transaction_id"` // SyncUtime int64 `json:"sync_utime"` // // contains filtered or unexported fields }
RawFullAccountState
func NewRawFullAccountState ¶ added in v1.2.0
func NewRawFullAccountState(balance JSONInt64, blockId *TonBlockIdExt, code string, data string, frozenHash string, lastTransactionId *InternalTransactionId, syncUtime int64) *RawFullAccountState
NewRawFullAccountState creates a new RawFullAccountState
@param balance @param blockId @param code @param data @param frozenHash @param lastTransactionId @param syncUtime
func (*RawFullAccountState) MessageType ¶ added in v1.2.0
func (rawFullAccountState *RawFullAccountState) MessageType() string
MessageType return the string telegram-type of RawFullAccountState
type RawInitialAccountState ¶ added in v1.0.0
type RawInitialAccountState struct { Code string `json:"code"` // Data string `json:"data"` // // contains filtered or unexported fields }
RawInitialAccountState
func NewRawInitialAccountState ¶ added in v1.0.0
func NewRawInitialAccountState(code string, data string) *RawInitialAccountState
NewRawInitialAccountState creates a new RawInitialAccountState
@param code @param data
func (*RawInitialAccountState) MessageType ¶ added in v1.0.0
func (rawInitialAccountState *RawInitialAccountState) MessageType() string
MessageType return the string telegram-type of RawInitialAccountState
type RawMessage ¶ added in v1.0.0
type RawMessage struct { BodyHash string `json:"body_hash"` // CreatedLt JSONInt64 `json:"created_lt"` // Destination string `json:"destination"` // FwdFee JSONInt64 `json:"fwd_fee"` // IhrFee JSONInt64 `json:"ihr_fee"` // IsMessageEncrypted bool `json:"is_message_encrypted"` // Message string `json:"message"` // Source string `json:"source"` // Value JSONInt64 `json:"value"` // // contains filtered or unexported fields }
RawMessage
func NewRawMessage ¶ added in v1.0.0
func NewRawMessage(bodyHash string, createdLt JSONInt64, destination string, fwdFee JSONInt64, ihrFee JSONInt64, isMessageEncrypted bool, message string, source string, value JSONInt64) *RawMessage
NewRawMessage creates a new RawMessage
@param bodyHash @param createdLt @param destination @param fwdFee @param ihrFee @param isMessageEncrypted @param message @param source @param value
func (*RawMessage) MessageType ¶ added in v1.0.0
func (rawMessage *RawMessage) MessageType() string
MessageType return the string telegram-type of RawMessage
type RawTransaction ¶ added in v1.0.0
type RawTransaction struct { Data string `json:"data"` // Fee JSONInt64 `json:"fee"` // InMsg *RawMessage `json:"in_msg"` // OtherFee JSONInt64 `json:"other_fee"` // OutMsgs []RawMessage `json:"out_msgs"` // StorageFee JSONInt64 `json:"storage_fee"` // TransactionId *InternalTransactionId `json:"transaction_id"` // Utime int64 `json:"utime"` // // contains filtered or unexported fields }
RawTransaction
func NewRawTransaction ¶ added in v1.0.0
func NewRawTransaction(data string, fee JSONInt64, inMsg *RawMessage, otherFee JSONInt64, outMsgs []RawMessage, storageFee JSONInt64, transactionId *InternalTransactionId, utime int64) *RawTransaction
NewRawTransaction creates a new RawTransaction
@param data @param fee @param inMsg @param otherFee @param outMsgs @param storageFee @param transactionId @param utime
func (*RawTransaction) MessageType ¶ added in v1.0.0
func (rawTransaction *RawTransaction) MessageType() string
MessageType return the string telegram-type of RawTransaction
type RawTransactions ¶ added in v1.0.0
type RawTransactions struct { PreviousTransactionId *InternalTransactionId `json:"previous_transaction_id"` // Transactions []RawTransaction `json:"transactions"` // // contains filtered or unexported fields }
RawTransactions
func NewRawTransactions ¶ added in v1.0.0
func NewRawTransactions(previousTransactionId *InternalTransactionId, transactions []RawTransaction) *RawTransactions
NewRawTransactions creates a new RawTransactions
@param previousTransactionId @param transactions
func (*RawTransactions) MessageType ¶ added in v1.0.0
func (rawTransactions *RawTransactions) MessageType() string
MessageType return the string telegram-type of RawTransactions
type SecureBytes ¶ added in v1.0.0
type SecureBytes []byte
type SecureString ¶ added in v1.0.0
type SecureString string
type SmcInfo ¶ added in v1.0.0
type SmcInfo struct { Id int64 `json:"id"` // // contains filtered or unexported fields }
SmcInfo
func (*SmcInfo) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of SmcInfo
type SmcMethodId ¶ added in v1.0.0
type SmcMethodId interface{}
type SmcMethodIdName ¶ added in v1.0.0
type SmcMethodIdName struct { Name string `json:"name"` // // contains filtered or unexported fields }
SmcMethodIdName
func NewSmcMethodIdName ¶ added in v1.0.0
func NewSmcMethodIdName(name string) *SmcMethodIdName
NewSmcMethodIdName creates a new SmcMethodIdName
@param name
func (*SmcMethodIdName) MessageType ¶ added in v1.0.0
func (smcMethodIdName *SmcMethodIdName) MessageType() string
MessageType return the string telegram-type of SmcMethodIdName
type SmcMethodIdNumber ¶ added in v1.0.0
type SmcMethodIdNumber struct { Number int32 `json:"number"` // // contains filtered or unexported fields }
SmcMethodIdNumber
func NewSmcMethodIdNumber ¶ added in v1.0.0
func NewSmcMethodIdNumber(number int32) *SmcMethodIdNumber
NewSmcMethodIdNumber creates a new SmcMethodIdNumber
@param number
func (*SmcMethodIdNumber) MessageType ¶ added in v1.0.0
func (smcMethodIdNumber *SmcMethodIdNumber) MessageType() string
MessageType return the string telegram-type of SmcMethodIdNumber
type SmcRunResult ¶ added in v1.0.0
type SmcRunResult struct { ExitCode int32 `json:"exit_code"` // GasUsed int64 `json:"gas_used"` // Stack []TvmStackEntry `json:"stack"` // // contains filtered or unexported fields }
SmcRunResult
func NewSmcRunResult ¶ added in v1.0.0
func NewSmcRunResult(exitCode int32, gasUsed int64, stack []TvmStackEntry) *SmcRunResult
NewSmcRunResult creates a new SmcRunResult
@param exitCode @param gasUsed @param stack
func (*SmcRunResult) MessageType ¶ added in v1.0.0
func (smcRunResult *SmcRunResult) MessageType() string
MessageType return the string telegram-type of SmcRunResult
type String ¶ added in v1.0.0
type String struct {
// contains filtered or unexported fields
}
String
func (*String) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of String
type SyncStateDone ¶ added in v1.0.0
type SyncStateDone struct {
// contains filtered or unexported fields
}
SyncStateDone
func NewSyncStateDone ¶ added in v1.0.0
func NewSyncStateDone() *SyncStateDone
NewSyncStateDone creates a new SyncStateDone
func (*SyncStateDone) MessageType ¶ added in v1.0.0
func (syncStateDone *SyncStateDone) MessageType() string
MessageType return the string telegram-type of SyncStateDone
type SyncStateInProgress ¶ added in v1.0.0
type SyncStateInProgress struct { CurrentSeqno int32 `json:"current_seqno"` // FromSeqno int32 `json:"from_seqno"` // ToSeqno int32 `json:"to_seqno"` // // contains filtered or unexported fields }
SyncStateInProgress
func NewSyncStateInProgress ¶ added in v1.0.0
func NewSyncStateInProgress(currentSeqno int32, fromSeqno int32, toSeqno int32) *SyncStateInProgress
NewSyncStateInProgress creates a new SyncStateInProgress
@param currentSeqno @param fromSeqno @param toSeqno
func (*SyncStateInProgress) MessageType ¶ added in v1.0.0
func (syncStateInProgress *SyncStateInProgress) MessageType() string
MessageType return the string telegram-type of SyncStateInProgress
type TONPrivateKey ¶
type TONResult ¶
type TONResult struct { Data TONResponse Raw []byte }
TONResult is used to unmarshal received json strings into
type TestGiverAccountState ¶ added in v1.0.0
type TestGiverAccountState struct { Seqno int32 `json:"seqno"` // // contains filtered or unexported fields }
TestGiverAccountState
func NewTestGiverAccountState ¶ added in v1.0.0
func NewTestGiverAccountState(seqno int32) *TestGiverAccountState
NewTestGiverAccountState creates a new TestGiverAccountState
@param seqno
func (*TestGiverAccountState) MessageType ¶ added in v1.0.0
func (testGiverAccountState *TestGiverAccountState) MessageType() string
MessageType return the string telegram-type of TestGiverAccountState
type TestGiverInitialAccountState ¶ added in v1.2.0
type TestGiverInitialAccountState struct {
// contains filtered or unexported fields
}
TestGiverInitialAccountState
func NewTestGiverInitialAccountState ¶ added in v1.2.0
func NewTestGiverInitialAccountState() *TestGiverInitialAccountState
NewTestGiverInitialAccountState creates a new TestGiverInitialAccountState
func (*TestGiverInitialAccountState) MessageType ¶ added in v1.2.0
func (testGiverInitialAccountState *TestGiverInitialAccountState) MessageType() string
MessageType return the string telegram-type of TestGiverInitialAccountState
type TestWalletAccountState ¶ added in v1.0.0
type TestWalletAccountState struct { Seqno int32 `json:"seqno"` // // contains filtered or unexported fields }
TestWalletAccountState
func NewTestWalletAccountState ¶ added in v1.0.0
func NewTestWalletAccountState(seqno int32) *TestWalletAccountState
NewTestWalletAccountState creates a new TestWalletAccountState
@param seqno
func (*TestWalletAccountState) MessageType ¶ added in v1.0.0
func (testWalletAccountState *TestWalletAccountState) MessageType() string
MessageType return the string telegram-type of TestWalletAccountState
type TestWalletInitialAccountState ¶ added in v1.0.0
type TestWalletInitialAccountState struct { PublicKey string `json:"public_key"` // // contains filtered or unexported fields }
TestWalletInitialAccountState
func NewTestWalletInitialAccountState ¶ added in v1.0.0
func NewTestWalletInitialAccountState(publicKey string) *TestWalletInitialAccountState
NewTestWalletInitialAccountState creates a new TestWalletInitialAccountState
@param publicKey
func (*TestWalletInitialAccountState) MessageType ¶ added in v1.0.0
func (testWalletInitialAccountState *TestWalletInitialAccountState) MessageType() string
MessageType return the string telegram-type of TestWalletInitialAccountState
type TonBlockId ¶ added in v1.2.0
type TonBlockId struct { Seqno int32 `json:"seqno"` // Shard JSONInt64 `json:"shard"` // Workchain int32 `json:"workchain"` // // contains filtered or unexported fields }
TonBlockId
func NewTonBlockId ¶ added in v1.2.0
func NewTonBlockId(seqno int32, shard JSONInt64, workchain int32) *TonBlockId
NewTonBlockId creates a new TonBlockId
@param seqno @param shard @param workchain
func (*TonBlockId) MessageType ¶ added in v1.2.0
func (tonBlockId *TonBlockId) MessageType() string
MessageType return the string telegram-type of TonBlockId
type TonBlockIdExt ¶ added in v1.2.0
type TonBlockIdExt struct { FileHash string `json:"file_hash"` // RootHash string `json:"root_hash"` // Seqno int32 `json:"seqno"` // Shard JSONInt64 `json:"shard"` // Workchain int32 `json:"workchain"` // // contains filtered or unexported fields }
TonBlockIdExt
func NewTonBlockIdExt ¶ added in v1.2.0
func NewTonBlockIdExt(fileHash string, rootHash string, seqno int32, shard JSONInt64, workchain int32) *TonBlockIdExt
NewTonBlockIdExt creates a new TonBlockIdExt
@param fileHash @param rootHash @param seqno @param shard @param workchain
func (*TonBlockIdExt) MessageType ¶ added in v1.2.0
func (tonBlockIdExt *TonBlockIdExt) MessageType() string
MessageType return the string telegram-type of TonBlockIdExt
type TonInitRequest ¶ added in v1.0.0
type TonMessage ¶ added in v1.0.0
type TonMessage interface {
MessageType() string
}
TonMessage is the interface for all messages send and received to/from tonlib
type TonlibConfigFile ¶ added in v1.0.0
type TonlibConfigFile struct { Config TonlibConfigFileConfig `json:"config"` Keystore KeyStoreType `json:"keystore_type"` }
type TonlibConfigFileConfig ¶ added in v1.0.0
type TonlibConfigFileConfig struct { Config TonlibConfigServer `json:"config"` BlockchainName string `json:"blockchain_name"` UseCallbacksForNetwork bool `json:"use_callbacks_for_network"` IgnoreCache bool `json:"ignore_cache"` }
type TonlibConfigServer ¶ added in v1.0.0
type TonlibConfigServer struct { Liteservers []TonlibListenserverConfig `json:"liteservers"` Validator ValidatorConfig `json:"validator"` }
type TonlibListenserverConfig ¶ added in v1.0.0
type TvmCell ¶ added in v1.0.0
type TvmCell struct { Bytes string `json:"bytes"` // // contains filtered or unexported fields }
TvmCell
func (*TvmCell) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of TvmCell
type TvmList ¶ added in v1.0.0
type TvmList struct { Elements []TvmStackEntry `json:"elements"` // // contains filtered or unexported fields }
TvmList
func NewTvmList ¶ added in v1.0.0
func NewTvmList(elements []TvmStackEntry) *TvmList
NewTvmList creates a new TvmList
@param elements
func (*TvmList) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of TvmList
type TvmNumberDecimal ¶ added in v1.0.0
type TvmNumberDecimal struct { Number string `json:"number"` // // contains filtered or unexported fields }
TvmNumberDecimal
func NewTvmNumberDecimal ¶ added in v1.0.0
func NewTvmNumberDecimal(number string) *TvmNumberDecimal
NewTvmNumberDecimal creates a new TvmNumberDecimal
@param number
func (*TvmNumberDecimal) MessageType ¶ added in v1.0.0
func (tvmNumberDecimal *TvmNumberDecimal) MessageType() string
MessageType return the string telegram-type of TvmNumberDecimal
type TvmSlice ¶ added in v1.0.0
type TvmSlice struct { Bytes string `json:"bytes"` // // contains filtered or unexported fields }
TvmSlice
func (*TvmSlice) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of TvmSlice
type TvmStackEntry ¶ added in v1.0.0
type TvmStackEntry interface{}
type TvmStackEntryCell ¶ added in v1.0.0
type TvmStackEntryCell struct { Cell *TvmCell `json:"cell"` // // contains filtered or unexported fields }
TvmStackEntryCell
func NewTvmStackEntryCell ¶ added in v1.0.0
func NewTvmStackEntryCell(cell *TvmCell) *TvmStackEntryCell
NewTvmStackEntryCell creates a new TvmStackEntryCell
@param cell
func (*TvmStackEntryCell) MessageType ¶ added in v1.0.0
func (tvmStackEntryCell *TvmStackEntryCell) MessageType() string
MessageType return the string telegram-type of TvmStackEntryCell
type TvmStackEntryList ¶ added in v1.0.0
type TvmStackEntryList struct { List *TvmList `json:"list"` // // contains filtered or unexported fields }
TvmStackEntryList
func NewTvmStackEntryList ¶ added in v1.0.0
func NewTvmStackEntryList(list *TvmList) *TvmStackEntryList
NewTvmStackEntryList creates a new TvmStackEntryList
@param list
func (*TvmStackEntryList) MessageType ¶ added in v1.0.0
func (tvmStackEntryList *TvmStackEntryList) MessageType() string
MessageType return the string telegram-type of TvmStackEntryList
type TvmStackEntryNumber ¶ added in v1.0.0
type TvmStackEntryNumber struct { Number TvmNumber `json:"number"` // // contains filtered or unexported fields }
TvmStackEntryNumber
func NewTvmStackEntryNumber ¶ added in v1.0.0
func NewTvmStackEntryNumber(number TvmNumber) *TvmStackEntryNumber
NewTvmStackEntryNumber creates a new TvmStackEntryNumber
@param number
func (*TvmStackEntryNumber) MessageType ¶ added in v1.0.0
func (tvmStackEntryNumber *TvmStackEntryNumber) MessageType() string
MessageType return the string telegram-type of TvmStackEntryNumber
type TvmStackEntrySlice ¶ added in v1.0.0
type TvmStackEntrySlice struct { Slice *TvmSlice `json:"slice"` // // contains filtered or unexported fields }
TvmStackEntrySlice
func NewTvmStackEntrySlice ¶ added in v1.0.0
func NewTvmStackEntrySlice(slice *TvmSlice) *TvmStackEntrySlice
NewTvmStackEntrySlice creates a new TvmStackEntrySlice
@param slice
func (*TvmStackEntrySlice) MessageType ¶ added in v1.0.0
func (tvmStackEntrySlice *TvmStackEntrySlice) MessageType() string
MessageType return the string telegram-type of TvmStackEntrySlice
type TvmStackEntryTuple ¶ added in v1.0.0
type TvmStackEntryTuple struct { Tuple *TvmTuple `json:"tuple"` // // contains filtered or unexported fields }
TvmStackEntryTuple
func NewTvmStackEntryTuple ¶ added in v1.0.0
func NewTvmStackEntryTuple(tuple *TvmTuple) *TvmStackEntryTuple
NewTvmStackEntryTuple creates a new TvmStackEntryTuple
@param tuple
func (*TvmStackEntryTuple) MessageType ¶ added in v1.0.0
func (tvmStackEntryTuple *TvmStackEntryTuple) MessageType() string
MessageType return the string telegram-type of TvmStackEntryTuple
type TvmStackEntryUnsupported ¶ added in v1.0.0
type TvmStackEntryUnsupported struct {
// contains filtered or unexported fields
}
TvmStackEntryUnsupported
func NewTvmStackEntryUnsupported ¶ added in v1.0.0
func NewTvmStackEntryUnsupported() *TvmStackEntryUnsupported
NewTvmStackEntryUnsupported creates a new TvmStackEntryUnsupported
func (*TvmStackEntryUnsupported) MessageType ¶ added in v1.0.0
func (tvmStackEntryUnsupported *TvmStackEntryUnsupported) MessageType() string
MessageType return the string telegram-type of TvmStackEntryUnsupported
type TvmTuple ¶ added in v1.0.0
type TvmTuple struct { Elements []TvmStackEntry `json:"elements"` // // contains filtered or unexported fields }
TvmTuple
func NewTvmTuple ¶ added in v1.0.0
func NewTvmTuple(elements []TvmStackEntry) *TvmTuple
NewTvmTuple creates a new TvmTuple
@param elements
func (*TvmTuple) MessageType ¶ added in v1.0.0
MessageType return the string telegram-type of TvmTuple
type UninitedAccountState ¶ added in v1.0.0
type UninitedAccountState struct { FrozenHash string `json:"frozen_hash"` // // contains filtered or unexported fields }
UninitedAccountState
func NewUninitedAccountState ¶ added in v1.0.0
func NewUninitedAccountState(frozenHash string) *UninitedAccountState
NewUninitedAccountState creates a new UninitedAccountState
@param frozenHash
func (*UninitedAccountState) MessageType ¶ added in v1.0.0
func (uninitedAccountState *UninitedAccountState) MessageType() string
MessageType return the string telegram-type of UninitedAccountState
type UnpackedAccountAddress ¶ added in v1.0.0
type UnpackedAccountAddress struct { Addr string `json:"addr"` // Bounceable bool `json:"bounceable"` // Testnet bool `json:"testnet"` // WorkchainId int32 `json:"workchain_id"` // // contains filtered or unexported fields }
UnpackedAccountAddress
func NewUnpackedAccountAddress ¶ added in v1.0.0
func NewUnpackedAccountAddress(addr string, bounceable bool, testnet bool, workchainId int32) *UnpackedAccountAddress
NewUnpackedAccountAddress creates a new UnpackedAccountAddress
@param addr @param bounceable @param testnet @param workchainId
func (*UnpackedAccountAddress) MessageType ¶ added in v1.0.0
func (unpackedAccountAddress *UnpackedAccountAddress) MessageType() string
MessageType return the string telegram-type of UnpackedAccountAddress
type UpdateSendLiteServerQuery ¶ added in v1.0.0
type UpdateSendLiteServerQuery struct { Data string `json:"data"` // Id JSONInt64 `json:"id"` // // contains filtered or unexported fields }
UpdateSendLiteServerQuery
func NewUpdateSendLiteServerQuery ¶ added in v1.0.0
func NewUpdateSendLiteServerQuery(data string, id JSONInt64) *UpdateSendLiteServerQuery
NewUpdateSendLiteServerQuery creates a new UpdateSendLiteServerQuery
@param data @param id
func (*UpdateSendLiteServerQuery) MessageType ¶ added in v1.0.0
func (updateSendLiteServerQuery *UpdateSendLiteServerQuery) MessageType() string
MessageType return the string telegram-type of UpdateSendLiteServerQuery
type UpdateSyncState ¶ added in v1.0.0
type UpdateSyncState struct { SyncState *SyncState `json:"sync_state"` // // contains filtered or unexported fields }
UpdateSyncState
func NewUpdateSyncState ¶ added in v1.0.0
func NewUpdateSyncState(syncState *SyncState) *UpdateSyncState
NewUpdateSyncState creates a new UpdateSyncState
@param syncState
func (*UpdateSyncState) MessageType ¶ added in v1.0.0
func (updateSyncState *UpdateSyncState) MessageType() string
MessageType return the string telegram-type of UpdateSyncState
type ValidatorConfig ¶
type WalletAccountState ¶ added in v1.0.0
type WalletAccountState struct { Seqno int32 `json:"seqno"` // // contains filtered or unexported fields }
WalletAccountState
func NewWalletAccountState ¶ added in v1.0.0
func NewWalletAccountState(seqno int32) *WalletAccountState
NewWalletAccountState creates a new WalletAccountState
@param seqno
func (*WalletAccountState) MessageType ¶ added in v1.0.0
func (walletAccountState *WalletAccountState) MessageType() string
MessageType return the string telegram-type of WalletAccountState
type WalletHighloadV1AccountState ¶ added in v1.2.0
type WalletHighloadV1AccountState struct { Seqno int32 `json:"seqno"` // WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
WalletHighloadV1AccountState
func NewWalletHighloadV1AccountState ¶ added in v1.2.0
func NewWalletHighloadV1AccountState(seqno int32, walletId JSONInt64) *WalletHighloadV1AccountState
NewWalletHighloadV1AccountState creates a new WalletHighloadV1AccountState
@param seqno @param walletId
func (*WalletHighloadV1AccountState) MessageType ¶ added in v1.2.0
func (walletHighloadV1AccountState *WalletHighloadV1AccountState) MessageType() string
MessageType return the string telegram-type of WalletHighloadV1AccountState
type WalletHighloadV1InitialAccountState ¶ added in v1.2.0
type WalletHighloadV1InitialAccountState struct { PublicKey string `json:"public_key"` // WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
WalletHighloadV1InitialAccountState
func NewWalletHighloadV1InitialAccountState ¶ added in v1.2.0
func NewWalletHighloadV1InitialAccountState(publicKey string, walletId JSONInt64) *WalletHighloadV1InitialAccountState
NewWalletHighloadV1InitialAccountState creates a new WalletHighloadV1InitialAccountState
@param publicKey @param walletId
func (*WalletHighloadV1InitialAccountState) MessageType ¶ added in v1.2.0
func (walletHighloadV1InitialAccountState *WalletHighloadV1InitialAccountState) MessageType() string
MessageType return the string telegram-type of WalletHighloadV1InitialAccountState
type WalletHighloadV2AccountState ¶ added in v1.2.0
type WalletHighloadV2AccountState struct { WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
WalletHighloadV2AccountState
func NewWalletHighloadV2AccountState ¶ added in v1.2.0
func NewWalletHighloadV2AccountState(walletId JSONInt64) *WalletHighloadV2AccountState
NewWalletHighloadV2AccountState creates a new WalletHighloadV2AccountState
@param walletId
func (*WalletHighloadV2AccountState) MessageType ¶ added in v1.2.0
func (walletHighloadV2AccountState *WalletHighloadV2AccountState) MessageType() string
MessageType return the string telegram-type of WalletHighloadV2AccountState
type WalletHighloadV2InitialAccountState ¶ added in v1.2.0
type WalletHighloadV2InitialAccountState struct { PublicKey string `json:"public_key"` // WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
WalletHighloadV2InitialAccountState
func NewWalletHighloadV2InitialAccountState ¶ added in v1.2.0
func NewWalletHighloadV2InitialAccountState(publicKey string, walletId JSONInt64) *WalletHighloadV2InitialAccountState
NewWalletHighloadV2InitialAccountState creates a new WalletHighloadV2InitialAccountState
@param publicKey @param walletId
func (*WalletHighloadV2InitialAccountState) MessageType ¶ added in v1.2.0
func (walletHighloadV2InitialAccountState *WalletHighloadV2InitialAccountState) MessageType() string
MessageType return the string telegram-type of WalletHighloadV2InitialAccountState
type WalletInitialAccountState ¶ added in v1.0.0
type WalletInitialAccountState struct { PublicKey string `json:"public_key"` // // contains filtered or unexported fields }
WalletInitialAccountState
func NewWalletInitialAccountState ¶ added in v1.0.0
func NewWalletInitialAccountState(publicKey string) *WalletInitialAccountState
NewWalletInitialAccountState creates a new WalletInitialAccountState
@param publicKey
func (*WalletInitialAccountState) MessageType ¶ added in v1.0.0
func (walletInitialAccountState *WalletInitialAccountState) MessageType() string
MessageType return the string telegram-type of WalletInitialAccountState
type WalletV3AccountState ¶ added in v1.0.0
type WalletV3AccountState struct { Seqno int32 `json:"seqno"` // WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
WalletV3AccountState
func NewWalletV3AccountState ¶ added in v1.0.0
func NewWalletV3AccountState(seqno int32, walletId JSONInt64) *WalletV3AccountState
NewWalletV3AccountState creates a new WalletV3AccountState
@param seqno @param walletId
func (*WalletV3AccountState) MessageType ¶ added in v1.0.0
func (walletV3AccountState *WalletV3AccountState) MessageType() string
MessageType return the string telegram-type of WalletV3AccountState
type WalletV3InitialAccountState ¶ added in v1.0.0
type WalletV3InitialAccountState struct { PublicKey string `json:"public_key"` // WalletId JSONInt64 `json:"wallet_id"` // // contains filtered or unexported fields }
WalletV3InitialAccountState
func NewWalletV3InitialAccountState ¶ added in v1.0.0
func NewWalletV3InitialAccountState(publicKey string, walletId JSONInt64) *WalletV3InitialAccountState
NewWalletV3InitialAccountState creates a new WalletV3InitialAccountState
@param publicKey @param walletId
func (*WalletV3InitialAccountState) MessageType ¶ added in v1.0.0
func (walletV3InitialAccountState *WalletV3InitialAccountState) MessageType() string
MessageType return the string telegram-type of WalletV3InitialAccountState