Documentation
¶
Index ¶
- Constants
- type AccountState
- type AccountStatus
- type AccountStorage
- type AnyMessage
- type BlockInfo
- type DepthBalanceInfo
- type ExternalMessageIn
- type ExternalMessageOut
- type Grams
- type InternalMessage
- func (m *InternalMessage) Comment() string
- func (m *InternalMessage) DestAddr() *address.Address
- func (m *InternalMessage) Dump() string
- func (m *InternalMessage) LoadFromCell(loader *cell.LoadCell) error
- func (m *InternalMessage) Payload() *cell.Cell
- func (m *InternalMessage) SenderAddr() *address.Address
- func (m *InternalMessage) ToCell() (*cell.Cell, error)
- type Message
- type MsgType
- type StateInit
- type StorageInfo
- type StorageUsed
- type TickTock
- type Transaction
- type TxHash
Constants ¶
View Source
const ( AccountStatusActive = "ACTIVE" AccountStatusUninit = "UNINIT" AccountStatusFrozen = "FROZEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountState ¶ added in v0.3.0
type AccountState struct {
IsValid bool
Address *address.Address
StorageInfo StorageInfo
AccountStorage
}
func (*AccountState) LoadFromCell ¶ added in v0.3.0
func (a *AccountState) LoadFromCell(loader *cell.LoadCell) error
type AccountStatus ¶ added in v0.5.0
type AccountStatus string
type AccountStorage ¶ added in v0.3.0
type AccountStorage struct {
Status AccountStatus
LastTransactionLT uint64
Balance *Grams
}
func (*AccountStorage) LoadFromCell ¶ added in v0.3.0
func (s *AccountStorage) LoadFromCell(loader *cell.LoadCell) error
type AnyMessage ¶ added in v0.6.0
type DepthBalanceInfo ¶ added in v0.5.0
func (*DepthBalanceInfo) LoadFromCell ¶ added in v0.5.0
func (d *DepthBalanceInfo) LoadFromCell(loader *cell.LoadCell) error
type ExternalMessageIn ¶ added in v0.5.0
type ExternalMessageIn struct {
SrcAddr *address.Address
DstAddr *address.Address
ImportFee *Grams
StateInit *StateInit
Body *cell.Cell
}
func (*ExternalMessageIn) DestAddr ¶ added in v0.5.0
func (m *ExternalMessageIn) DestAddr() *address.Address
func (*ExternalMessageIn) LoadFromCell ¶ added in v0.5.0
func (m *ExternalMessageIn) LoadFromCell(loader *cell.LoadCell) error
func (*ExternalMessageIn) Payload ¶ added in v0.6.0
func (m *ExternalMessageIn) Payload() *cell.Cell
func (*ExternalMessageIn) SenderAddr ¶ added in v0.6.0
func (m *ExternalMessageIn) SenderAddr() *address.Address
type ExternalMessageOut ¶ added in v0.5.0
type ExternalMessageOut struct {
SrcAddr *address.Address
DstAddr *address.Address
CreatedLT uint64
CreatedAt uint32
StateInit *StateInit
Body *cell.Cell
}
func (*ExternalMessageOut) DestAddr ¶ added in v0.5.0
func (m *ExternalMessageOut) DestAddr() *address.Address
func (*ExternalMessageOut) LoadFromCell ¶ added in v0.5.0
func (m *ExternalMessageOut) LoadFromCell(loader *cell.LoadCell) error
func (*ExternalMessageOut) Payload ¶ added in v0.6.0
func (m *ExternalMessageOut) Payload() *cell.Cell
func (*ExternalMessageOut) SenderAddr ¶ added in v0.6.0
func (m *ExternalMessageOut) SenderAddr() *address.Address
type Grams ¶ added in v0.3.0
func (*Grams) MarshalJSON ¶ added in v0.6.0
func (*Grams) MustFromTON ¶ added in v0.6.0
type InternalMessage ¶ added in v0.5.0
type InternalMessage struct {
IHRDisabled bool
Bounce bool
Bounced bool
SrcAddr *address.Address
DstAddr *address.Address
Amount *Grams
ExtraCurrencies *cell.Dictionary
IHRFee *Grams
FwdFee *Grams
CreatedLT uint64
CreatedAt uint32
StateInit *StateInit
Body *cell.Cell
}
func (*InternalMessage) Comment ¶ added in v0.6.0
func (m *InternalMessage) Comment() string
func (*InternalMessage) DestAddr ¶ added in v0.6.0
func (m *InternalMessage) DestAddr() *address.Address
func (*InternalMessage) Dump ¶ added in v0.5.0
func (m *InternalMessage) Dump() string
func (*InternalMessage) LoadFromCell ¶ added in v0.5.0
func (m *InternalMessage) LoadFromCell(loader *cell.LoadCell) error
func (*InternalMessage) Payload ¶ added in v0.6.0
func (m *InternalMessage) Payload() *cell.Cell
func (*InternalMessage) SenderAddr ¶ added in v0.6.0
func (m *InternalMessage) SenderAddr() *address.Address
type Message ¶ added in v0.5.0
type Message struct {
MsgType MsgType
Msg AnyMessage
}
func (*Message) AsExternalIn ¶ added in v0.5.0
func (m *Message) AsExternalIn() *ExternalMessageIn
func (*Message) AsExternalOut ¶ added in v0.5.0
func (m *Message) AsExternalOut() *ExternalMessageOut
func (*Message) AsInternal ¶ added in v0.5.0
func (m *Message) AsInternal() *InternalMessage
type StateInit ¶ added in v0.5.0
type StateInit struct {
Depth *uint64
TickTock *TickTock
Data *cell.Cell
Code *cell.Cell
Lib *cell.Dictionary
}
func (*StateInit) LoadFromCell ¶ added in v0.5.0
type StorageInfo ¶ added in v0.3.0
type StorageInfo struct {
StorageUsed StorageUsed
LastPaid uint32
DuePayment *big.Int
}
func (*StorageInfo) LoadFromCell ¶ added in v0.3.0
func (s *StorageInfo) LoadFromCell(loader *cell.LoadCell) error
type StorageUsed ¶ added in v0.3.0
func (*StorageUsed) LoadFromCell ¶ added in v0.3.0
func (s *StorageUsed) LoadFromCell(loader *cell.LoadCell) error
type Transaction ¶ added in v0.5.0
func (*Transaction) Dump ¶ added in v0.5.0
func (t *Transaction) Dump() string
func (*Transaction) LoadFromCell ¶ added in v0.5.0
func (t *Transaction) LoadFromCell(loader *cell.LoadCell) error
func (*Transaction) String ¶ added in v0.5.0
func (t *Transaction) String() string
Click to show internal directories.
Click to hide internal directories.