Documentation
¶
Index ¶
- func Marshal(v *Value, ty parser.Ty) (*boc.Cell, error)
- func PrefixToUint(prefix string) (uint64, error)
- type AliasValue
- type Any
- type AnyAddress
- func (a *AnyAddress) Equal(other any) bool
- func (a *AnyAddress) Marshal(cell *boc.Cell, ty parser.AddressAny, encoder *Encoder) error
- func (a AnyAddress) MarshalJSON() ([]byte, error)
- func (a *AnyAddress) Unmarshal(cell *boc.Cell, ty parser.AddressAny, decoder *Decoder) error
- func (a *AnyAddress) UnmarshalJSON(b []byte) error
- type BigInt
- type BigUInt
- func (b *BigUInt) Equal(other any) bool
- func (b *BigUInt) Marshal(cell *boc.Cell, ty parser.UintN, encoder *Encoder) error
- func (b BigUInt) MarshalJSON() ([]byte, error)
- func (b *BigUInt) Unmarshal(cell *boc.Cell, ty parser.UintN, decoder *Decoder) error
- func (b *BigUInt) UnmarshalJSON(bytes []byte) error
- type Bits
- type BoolValue
- type CoinsValue
- func (c *CoinsValue) Equal(other any) bool
- func (c *CoinsValue) Marshal(cell *boc.Cell, ty parser.Coins, encoder *Encoder) error
- func (c CoinsValue) MarshalJSON() ([]byte, error)
- func (c *CoinsValue) Unmarshal(cell *boc.Cell, ty parser.Coins, decoder *Decoder) error
- func (c *CoinsValue) UnmarshalJSON(bytes []byte) error
- type Decoder
- type Encoder
- type EnumValue
- type ExternalAddress
- func (e *ExternalAddress) Equal(other any) bool
- func (e *ExternalAddress) Marshal(cell *boc.Cell, ty parser.AddressExt, encoder *Encoder) error
- func (e ExternalAddress) MarshalJSON() ([]byte, error)
- func (e *ExternalAddress) Unmarshal(cell *boc.Cell, ty parser.AddressExt, decoder *Decoder) error
- func (e *ExternalAddress) UnmarshalJSON(b []byte) error
- type GenericValue
- type Int64
- type InternalAddress
- func (i *InternalAddress) Equal(other any) bool
- func (i *InternalAddress) Marshal(cell *boc.Cell, ty parser.Address, encoder *Encoder) error
- func (i InternalAddress) MarshalJSON() ([]byte, error)
- func (i *InternalAddress) ToRaw() string
- func (i *InternalAddress) Unmarshal(cell *boc.Cell, ty parser.Address, decoder *Decoder) error
- func (i *InternalAddress) UnmarshalJSON(b []byte) error
- type MapValue
- func (m *MapValue) DeleteByBigInt(k BigInt)
- func (m *MapValue) DeleteByBigUInt(k BigUInt)
- func (m *MapValue) DeleteByBits(k Bits)
- func (m *MapValue) DeleteByInternalAddress(k InternalAddress)
- func (m *MapValue) DeleteBySmallInt(k Int64)
- func (m *MapValue) DeleteBySmallUInt(k UInt64)
- func (m *MapValue) Equal(other any) bool
- func (m *MapValue) GetByBigInt(v BigInt) (Value, bool)
- func (m *MapValue) GetByBigUInt(v BigUInt) (Value, bool)
- func (m *MapValue) GetByBits(v Bits) (Value, bool)
- func (m *MapValue) GetByInternalAddress(v InternalAddress) (Value, bool)
- func (m *MapValue) GetBySmallInt(v Int64) (Value, bool)
- func (m *MapValue) GetBySmallUInt(v UInt64) (Value, bool)
- func (m *MapValue) Len() int
- func (m *MapValue) Marshal(cell *boc.Cell, ty parser.Map, encoder *Encoder) error
- func (m MapValue) MarshalJSON() ([]byte, error)
- func (m *MapValue) SetByBigInt(k BigInt, value Value) (bool, error)
- func (m *MapValue) SetByBigUInt(k BigUInt, value Value) (bool, error)
- func (m *MapValue) SetByBits(k Bits, value Value) (bool, error)
- func (m *MapValue) SetByInternalAddress(k InternalAddress, value Value) (bool, error)
- func (m *MapValue) SetBySmallInt(k Int64, value Value) (bool, error)
- func (m *MapValue) SetBySmallUInt(k UInt64, value Value) (bool, error)
- func (m *MapValue) Unmarshal(cell *boc.Cell, ty parser.Map, decoder *Decoder) error
- type NoneAddress
- type NullValue
- type OptValue
- func (o *OptValue) Equal(other any) bool
- func (o *OptValue) Marshal(cell *boc.Cell, ty parser.Nullable, encoder *Encoder) error
- func (o OptValue) MarshalJSON() ([]byte, error)
- func (o *OptValue) Unmarshal(cell *boc.Cell, ty parser.Nullable, decoder *Decoder) error
- func (o *OptValue) UnmarshalJSON(b []byte) error
- type OptionalAddress
- func (o *OptionalAddress) Equal(other any) bool
- func (o *OptionalAddress) Marshal(cell *boc.Cell, ty parser.AddressOpt, encoder *Encoder) error
- func (o OptionalAddress) MarshalJSON() ([]byte, error)
- func (o *OptionalAddress) Unmarshal(cell *boc.Cell, ty parser.AddressOpt, decoder *Decoder) error
- func (o *OptionalAddress) UnmarshalJSON(b []byte) error
- type Prefix
- type RefValue
- type RemainingValue
- type Struct
- func (s *Struct) Equal(o any) bool
- func (s *Struct) GetField(field string) (Value, bool)
- func (s *Struct) GetName() string
- func (s *Struct) GetPrefix() (Prefix, bool)
- func (s *Struct) Marshal(cell *boc.Cell, ty parser.StructRef, encoder *Encoder) error
- func (s Struct) MarshalJSON() ([]byte, error)
- func (s *Struct) MustGetField(field string) Value
- func (s *Struct) RemoveField(field string)
- func (s *Struct) SetField(field string, v Value) bool
- func (s *Struct) Unmarshal(cell *boc.Cell, ty parser.StructRef, decoder *Decoder) error
- type SumType
- type TensorValues
- type TupleValues
- type UInt64
- type UnionValue
- type Value
- func (v *Value) Equal(o any) bool
- func (v *Value) GetAddress() (InternalAddress, bool)
- func (v *Value) GetAlias() (Value, bool)
- func (v *Value) GetAnyAddress() (AnyAddress, bool)
- func (v *Value) GetBigInt() (big.Int, bool)
- func (v *Value) GetBigUInt() (big.Int, bool)
- func (v *Value) GetBits() (boc.BitString, bool)
- func (v *Value) GetBool() (bool, bool)
- func (v *Value) GetCell() (boc.Cell, bool)
- func (v *Value) GetCoins() (big.Int, bool)
- func (v *Value) GetEnum() (EnumValue, bool)
- func (v *Value) GetExternalAddress() (ExternalAddress, bool)
- func (v *Value) GetGeneric() (Value, bool)
- func (v *Value) GetMap() (MapValue, bool)
- func (v *Value) GetOptionalAddress() (OptionalAddress, bool)
- func (v *Value) GetOptionalValue() (OptValue, bool)
- func (v *Value) GetRefValue() (Value, bool)
- func (v *Value) GetRemaining() (RemainingValue, bool)
- func (v *Value) GetSmallInt() (int64, bool)
- func (v *Value) GetSmallUInt() (uint64, bool)
- func (v *Value) GetStruct() (Struct, bool)
- func (v *Value) GetTensor() ([]Value, bool)
- func (v *Value) GetTupleValues() ([]Value, bool)
- func (v *Value) GetType() string
- func (v *Value) GetUnion() (UnionValue, bool)
- func (v *Value) GetVarInt() (big.Int, bool)
- func (v *Value) GetVarUInt() (big.Int, bool)
- func (v *Value) Marshal(cell *boc.Cell, ty parser.Ty, encoder *Encoder) error
- func (v Value) MarshalJSON() ([]byte, error)
- func (v *Value) MustGetAddress() InternalAddress
- func (v *Value) MustGetAlias() Value
- func (v *Value) MustGetAnyAddress() AnyAddress
- func (v *Value) MustGetBigInt() big.Int
- func (v *Value) MustGetBigUInt() big.Int
- func (v *Value) MustGetBits() boc.BitString
- func (v *Value) MustGetBool() bool
- func (v *Value) MustGetCell() boc.Cell
- func (v *Value) MustGetCoins() big.Int
- func (v *Value) MustGetEnum() EnumValue
- func (v *Value) MustGetExternalAddress() ExternalAddress
- func (v *Value) MustGetGeneric() Value
- func (v *Value) MustGetMap() MapValue
- func (v *Value) MustGetOptionalAddress() OptionalAddress
- func (v *Value) MustGetOptionalValue() OptValue
- func (v *Value) MustGetRefValue() Value
- func (v *Value) MustGetRemaining() RemainingValue
- func (v *Value) MustGetSmallInt() int64
- func (v *Value) MustGetSmallUInt() uint64
- func (v *Value) MustGetStruct() Struct
- func (v *Value) MustGetTensor() []Value
- func (v *Value) MustGetTupleValues() []Value
- func (v *Value) MustGetUnion() UnionValue
- func (v *Value) MustGetVarInt() big.Int
- func (v *Value) MustGetVarUInt() big.Int
- func (v *Value) Unmarshal(cell *boc.Cell, ty parser.Ty, decoder *Decoder) error
- type VarAddress
- func (va *VarAddress) Equal(other any) bool
- func (va *VarAddress) Marshal(cell *boc.Cell, ty parser.AddressAny, encoder *Encoder) error
- func (va VarAddress) MarshalJSON() ([]byte, error)
- func (va *VarAddress) Unmarshal(cell *boc.Cell, ty parser.AddressExt, decoder *Decoder) error
- func (va *VarAddress) UnmarshalJSON(b []byte) error
- type VarInt
- func (vi *VarInt) Equal(other any) bool
- func (vi *VarInt) Marshal(cell *boc.Cell, ty parser.VarIntN, encoder *Encoder) error
- func (vi VarInt) MarshalJSON() ([]byte, error)
- func (vi *VarInt) Unmarshal(cell *boc.Cell, ty parser.VarIntN, decoder *Decoder) error
- func (vi *VarInt) UnmarshalJSON(bytes []byte) error
- type VarUInt
- func (vu *VarUInt) Equal(other any) bool
- func (vu *VarUInt) Marshal(cell *boc.Cell, ty parser.VarUintN, encoder *Encoder) error
- func (vu VarUInt) MarshalJSON() ([]byte, error)
- func (vu *VarUInt) Unmarshal(cell *boc.Cell, ty parser.VarUintN, decoder *Decoder) error
- func (vu *VarUInt) UnmarshalJSON(bytes []byte) error
- type VoidValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrefixToUint ¶
Types ¶
type AliasValue ¶
type AliasValue Value
func (*AliasValue) Equal ¶
func (a *AliasValue) Equal(other any) bool
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 ¶
func (BigInt) MarshalJSON ¶
func (*BigInt) UnmarshalJSON ¶
type BigUInt ¶
func (BigUInt) MarshalJSON ¶
func (*BigUInt) UnmarshalJSON ¶
type Bits ¶
func (Bits) MarshalJSON ¶
func (*Bits) UnmarshalJSON ¶
type CoinsValue ¶
func (*CoinsValue) Equal ¶
func (c *CoinsValue) Equal(other any) bool
func (CoinsValue) MarshalJSON ¶
func (c CoinsValue) MarshalJSON() ([]byte, 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) UnmarshalMessage ¶
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) WithCustomPackResolver ¶
func (e *Encoder) WithCustomPackResolver(customPackResolver customPackResolver)
type ExternalAddress ¶
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
type InternalAddress ¶
func (*InternalAddress) Equal ¶
func (i *InternalAddress) Equal(other any) bool
func (InternalAddress) MarshalJSON ¶
func (i InternalAddress) MarshalJSON() ([]byte, error)
func (*InternalAddress) ToRaw ¶
func (i *InternalAddress) ToRaw() string
func (*InternalAddress) UnmarshalJSON ¶
func (i *InternalAddress) UnmarshalJSON(b []byte) error
type MapValue ¶
type MapValue struct {
// contains filtered or unexported fields
}
func (*MapValue) DeleteByBigInt ¶
func (*MapValue) DeleteByBigUInt ¶
func (*MapValue) DeleteByBits ¶
func (*MapValue) DeleteByInternalAddress ¶
func (m *MapValue) DeleteByInternalAddress(k InternalAddress)
func (*MapValue) DeleteBySmallInt ¶
func (*MapValue) DeleteBySmallUInt ¶
func (*MapValue) GetByInternalAddress ¶
func (m *MapValue) GetByInternalAddress(v InternalAddress) (Value, bool)
func (MapValue) MarshalJSON ¶
func (*MapValue) SetByBigUInt ¶
func (*MapValue) SetByInternalAddress ¶
func (m *MapValue) SetByInternalAddress(k InternalAddress, value Value) (bool, error)
func (*MapValue) SetBySmallInt ¶
func (*MapValue) SetBySmallUInt ¶
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 OptValue ¶
func (OptValue) MarshalJSON ¶
func (*OptValue) UnmarshalJSON ¶
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 RemainingValue ¶
func (*RemainingValue) Equal ¶
func (r *RemainingValue) Equal(o any) bool
func (RemainingValue) MarshalJSON ¶
func (r RemainingValue) MarshalJSON() ([]byte, error)
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func (Struct) MarshalJSON ¶
func (*Struct) MustGetField ¶
func (*Struct) RemoveField ¶
type TensorValues ¶
type TensorValues []Value
func (*TensorValues) Equal ¶
func (v *TensorValues) Equal(other any) bool
func (TensorValues) MarshalJSON ¶
func (v TensorValues) MarshalJSON() ([]byte, error)
type TupleValues ¶
type TupleValues []Value
func (*TupleValues) Equal ¶
func (v *TupleValues) Equal(other any) bool
type UnionValue ¶
func (*UnionValue) Equal ¶
func (u *UnionValue) Equal(other any) bool
func (UnionValue) MarshalJSON ¶
func (u UnionValue) MarshalJSON() ([]byte, 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 (*Value) GetAddress ¶
func (v *Value) GetAddress() (InternalAddress, bool)
func (*Value) GetAnyAddress ¶
func (v *Value) GetAnyAddress() (AnyAddress, bool)
func (*Value) GetExternalAddress ¶
func (v *Value) GetExternalAddress() (ExternalAddress, bool)
func (*Value) GetGeneric ¶
func (*Value) GetOptionalAddress ¶
func (v *Value) GetOptionalAddress() (OptionalAddress, bool)
func (*Value) GetOptionalValue ¶
func (*Value) GetRefValue ¶
func (*Value) GetRemaining ¶
func (v *Value) GetRemaining() (RemainingValue, bool)
func (*Value) GetSmallInt ¶
func (*Value) GetSmallUInt ¶
func (*Value) GetTupleValues ¶
func (*Value) GetUnion ¶
func (v *Value) GetUnion() (UnionValue, bool)
func (Value) MarshalJSON ¶
func (*Value) MustGetAddress ¶
func (v *Value) MustGetAddress() InternalAddress
func (*Value) MustGetAlias ¶
func (*Value) MustGetAnyAddress ¶
func (v *Value) MustGetAnyAddress() AnyAddress
func (*Value) MustGetBigInt ¶
func (*Value) MustGetBigUInt ¶
func (*Value) MustGetBits ¶
func (*Value) MustGetBool ¶
func (*Value) MustGetCell ¶
func (*Value) MustGetCoins ¶
func (*Value) MustGetEnum ¶
func (*Value) MustGetExternalAddress ¶
func (v *Value) MustGetExternalAddress() ExternalAddress
func (*Value) MustGetGeneric ¶
func (*Value) MustGetMap ¶
func (*Value) MustGetOptionalAddress ¶
func (v *Value) MustGetOptionalAddress() OptionalAddress
func (*Value) MustGetOptionalValue ¶
func (*Value) MustGetRefValue ¶
func (*Value) MustGetRemaining ¶
func (v *Value) MustGetRemaining() RemainingValue
func (*Value) MustGetSmallInt ¶
func (*Value) MustGetSmallUInt ¶
func (*Value) MustGetStruct ¶
func (*Value) MustGetTensor ¶
func (*Value) MustGetTupleValues ¶
func (*Value) MustGetUnion ¶
func (v *Value) MustGetUnion() UnionValue
func (*Value) MustGetVarInt ¶
func (*Value) MustGetVarUInt ¶
type VarAddress ¶
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 ¶
func (VarInt) MarshalJSON ¶
func (*VarInt) UnmarshalJSON ¶
type VarUInt ¶
func (VarUInt) MarshalJSON ¶
func (*VarUInt) UnmarshalJSON ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.