cell

package
v0.0.0-...-54f08f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErNotFit1024 = errors.New("cell data size should fit into 1024 bits")
View Source
var ErrNoMoreRefs = errors.New("no more refs exists")
View Source
var ErrNotEnoughData = errors.New("not enough data in reader")
View Source
var ErrSmallSlice = errors.New("too small slice for this size")
View Source
var ErrTooBigSize = errors.New("too big size")
View Source
var ErrTooBigValue = errors.New("too big value")
View Source
var ErrTooMuchRefs = errors.New("too much refs")

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func BeginCell

func BeginCell() *Builder

func (*Builder) BitsLeft

func (b *Builder) BitsLeft() int

func (*Builder) BitsUsed

func (b *Builder) BitsUsed() int

func (*Builder) Copy

func (b *Builder) Copy() *Builder

func (*Builder) EndCell

func (b *Builder) EndCell() *Cell

func (*Builder) MustStoreAddr

func (b *Builder) MustStoreAddr(addr *address.Address) *Builder

func (*Builder) MustStoreBigCoins

func (b *Builder) MustStoreBigCoins(value *big.Int) *Builder

func (*Builder) MustStoreBigInt

func (b *Builder) MustStoreBigInt(value *big.Int, sz int) *Builder

func (*Builder) MustStoreBoolBit

func (b *Builder) MustStoreBoolBit(value bool) *Builder

func (*Builder) MustStoreBuilder

func (b *Builder) MustStoreBuilder(builder *Builder) *Builder

func (*Builder) MustStoreCoins

func (b *Builder) MustStoreCoins(value uint64) *Builder

func (*Builder) MustStoreMaybeRef

func (b *Builder) MustStoreMaybeRef(ref *Cell) *Builder

func (*Builder) MustStoreRef

func (b *Builder) MustStoreRef(ref *Cell) *Builder

func (*Builder) MustStoreSlice

func (b *Builder) MustStoreSlice(bytes []byte, sz int) *Builder

func (*Builder) MustStoreUInt

func (b *Builder) MustStoreUInt(value uint64, sz int) *Builder

func (*Builder) RefsLeft

func (b *Builder) RefsLeft() int

func (*Builder) RefsUsed

func (b *Builder) RefsUsed() int

func (*Builder) StoreAddr

func (b *Builder) StoreAddr(addr *address.Address) error

func (*Builder) StoreBigCoins

func (b *Builder) StoreBigCoins(value *big.Int) error

func (*Builder) StoreBigInt

func (b *Builder) StoreBigInt(value *big.Int, sz int) error

func (*Builder) StoreBoolBit

func (b *Builder) StoreBoolBit(value bool) error

func (*Builder) StoreBuilder

func (b *Builder) StoreBuilder(builder *Builder) error

func (*Builder) StoreCoins

func (b *Builder) StoreCoins(value uint64) error

func (*Builder) StoreMaybeRef

func (b *Builder) StoreMaybeRef(ref *Cell) error

func (*Builder) StoreRef

func (b *Builder) StoreRef(ref *Cell) error

func (*Builder) StoreSlice

func (b *Builder) StoreSlice(bytes []byte, sz int) error

func (*Builder) StoreUInt

func (b *Builder) StoreUInt(value uint64, sz int) error

type Cell

type Cell struct {
	// contains filtered or unexported fields
}

func FromBOC

func FromBOC(data []byte) (*Cell, error)

func FromBOCMultiRoot

func FromBOCMultiRoot(data []byte) ([]*Cell, error)

func (*Cell) BeginParse

func (c *Cell) BeginParse() *LoadCell

func (*Cell) BitsSize

func (c *Cell) BitsSize() int

func (*Cell) Dump

func (c *Cell) Dump() string

func (*Cell) DumpBits

func (c *Cell) DumpBits() string

func (*Cell) Hash

func (c *Cell) Hash() []byte

func (*Cell) RefsNum

func (c *Cell) RefsNum() int

func (*Cell) Sign

func (c *Cell) Sign(key ed25519.PrivateKey) []byte

func (*Cell) ToBOC

func (c *Cell) ToBOC() []byte

func (*Cell) ToBOCWithFlags

func (c *Cell) ToBOCWithFlags(withCRC bool) []byte

func (*Cell) ToBuilder

func (c *Cell) ToBuilder() *Builder

type Dictionary

type Dictionary struct {
	// contains filtered or unexported fields
}

func (*Dictionary) All

func (d *Dictionary) All() []*HashmapKV

func (*Dictionary) Get

func (d *Dictionary) Get(key *Cell) *Cell

type HashmapKV

type HashmapKV struct {
	Key   *Cell
	Value *Cell
}

type LoadCell

type LoadCell struct {
	// contains filtered or unexported fields
}

func (*LoadCell) BitsLeft

func (c *LoadCell) BitsLeft() int

func (*LoadCell) Copy

func (c *LoadCell) Copy() *LoadCell

func (*LoadCell) LoadAddr

func (c *LoadCell) LoadAddr() (*address.Address, error)

func (*LoadCell) LoadBigCoins

func (c *LoadCell) LoadBigCoins() (*big.Int, error)

func (*LoadCell) LoadBigInt

func (c *LoadCell) LoadBigInt(sz int) (*big.Int, error)

func (*LoadCell) LoadBoolBit

func (c *LoadCell) LoadBoolBit() (bool, error)

func (*LoadCell) LoadCoins

func (c *LoadCell) LoadCoins() (uint64, error)

func (*LoadCell) LoadDict

func (c *LoadCell) LoadDict(keySz int) (*Dictionary, error)

func (*LoadCell) LoadMaybeRef

func (c *LoadCell) LoadMaybeRef() (*LoadCell, error)

func (*LoadCell) LoadRef

func (c *LoadCell) LoadRef() (*LoadCell, error)

func (*LoadCell) LoadSlice

func (c *LoadCell) LoadSlice(sz int) ([]byte, error)

func (*LoadCell) LoadUInt

func (c *LoadCell) LoadUInt(sz int) (uint64, error)

func (*LoadCell) LoadVarUInt

func (c *LoadCell) LoadVarUInt(sz int) (*big.Int, error)

func (*LoadCell) MustLoadAddr

func (c *LoadCell) MustLoadAddr() *address.Address

func (*LoadCell) MustLoadBigCoins

func (c *LoadCell) MustLoadBigCoins() *big.Int

func (*LoadCell) MustLoadBigInt

func (c *LoadCell) MustLoadBigInt(sz int) *big.Int

func (*LoadCell) MustLoadBoolBit

func (c *LoadCell) MustLoadBoolBit() bool

func (*LoadCell) MustLoadCoins

func (c *LoadCell) MustLoadCoins() uint64

func (*LoadCell) MustLoadMaybeRef

func (c *LoadCell) MustLoadMaybeRef() *LoadCell

func (*LoadCell) MustLoadRef

func (c *LoadCell) MustLoadRef() *LoadCell

func (*LoadCell) MustLoadSlice

func (c *LoadCell) MustLoadSlice(sz int) []byte

func (*LoadCell) MustLoadUInt

func (c *LoadCell) MustLoadUInt(sz int) uint64

func (*LoadCell) MustToCell

func (c *LoadCell) MustToCell() *Cell

func (*LoadCell) RefsNum

func (c *LoadCell) RefsNum() int

func (*LoadCell) RestBits

func (c *LoadCell) RestBits() (int, []byte, error)

func (*LoadCell) ToCell

func (c *LoadCell) ToCell() (*Cell, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL