Documentation ¶
Index ¶
- Variables
- func CheckProof(proof *Cell, hash []byte) error
- type Builder
- func (b *Builder) BitsLeft() uint
- func (b *Builder) BitsUsed() uint
- func (b *Builder) Copy() *Builder
- func (b *Builder) EndCell() *Cell
- func (b *Builder) MustStoreAddr(addr *address.Address) *Builder
- func (b *Builder) MustStoreBigCoins(value *big.Int) *Builder
- func (b *Builder) MustStoreBigInt(value *big.Int, sz uint) *Builder
- func (b *Builder) MustStoreBigUInt(value *big.Int, sz uint) *Builder
- func (b *Builder) MustStoreBinarySnake(data []byte) *Builder
- func (b *Builder) MustStoreBoolBit(value bool) *Builder
- func (b *Builder) MustStoreBuilder(builder *Builder) *Builder
- func (b *Builder) MustStoreCoins(value uint64) *Builder
- func (b *Builder) MustStoreDict(dict *Dictionary) *Builder
- func (b *Builder) MustStoreInt(value int64, sz uint) *Builder
- func (b *Builder) MustStoreMaybeRef(ref *Cell) *Builder
- func (b *Builder) MustStoreRef(ref *Cell) *Builder
- func (b *Builder) MustStoreSlice(bytes []byte, sz uint) *Builder
- func (b *Builder) MustStoreStringSnake(str string) *Builder
- func (b *Builder) MustStoreUInt(value uint64, sz uint) *Builder
- func (b *Builder) RefsLeft() uint
- func (b *Builder) RefsUsed() int
- func (b *Builder) StoreAddr(addr *address.Address) error
- func (b *Builder) StoreBigCoins(value *big.Int) error
- func (b *Builder) StoreBigInt(value *big.Int, sz uint) error
- func (b *Builder) StoreBigUInt(value *big.Int, sz uint) error
- func (b *Builder) StoreBinarySnake(data []byte) error
- func (b *Builder) StoreBoolBit(value bool) error
- func (b *Builder) StoreBuilder(builder *Builder) error
- func (b *Builder) StoreCoins(value uint64) error
- func (b *Builder) StoreDict(dict *Dictionary) error
- func (b *Builder) StoreInt(value int64, sz uint) error
- func (b *Builder) StoreMaybeRef(ref *Cell) error
- func (b *Builder) StoreRef(ref *Cell) error
- func (b *Builder) StoreSlice(bytes []byte, sz uint) error
- func (b *Builder) StoreStringSnake(str string) error
- func (b *Builder) StoreUInt(value uint64, sz uint) error
- type Cell
- func (c *Cell) BeginParse() *Slice
- func (c *Cell) BitsSize() uint
- func (c *Cell) CreateProof(parts [][]byte) (*Cell, error)
- func (c *Cell) Dump() string
- func (c *Cell) DumpBits() string
- func (c *Cell) Hash() []byte
- func (c *Cell) RefsNum() uint
- func (c *Cell) Sign(key ed25519.PrivateKey) []byte
- func (c *Cell) ToBOC() []byte
- func (c *Cell) ToBOCWithFlags(withCRC bool) []byte
- func (c *Cell) ToBuilder() *Builder
- type Dictionary
- func (d *Dictionary) All() []*HashmapKV
- func (d *Dictionary) Get(key *Cell) *Cell
- func (d *Dictionary) GetByIntKey(key *big.Int) *Cell
- func (d *Dictionary) MustToCell() *Cell
- func (d *Dictionary) Set(key, value *Cell) error
- func (d *Dictionary) SetIntKey(key *big.Int, value *Cell) error
- func (d *Dictionary) ToCell() (*Cell, error)
- type HashmapKV
- type Slice
- func (c *Slice) BitsLeft() uint
- func (c *Slice) Copy() *Slice
- func (c *Slice) LoadAddr() (*address.Address, error)
- func (c *Slice) LoadBigCoins() (*big.Int, error)
- func (c *Slice) LoadBigInt(sz uint) (*big.Int, error)
- func (c *Slice) LoadBigUInt(sz uint) (*big.Int, error)
- func (c *Slice) LoadBinarySnake() ([]byte, error)
- func (c *Slice) LoadBoolBit() (bool, error)
- func (c *Slice) LoadCoins() (uint64, error)
- func (c *Slice) LoadDict(keySz uint) (*Dictionary, error)
- func (c *Slice) LoadInt(sz uint) (int64, error)
- func (c *Slice) LoadMaybeRef() (*Slice, error)
- func (c *Slice) LoadRef() (*Slice, error)
- func (c *Slice) LoadSlice(sz uint) ([]byte, error)
- func (c *Slice) LoadStringSnake() (string, error)
- func (c *Slice) LoadUInt(sz uint) (uint64, error)
- func (c *Slice) LoadVarUInt(sz uint) (*big.Int, error)
- func (c *Slice) MustLoadAddr() *address.Address
- func (c *Slice) MustLoadBigCoins() *big.Int
- func (c *Slice) MustLoadBigUInt(sz uint) *big.Int
- func (c *Slice) MustLoadBinarySnake() []byte
- func (c *Slice) MustLoadBoolBit() bool
- func (c *Slice) MustLoadCoins() uint64
- func (c *Slice) MustLoadDict(keySz uint) *Dictionary
- func (c *Slice) MustLoadInt(sz uint) int64
- func (c *Slice) MustLoadMaybeRef() *Slice
- func (c *Slice) MustLoadRef() *Slice
- func (c *Slice) MustLoadSlice(sz uint) []byte
- func (c *Slice) MustLoadStringSnake() string
- func (c *Slice) MustLoadUInt(sz uint) uint64
- func (c *Slice) MustToCell() *Cell
- func (c *Slice) RefsNum() int
- func (c *Slice) RestBits() (uint, []byte, error)
- func (c *Slice) ToCell() (*Cell, error)
- func (c *Slice) ToDict(keySz uint) (*Dictionary, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAddressTypeNotSupported = errors.New("address type is not supported")
View Source
var ErrNegative = errors.New("value should be non negative")
View Source
var ErrNoMoreRefs = errors.New("no more refs exists")
View Source
var ErrNotEnoughData = errors.New("not enough data in reader")
View Source
var ErrNotFit1023 = errors.New("cell data size should fit into 1023 bits")
View Source
var ErrRefCannotBeNil = errors.New("ref cannot be nil")
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 ¶
func CheckProof ¶ added in v1.6.0
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) MustStoreAddr ¶ added in v0.4.0
func (*Builder) MustStoreBigInt ¶
func (*Builder) MustStoreBigUInt ¶ added in v1.0.0
func (*Builder) MustStoreBinarySnake ¶ added in v1.1.0
func (*Builder) MustStoreBoolBit ¶ added in v0.6.0
func (*Builder) MustStoreBuilder ¶ added in v0.6.0
func (*Builder) MustStoreCoins ¶
func (*Builder) MustStoreDict ¶ added in v1.0.0
func (b *Builder) MustStoreDict(dict *Dictionary) *Builder
func (*Builder) MustStoreInt ¶ added in v1.0.0
func (*Builder) MustStoreMaybeRef ¶ added in v0.7.0
func (*Builder) MustStoreRef ¶
func (*Builder) MustStoreStringSnake ¶ added in v1.1.0
func (*Builder) StoreBigUInt ¶ added in v1.0.0
func (*Builder) StoreBinarySnake ¶ added in v1.1.0
func (*Builder) StoreBoolBit ¶ added in v0.6.0
func (*Builder) StoreBuilder ¶ added in v0.6.0
func (*Builder) StoreCoins ¶
func (*Builder) StoreDict ¶ added in v1.0.0
func (b *Builder) StoreDict(dict *Dictionary) error
func (*Builder) StoreMaybeRef ¶ added in v0.7.0
func (*Builder) StoreStringSnake ¶ added in v1.1.0
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func FromBOCMultiRoot ¶ added in v0.5.0
func (*Cell) BeginParse ¶
func (*Cell) CreateProof ¶ added in v1.6.0
func (*Cell) ToBOCWithFlags ¶
type Dictionary ¶ added in v0.5.0
type Dictionary struct {
// contains filtered or unexported fields
}
func NewDict ¶ added in v1.0.0
func NewDict(keySz uint) *Dictionary
func (*Dictionary) All ¶ added in v0.5.0
func (d *Dictionary) All() []*HashmapKV
func (*Dictionary) Get ¶ added in v0.5.0
func (d *Dictionary) Get(key *Cell) *Cell
func (*Dictionary) GetByIntKey ¶ added in v1.2.0
func (d *Dictionary) GetByIntKey(key *big.Int) *Cell
func (*Dictionary) MustToCell ¶ added in v1.0.0
func (d *Dictionary) MustToCell() *Cell
func (*Dictionary) Set ¶ added in v1.0.0
func (d *Dictionary) Set(key, value *Cell) error
func (*Dictionary) SetIntKey ¶ added in v1.1.0
func (d *Dictionary) SetIntKey(key *big.Int, value *Cell) error
func (*Dictionary) ToCell ¶ added in v1.0.0
func (d *Dictionary) ToCell() (*Cell, error)
type Slice ¶ added in v1.0.0
type Slice struct {
// contains filtered or unexported fields
}
func (*Slice) LoadBinarySnake ¶ added in v1.1.0
func (*Slice) LoadBoolBit ¶ added in v1.0.0
func (*Slice) LoadMaybeRef ¶ added in v1.0.0
func (*Slice) LoadStringSnake ¶ added in v1.1.0
func (*Slice) MustLoadAddr ¶ added in v1.0.0
func (*Slice) MustLoadBigCoins ¶ added in v1.0.0
func (*Slice) MustLoadBinarySnake ¶ added in v1.1.0
func (*Slice) MustLoadBoolBit ¶ added in v1.0.0
func (*Slice) MustLoadCoins ¶ added in v1.0.0
func (*Slice) MustLoadDict ¶ added in v1.0.1
func (c *Slice) MustLoadDict(keySz uint) *Dictionary
func (*Slice) MustLoadInt ¶ added in v1.0.0
func (*Slice) MustLoadMaybeRef ¶ added in v1.0.0
func (*Slice) MustLoadRef ¶ added in v1.0.0
func (*Slice) MustLoadSlice ¶ added in v1.0.0
func (*Slice) MustLoadStringSnake ¶ added in v1.1.0
func (*Slice) MustLoadUInt ¶ added in v1.0.0
func (*Slice) MustToCell ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.