tolk

package
v1.18.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v *Value, ty parser.Ty) (*boc.Cell, error)

func PrefixToUint

func PrefixToUint(prefix string) (uint64, error)

Types

type AliasValue

type AliasValue Value

func (*AliasValue) Equal

func (a *AliasValue) Equal(other any) bool

func (*AliasValue) Marshal

func (a *AliasValue) Marshal(cell *boc.Cell, ty parser.AliasRef, encoder *Encoder) error

func (*AliasValue) Unmarshal

func (a *AliasValue) Unmarshal(cell *boc.Cell, ty parser.AliasRef, decoder *Decoder) error

type Any

type Any boc.Cell

func (*Any) Equal

func (a *Any) Equal(o any) bool

func (*Any) Marshal

func (a *Any) Marshal(cell *boc.Cell, ty parser.Cell, encoder *Encoder) error

func (Any) MarshalJSON

func (a Any) MarshalJSON() ([]byte, error)

func (*Any) Unmarshal

func (a *Any) Unmarshal(cell *boc.Cell, ty parser.Cell, decoder *Decoder) error

func (*Any) UnmarshalJSON

func (a *Any) UnmarshalJSON(b []byte) error

type AnyAddress

type AnyAddress struct {
	SumType
	InternalAddress *InternalAddress
	NoneAddress     *NoneAddress
	ExternalAddress *ExternalAddress
	VarAddress      *VarAddress
}

func (*AnyAddress) Equal

func (a *AnyAddress) Equal(other any) bool

func (*AnyAddress) Marshal

func (a *AnyAddress) Marshal(cell *boc.Cell, ty parser.AddressAny, encoder *Encoder) error

func (AnyAddress) MarshalJSON

func (a AnyAddress) MarshalJSON() ([]byte, error)

func (*AnyAddress) Unmarshal

func (a *AnyAddress) Unmarshal(cell *boc.Cell, ty parser.AddressAny, decoder *Decoder) error

func (*AnyAddress) UnmarshalJSON

func (a *AnyAddress) UnmarshalJSON(b []byte) error

type BigInt

type BigInt big.Int

func (*BigInt) Equal

func (b *BigInt) Equal(other any) bool

func (*BigInt) Marshal

func (b *BigInt) Marshal(cell *boc.Cell, ty parser.IntN, encoder *Encoder) error

func (BigInt) MarshalJSON

func (b BigInt) MarshalJSON() ([]byte, error)

func (*BigInt) Unmarshal

func (b *BigInt) Unmarshal(cell *boc.Cell, ty parser.IntN, decoder *Decoder) error

func (*BigInt) UnmarshalJSON

func (b *BigInt) UnmarshalJSON(bytes []byte) error

type BigUInt

type BigUInt big.Int

func (*BigUInt) Equal

func (b *BigUInt) Equal(other any) bool

func (*BigUInt) Marshal

func (b *BigUInt) Marshal(cell *boc.Cell, ty parser.UintN, encoder *Encoder) error

func (BigUInt) MarshalJSON

func (b BigUInt) MarshalJSON() ([]byte, error)

func (*BigUInt) Unmarshal

func (b *BigUInt) Unmarshal(cell *boc.Cell, ty parser.UintN, decoder *Decoder) error

func (*BigUInt) UnmarshalJSON

func (b *BigUInt) UnmarshalJSON(bytes []byte) error

type Bits

type Bits boc.BitString

func (*Bits) Equal

func (b *Bits) Equal(other any) bool

func (*Bits) Marshal

func (b *Bits) Marshal(cell *boc.Cell, ty parser.BitsN, encoder *Encoder) error

func (Bits) MarshalJSON

func (b Bits) MarshalJSON() ([]byte, error)

func (*Bits) Unmarshal

func (b *Bits) Unmarshal(cell *boc.Cell, ty parser.BitsN, decoder *Decoder) error

func (*Bits) UnmarshalJSON

func (b *Bits) UnmarshalJSON(bytes []byte) error

type BoolValue

type BoolValue bool

func (*BoolValue) Equal

func (b *BoolValue) Equal(o any) bool

func (*BoolValue) Marshal

func (b *BoolValue) Marshal(cell *boc.Cell, ty parser.Bool, encoder *Encoder) error

func (*BoolValue) Unmarshal

func (b *BoolValue) Unmarshal(cell *boc.Cell, ty parser.Bool, decoder *Decoder) error

type CoinsValue

type CoinsValue big.Int

func (*CoinsValue) Equal

func (c *CoinsValue) Equal(other any) bool

func (*CoinsValue) Marshal

func (c *CoinsValue) Marshal(cell *boc.Cell, ty parser.Coins, encoder *Encoder) error

func (CoinsValue) MarshalJSON

func (c CoinsValue) MarshalJSON() ([]byte, error)

func (*CoinsValue) Unmarshal

func (c *CoinsValue) Unmarshal(cell *boc.Cell, ty parser.Coins, decoder *Decoder) error

func (*CoinsValue) UnmarshalJSON

func (c *CoinsValue) UnmarshalJSON(bytes []byte) error

type Decoder

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

func NewDecoder

func NewDecoder() *Decoder

func (*Decoder) Unmarshal

func (d *Decoder) Unmarshal(cell *boc.Cell, ty parser.Ty) (*Value, error)

func (*Decoder) UnmarshalMessage

func (d *Decoder) UnmarshalMessage(cell *boc.Cell) (*Value, error)

func (*Decoder) WithABIs

func (d *Decoder) WithABIs(abis ...parser.ABI) error

func (*Decoder) WithCustomUnpackResolver

func (d *Decoder) WithCustomUnpackResolver(customUnpackResolver customUnpackResolver)

type Encoder

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

func NewEncoder

func NewEncoder() *Encoder

func (*Encoder) Marshal

func (e *Encoder) Marshal(v *Value, ty parser.Ty) (*boc.Cell, error)

func (*Encoder) WithABIs

func (e *Encoder) WithABIs(abis ...parser.ABI) error

func (*Encoder) WithCustomPackResolver

func (e *Encoder) WithCustomPackResolver(customPackResolver customPackResolver)

type EnumValue

type EnumValue struct {
	ActualValue Value
	Name        string
	Value       big.Int
}

func (*EnumValue) Equal

func (e *EnumValue) Equal(other any) bool

func (*EnumValue) Marshal

func (e *EnumValue) Marshal(cell *boc.Cell, ty parser.EnumRef, encoder *Encoder) error

func (EnumValue) MarshalJSON

func (e EnumValue) MarshalJSON() ([]byte, error)

func (*EnumValue) Unmarshal

func (e *EnumValue) Unmarshal(cell *boc.Cell, ty parser.EnumRef, decoder *Decoder) error

type ExternalAddress

type ExternalAddress struct {
	Len     int16
	Address boc.BitString
}

func (*ExternalAddress) Equal

func (e *ExternalAddress) Equal(other any) bool

func (*ExternalAddress) Marshal

func (e *ExternalAddress) Marshal(cell *boc.Cell, ty parser.AddressExt, encoder *Encoder) error

func (ExternalAddress) MarshalJSON

func (e ExternalAddress) MarshalJSON() ([]byte, error)

func (*ExternalAddress) Unmarshal

func (e *ExternalAddress) Unmarshal(cell *boc.Cell, ty parser.AddressExt, decoder *Decoder) error

func (*ExternalAddress) UnmarshalJSON

func (e *ExternalAddress) UnmarshalJSON(b []byte) error

type GenericValue

type GenericValue Value

func (*GenericValue) Equal

func (g *GenericValue) Equal(other any) bool

func (*GenericValue) Marshal

func (g *GenericValue) Marshal(cell *boc.Cell, ty parser.Generic, encoder *Encoder) error

func (*GenericValue) Unmarshal

func (g *GenericValue) Unmarshal(cell *boc.Cell, ty parser.Generic, decoder *Decoder) error

type Int64

type Int64 int64

func (*Int64) Equal

func (i *Int64) Equal(other any) bool

func (*Int64) Marshal

func (i *Int64) Marshal(cell *boc.Cell, ty parser.IntN, encoder *Encoder) error

func (*Int64) Unmarshal

func (i *Int64) Unmarshal(cell *boc.Cell, ty parser.IntN, decoder *Decoder) error

type InternalAddress

type InternalAddress struct {
	Workchain int8
	Address   [32]byte
}

func (*InternalAddress) Equal

func (i *InternalAddress) Equal(other any) bool

func (*InternalAddress) Marshal

func (i *InternalAddress) Marshal(cell *boc.Cell, ty parser.Address, encoder *Encoder) error

func (InternalAddress) MarshalJSON

func (i InternalAddress) MarshalJSON() ([]byte, error)

func (*InternalAddress) ToRaw

func (i *InternalAddress) ToRaw() string

func (*InternalAddress) Unmarshal

func (i *InternalAddress) Unmarshal(cell *boc.Cell, ty parser.Address, decoder *Decoder) error

func (*InternalAddress) UnmarshalJSON

func (i *InternalAddress) UnmarshalJSON(b []byte) error

type MapValue

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

func (*MapValue) DeleteByBigInt

func (m *MapValue) DeleteByBigInt(k BigInt)

func (*MapValue) DeleteByBigUInt

func (m *MapValue) DeleteByBigUInt(k BigUInt)

func (*MapValue) DeleteByBits

func (m *MapValue) DeleteByBits(k Bits)

func (*MapValue) DeleteByInternalAddress

func (m *MapValue) DeleteByInternalAddress(k InternalAddress)

func (*MapValue) DeleteBySmallInt

func (m *MapValue) DeleteBySmallInt(k Int64)

func (*MapValue) DeleteBySmallUInt

func (m *MapValue) DeleteBySmallUInt(k UInt64)

func (*MapValue) Equal

func (m *MapValue) Equal(other any) bool

func (*MapValue) GetByBigInt

func (m *MapValue) GetByBigInt(v BigInt) (Value, bool)

func (*MapValue) GetByBigUInt

func (m *MapValue) GetByBigUInt(v BigUInt) (Value, bool)

func (*MapValue) GetByBits

func (m *MapValue) GetByBits(v Bits) (Value, bool)

func (*MapValue) GetByInternalAddress

func (m *MapValue) GetByInternalAddress(v InternalAddress) (Value, bool)

func (*MapValue) GetBySmallInt

func (m *MapValue) GetBySmallInt(v Int64) (Value, bool)

func (*MapValue) GetBySmallUInt

func (m *MapValue) GetBySmallUInt(v UInt64) (Value, bool)

func (*MapValue) Len

func (m *MapValue) Len() int

func (*MapValue) Marshal

func (m *MapValue) Marshal(cell *boc.Cell, ty parser.Map, encoder *Encoder) error

func (MapValue) MarshalJSON

func (m MapValue) MarshalJSON() ([]byte, error)

func (*MapValue) SetByBigInt

func (m *MapValue) SetByBigInt(k BigInt, value Value) (bool, error)

func (*MapValue) SetByBigUInt

func (m *MapValue) SetByBigUInt(k BigUInt, value Value) (bool, error)

func (*MapValue) SetByBits

func (m *MapValue) SetByBits(k Bits, value Value) (bool, error)

func (*MapValue) SetByInternalAddress

func (m *MapValue) SetByInternalAddress(k InternalAddress, value Value) (bool, error)

func (*MapValue) SetBySmallInt

func (m *MapValue) SetBySmallInt(k Int64, value Value) (bool, error)

func (*MapValue) SetBySmallUInt

func (m *MapValue) SetBySmallUInt(k UInt64, value Value) (bool, error)

func (*MapValue) Unmarshal

func (m *MapValue) Unmarshal(cell *boc.Cell, ty parser.Map, decoder *Decoder) error

type NoneAddress

type NoneAddress struct {
}

func (*NoneAddress) Marshal

func (n *NoneAddress) Marshal(cell *boc.Cell, ty parser.AddressOpt, encoder *Encoder) error

func (NoneAddress) MarshalJSON

func (n NoneAddress) MarshalJSON() ([]byte, error)

func (*NoneAddress) Unmarshal

func (n *NoneAddress) Unmarshal(cell *boc.Cell, ty parser.AddressOpt, decoder *Decoder) error

func (*NoneAddress) UnmarshalJSON

func (n *NoneAddress) UnmarshalJSON(b []byte) error

type NullValue

type NullValue struct{}

func (*NullValue) Equal

func (n *NullValue) Equal(other any) bool

func (*NullValue) Marshal

func (n *NullValue) Marshal(cell *boc.Cell, ty parser.NullLiteral, encoder *Encoder) error

func (NullValue) MarshalJSON

func (n NullValue) MarshalJSON() ([]byte, error)

func (*NullValue) Unmarshal

func (n *NullValue) Unmarshal(cell *boc.Cell, ty parser.NullLiteral, decoder *Decoder) error

type OptValue

type OptValue struct {
	IsExists bool
	Val      Value
}

func (*OptValue) Equal

func (o *OptValue) Equal(other any) bool

func (*OptValue) Marshal

func (o *OptValue) Marshal(cell *boc.Cell, ty parser.Nullable, encoder *Encoder) error

func (OptValue) MarshalJSON

func (o OptValue) MarshalJSON() ([]byte, error)

func (*OptValue) Unmarshal

func (o *OptValue) Unmarshal(cell *boc.Cell, ty parser.Nullable, decoder *Decoder) error

func (*OptValue) UnmarshalJSON

func (o *OptValue) UnmarshalJSON(b []byte) error

type OptionalAddress

type OptionalAddress struct {
	SumType
	NoneAddress     *NoneAddress
	InternalAddress *InternalAddress
}

func (*OptionalAddress) Equal

func (o *OptionalAddress) Equal(other any) bool

func (*OptionalAddress) Marshal

func (o *OptionalAddress) Marshal(cell *boc.Cell, ty parser.AddressOpt, encoder *Encoder) error

func (OptionalAddress) MarshalJSON

func (o OptionalAddress) MarshalJSON() ([]byte, error)

func (*OptionalAddress) Unmarshal

func (o *OptionalAddress) Unmarshal(cell *boc.Cell, ty parser.AddressOpt, decoder *Decoder) error

func (*OptionalAddress) UnmarshalJSON

func (o *OptionalAddress) UnmarshalJSON(b []byte) error

type Prefix

type Prefix struct {
	Len    int16  `json:"len"`
	Prefix uint64 `json:"prefix"`
}

type RefValue

type RefValue Value

func (*RefValue) Equal

func (r *RefValue) Equal(other any) bool

func (*RefValue) Marshal

func (r *RefValue) Marshal(cell *boc.Cell, ty parser.CellOf, encoder *Encoder) error

func (RefValue) MarshalJSON

func (r RefValue) MarshalJSON() ([]byte, error)

func (*RefValue) Unmarshal

func (r *RefValue) Unmarshal(cell *boc.Cell, ty parser.CellOf, decoder *Decoder) error

type RemainingValue

type RemainingValue struct {
	IsRef bool
	Value boc.Cell
}

func (*RemainingValue) Equal

func (r *RemainingValue) Equal(o any) bool

func (*RemainingValue) Marshal

func (r *RemainingValue) Marshal(cell *boc.Cell, ty parser.Remaining, encoder *Encoder) error

func (RemainingValue) MarshalJSON

func (r RemainingValue) MarshalJSON() ([]byte, error)

func (*RemainingValue) Unmarshal

func (r *RemainingValue) Unmarshal(cell *boc.Cell, ty parser.Remaining, decoder *Decoder) error

type Struct

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

func (*Struct) Equal

func (s *Struct) Equal(o any) bool

func (*Struct) GetField

func (s *Struct) GetField(field string) (Value, bool)

func (*Struct) GetName added in v1.18.1

func (s *Struct) GetName() string

func (*Struct) GetPrefix

func (s *Struct) GetPrefix() (Prefix, bool)

func (*Struct) Marshal

func (s *Struct) Marshal(cell *boc.Cell, ty parser.StructRef, encoder *Encoder) error

func (Struct) MarshalJSON

func (s Struct) MarshalJSON() ([]byte, error)

func (*Struct) MustGetField

func (s *Struct) MustGetField(field string) Value

func (*Struct) RemoveField

func (s *Struct) RemoveField(field string)

func (*Struct) SetField

func (s *Struct) SetField(field string, v Value) bool

func (*Struct) Unmarshal

func (s *Struct) Unmarshal(cell *boc.Cell, ty parser.StructRef, decoder *Decoder) error

type SumType

type SumType string

func (SumType) MarshalJSON

func (s SumType) MarshalJSON() ([]byte, error)

func (*SumType) UnmarshalJSON

func (s *SumType) UnmarshalJSON(bytes []byte) error

type TensorValues

type TensorValues []Value

func (*TensorValues) Equal

func (v *TensorValues) Equal(other any) bool

func (*TensorValues) Marshal

func (v *TensorValues) Marshal(cell *boc.Cell, ty parser.Tensor, encoder *Encoder) error

func (TensorValues) MarshalJSON

func (v TensorValues) MarshalJSON() ([]byte, error)

func (*TensorValues) Unmarshal

func (v *TensorValues) Unmarshal(cell *boc.Cell, ty parser.Tensor, decoder *Decoder) error

type TupleValues

type TupleValues []Value

func (*TupleValues) Equal

func (v *TupleValues) Equal(other any) bool

func (*TupleValues) Marshal

func (v *TupleValues) Marshal(cell *boc.Cell, ty parser.TupleWith, encoder *Encoder) error

func (*TupleValues) Unmarshal

func (v *TupleValues) Unmarshal(cell *boc.Cell, ty parser.TupleWith, decoder *Decoder) error

type UInt64

type UInt64 uint64

func (*UInt64) Equal

func (i *UInt64) Equal(other any) bool

func (*UInt64) Marshal

func (i *UInt64) Marshal(cell *boc.Cell, ty parser.UintN, encoder *Encoder) error

func (*UInt64) Unmarshal

func (i *UInt64) Unmarshal(cell *boc.Cell, ty parser.UintN, decoder *Decoder) error

type UnionValue

type UnionValue struct {
	Prefix Prefix
	Val    Value
}

func (*UnionValue) Equal

func (u *UnionValue) Equal(other any) bool

func (*UnionValue) Marshal

func (u *UnionValue) Marshal(cell *boc.Cell, ty parser.Union, encoder *Encoder) error

func (UnionValue) MarshalJSON

func (u UnionValue) MarshalJSON() ([]byte, error)

func (*UnionValue) Unmarshal

func (u *UnionValue) Unmarshal(cell *boc.Cell, ty parser.Union, decoder *Decoder) error

type Value

type Value struct {
	SumType         SumType
	Bool            *BoolValue
	SmallInt        *Int64
	SmallUint       *UInt64
	BigInt          *BigInt
	BigUint         *BigUInt
	VarInt          *VarInt
	VarUint         *VarUInt
	Coins           *CoinsValue
	Bits            *Bits
	Cell            *Any
	Remaining       *RemainingValue
	InternalAddress *InternalAddress
	OptionalAddress *OptionalAddress
	ExternalAddress *ExternalAddress
	AnyAddress      *AnyAddress
	OptionalValue   *OptValue
	RefValue        *RefValue
	TupleWith       *TupleValues
	Tensor          *TensorValues
	Map             *MapValue
	Struct          *Struct
	Alias           *AliasValue
	Enum            *EnumValue
	Generic         *GenericValue
	Union           *UnionValue
	Null            *NullValue
	Void            *VoidValue
}

func Unmarshal

func Unmarshal(cell *boc.Cell, ty parser.Ty) (*Value, error)

func (*Value) Equal

func (v *Value) Equal(o any) bool

func (*Value) GetAddress

func (v *Value) GetAddress() (InternalAddress, bool)

func (*Value) GetAlias

func (v *Value) GetAlias() (Value, bool)

func (*Value) GetAnyAddress

func (v *Value) GetAnyAddress() (AnyAddress, bool)

func (*Value) GetBigInt

func (v *Value) GetBigInt() (big.Int, bool)

func (*Value) GetBigUInt

func (v *Value) GetBigUInt() (big.Int, bool)

func (*Value) GetBits

func (v *Value) GetBits() (boc.BitString, bool)

func (*Value) GetBool

func (v *Value) GetBool() (bool, bool)

func (*Value) GetCell

func (v *Value) GetCell() (boc.Cell, bool)

func (*Value) GetCoins

func (v *Value) GetCoins() (big.Int, bool)

func (*Value) GetEnum

func (v *Value) GetEnum() (EnumValue, bool)

func (*Value) GetExternalAddress

func (v *Value) GetExternalAddress() (ExternalAddress, bool)

func (*Value) GetGeneric

func (v *Value) GetGeneric() (Value, bool)

func (*Value) GetMap

func (v *Value) GetMap() (MapValue, bool)

func (*Value) GetOptionalAddress

func (v *Value) GetOptionalAddress() (OptionalAddress, bool)

func (*Value) GetOptionalValue

func (v *Value) GetOptionalValue() (OptValue, bool)

func (*Value) GetRefValue

func (v *Value) GetRefValue() (Value, bool)

func (*Value) GetRemaining

func (v *Value) GetRemaining() (RemainingValue, bool)

func (*Value) GetSmallInt

func (v *Value) GetSmallInt() (int64, bool)

func (*Value) GetSmallUInt

func (v *Value) GetSmallUInt() (uint64, bool)

func (*Value) GetStruct

func (v *Value) GetStruct() (Struct, bool)

func (*Value) GetTensor

func (v *Value) GetTensor() ([]Value, bool)

func (*Value) GetTupleValues

func (v *Value) GetTupleValues() ([]Value, bool)

func (*Value) GetType

func (v *Value) GetType() string

func (*Value) GetUnion

func (v *Value) GetUnion() (UnionValue, bool)

func (*Value) GetVarInt

func (v *Value) GetVarInt() (big.Int, bool)

func (*Value) GetVarUInt

func (v *Value) GetVarUInt() (big.Int, bool)

func (*Value) Marshal

func (v *Value) Marshal(cell *boc.Cell, ty parser.Ty, encoder *Encoder) error

func (Value) MarshalJSON

func (v Value) MarshalJSON() ([]byte, error)

func (*Value) MustGetAddress

func (v *Value) MustGetAddress() InternalAddress

func (*Value) MustGetAlias

func (v *Value) MustGetAlias() Value

func (*Value) MustGetAnyAddress

func (v *Value) MustGetAnyAddress() AnyAddress

func (*Value) MustGetBigInt

func (v *Value) MustGetBigInt() big.Int

func (*Value) MustGetBigUInt

func (v *Value) MustGetBigUInt() big.Int

func (*Value) MustGetBits

func (v *Value) MustGetBits() boc.BitString

func (*Value) MustGetBool

func (v *Value) MustGetBool() bool

func (*Value) MustGetCell

func (v *Value) MustGetCell() boc.Cell

func (*Value) MustGetCoins

func (v *Value) MustGetCoins() big.Int

func (*Value) MustGetEnum

func (v *Value) MustGetEnum() EnumValue

func (*Value) MustGetExternalAddress

func (v *Value) MustGetExternalAddress() ExternalAddress

func (*Value) MustGetGeneric

func (v *Value) MustGetGeneric() Value

func (*Value) MustGetMap

func (v *Value) MustGetMap() MapValue

func (*Value) MustGetOptionalAddress

func (v *Value) MustGetOptionalAddress() OptionalAddress

func (*Value) MustGetOptionalValue

func (v *Value) MustGetOptionalValue() OptValue

func (*Value) MustGetRefValue

func (v *Value) MustGetRefValue() Value

func (*Value) MustGetRemaining

func (v *Value) MustGetRemaining() RemainingValue

func (*Value) MustGetSmallInt

func (v *Value) MustGetSmallInt() int64

func (*Value) MustGetSmallUInt

func (v *Value) MustGetSmallUInt() uint64

func (*Value) MustGetStruct

func (v *Value) MustGetStruct() Struct

func (*Value) MustGetTensor

func (v *Value) MustGetTensor() []Value

func (*Value) MustGetTupleValues

func (v *Value) MustGetTupleValues() []Value

func (*Value) MustGetUnion

func (v *Value) MustGetUnion() UnionValue

func (*Value) MustGetVarInt

func (v *Value) MustGetVarInt() big.Int

func (*Value) MustGetVarUInt

func (v *Value) MustGetVarUInt() big.Int

func (*Value) Unmarshal

func (v *Value) Unmarshal(cell *boc.Cell, ty parser.Ty, decoder *Decoder) error

type VarAddress

type VarAddress struct {
	Len       int16
	Workchain int32
	Address   boc.BitString
}

func (*VarAddress) Equal

func (va *VarAddress) Equal(other any) bool

func (*VarAddress) Marshal

func (va *VarAddress) Marshal(cell *boc.Cell, ty parser.AddressAny, encoder *Encoder) error

func (VarAddress) MarshalJSON

func (va VarAddress) MarshalJSON() ([]byte, error)

func (*VarAddress) Unmarshal

func (va *VarAddress) Unmarshal(cell *boc.Cell, ty parser.AddressExt, decoder *Decoder) error

func (*VarAddress) UnmarshalJSON

func (va *VarAddress) UnmarshalJSON(b []byte) error

type VarInt

type VarInt big.Int

func (*VarInt) Equal

func (vi *VarInt) Equal(other any) bool

func (*VarInt) Marshal

func (vi *VarInt) Marshal(cell *boc.Cell, ty parser.VarIntN, encoder *Encoder) error

func (VarInt) MarshalJSON

func (vi VarInt) MarshalJSON() ([]byte, error)

func (*VarInt) Unmarshal

func (vi *VarInt) Unmarshal(cell *boc.Cell, ty parser.VarIntN, decoder *Decoder) error

func (*VarInt) UnmarshalJSON

func (vi *VarInt) UnmarshalJSON(bytes []byte) error

type VarUInt

type VarUInt big.Int

func (*VarUInt) Equal

func (vu *VarUInt) Equal(other any) bool

func (*VarUInt) Marshal

func (vu *VarUInt) Marshal(cell *boc.Cell, ty parser.VarUintN, encoder *Encoder) error

func (VarUInt) MarshalJSON

func (vu VarUInt) MarshalJSON() ([]byte, error)

func (*VarUInt) Unmarshal

func (vu *VarUInt) Unmarshal(cell *boc.Cell, ty parser.VarUintN, decoder *Decoder) error

func (*VarUInt) UnmarshalJSON

func (vu *VarUInt) UnmarshalJSON(bytes []byte) error

type VoidValue

type VoidValue struct{}

func (*VoidValue) Equal

func (v *VoidValue) Equal(other any) bool

func (*VoidValue) Marshal

func (v *VoidValue) Marshal(cell *boc.Cell, ty parser.Void, encoder *Encoder) error

func (VoidValue) MarshalJSON

func (v VoidValue) MarshalJSON() ([]byte, error)

func (*VoidValue) Unmarshal

func (v *VoidValue) Unmarshal(cell *boc.Cell, ty parser.Void, decoder *Decoder) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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