Documentation ¶
Index ¶
- Constants
- Variables
- func CreateExternalMessage(address AccountID, body *boc.Cell, init *tlb.StateInit, importFee tlb.Grams) (tlb.Message, error)
- type AccountID
- func AccountIDFromBase64Url(s string) (AccountID, error)
- func AccountIDFromRaw(s string) (AccountID, error)
- func AccountIDFromTlb(a tlb.MsgAddress) (*AccountID, error)
- func MustParseAccountID(s string) AccountID
- func NewAccountId(id int32, addr [32]byte) *AccountID
- func ParseAccountID(s string) (AccountID, error)
- func (id AccountID) IsZero() bool
- func (id AccountID) MarshalJSON() ([]byte, error)
- func (id AccountID) MarshalTL() ([]byte, error)
- func (id AccountID) String() string
- func (id AccountID) ToHuman(bounce, testnet bool) string
- func (id *AccountID) ToMsgAddress() tlb.MsgAddress
- func (id AccountID) ToRaw() string
- func (id *AccountID) UnmarshalJSON(data []byte) error
- func (id *AccountID) UnmarshalTL(r io.Reader) error
- type AccountInfo
- type Bits256
- func (h Bits256) Base64() string
- func (h *Bits256) FromBase64(s string) error
- func (h *Bits256) FromBase64URL(s string) error
- func (h *Bits256) FromBytes(b []byte) error
- func (h *Bits256) FromHex(s string) error
- func (h *Bits256) FromUnknownString(s string) error
- func (h Bits256) Hex() string
- func (b Bits256) MarshalJSON() ([]byte, error)
- func (h *Bits256) Scan(src interface{}) error
- func (b *Bits256) UnmarshalJSON(buf []byte) error
- func (h Bits256) Value() (driver.Value, error)
- type BlockID
- type BlockIDExt
- type JettonMetadata
- type ShardID
- type Transaction
Constants ¶
View Source
const OneTON tlb.Grams = 1_000_000_000
Variables ¶
View Source
var BlockchainInterfaceIsNil = errors.New("blockchain interface is nil")
Functions ¶
Types ¶
type AccountID ¶
func AccountIDFromBase64Url ¶
func AccountIDFromRaw ¶
func AccountIDFromTlb ¶ added in v1.0.1
func AccountIDFromTlb(a tlb.MsgAddress) (*AccountID, error)
TODO: replace pointer with nullable type
func MustParseAccountID ¶
func NewAccountId ¶
func ParseAccountID ¶
func (AccountID) MarshalJSON ¶
func (*AccountID) ToMsgAddress ¶ added in v1.0.1
func (id *AccountID) ToMsgAddress() tlb.MsgAddress
func (*AccountID) UnmarshalJSON ¶
type AccountInfo ¶
type AccountInfo struct { Status tlb.AccountStatus Balance uint64 Data []byte Code []byte FrozenHash Bits256 LastTransactionLt uint64 }
func GetAccountInfo ¶ added in v1.0.1
func GetAccountInfo(a tlb.Account) (AccountInfo, error)
type Bits256 ¶ added in v1.0.1
func MustParseHash ¶
func (*Bits256) FromBase64 ¶ added in v1.0.1
func (*Bits256) FromBase64URL ¶ added in v1.0.1
func (*Bits256) FromUnknownString ¶ added in v1.0.1
func (Bits256) MarshalJSON ¶ added in v1.0.1
func (*Bits256) UnmarshalJSON ¶ added in v1.0.1
type BlockIDExt ¶ added in v1.0.1
func GetParents ¶ added in v1.0.1
func GetParents(i tlb.BlockInfo) ([]BlockIDExt, error)
func NewTonBlockId ¶
func NewTonBlockId(fileHash, rootHash Bits256, seqno uint32, shard uint64, workchain int32) *BlockIDExt
func ShardIDs ¶ added in v1.0.1
func ShardIDs(blk *tlb.Block) ([]BlockIDExt, error)
ShardIDs returns a list of IDs of shard blocks this block refers to.
func (BlockIDExt) MarshalTL ¶ added in v1.0.1
func (id BlockIDExt) MarshalTL() ([]byte, error)
func (BlockIDExt) String ¶ added in v1.0.1
func (id BlockIDExt) String() string
func (*BlockIDExt) UnmarshalTL ¶ added in v1.0.1
func (id *BlockIDExt) UnmarshalTL(data []byte) error
type JettonMetadata ¶
type JettonMetadata struct { Uri string `json:"uri,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Image string `json:"image,omitempty"` ImageData []byte `json:"image_data,omitempty"` Symbol string `json:"symbol,omitempty"` Decimals string `json:"decimals,omitempty"` }
type ShardID ¶
type ShardID struct {
// contains filtered or unexported fields
}
func MustParseShardID ¶
func ParseShardID ¶
func (ShardID) MatchAccountID ¶
func (ShardID) MatchBlockID ¶
type Transaction ¶
type Transaction struct { tlb.Transaction BlockID BlockIDExt }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.