address

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 110

Documentation

Index

Constants

View Source
const MasterchainID int32 = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrType added in v1.0.3

type AddrType int
const (
	NoneAddress AddrType = 0
	ExtAddress  AddrType = 1
	StdAddress  AddrType = 2
	VarAddress  AddrType = 3
)

type Address

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

func MustParseAddr

func MustParseAddr(addr string) *Address

func MustParseRawAddr added in v1.9.2

func MustParseRawAddr(addr string) *Address

func NewAddress added in v0.1.8

func NewAddress(flags byte, workchain byte, data []byte) *Address

func NewAddressExt added in v1.0.3

func NewAddressExt(flags byte, bitsLen uint, data []byte) *Address

func NewAddressNone added in v1.0.3

func NewAddressNone() *Address

func NewAddressVar added in v1.0.3

func NewAddressVar(flags byte, workchain int32, bitsLen uint, data []byte) *Address

func ParseAddr

func ParseAddr(addr string) (*Address, error)

func ParseRawAddr added in v1.9.2

func ParseRawAddr(addr string) (*Address, error)

func (*Address) BitsLen added in v1.0.3

func (a *Address) BitsLen() uint

func (*Address) Bounce added in v1.8.4

func (a *Address) Bounce(bounce bool) *Address

func (*Address) Checksum added in v0.1.8

func (a *Address) Checksum() uint16

func (*Address) Copy added in v1.8.4

func (a *Address) Copy() *Address

func (*Address) Data

func (a *Address) Data() []byte

func (*Address) Dump added in v0.1.8

func (a *Address) Dump() string

func (*Address) FlagsToByte added in v0.1.8

func (a *Address) FlagsToByte() (flags byte)

func (*Address) IsAddrNone added in v0.7.1

func (a *Address) IsAddrNone() bool

func (*Address) IsBounceable added in v0.1.8

func (a *Address) IsBounceable() bool

func (*Address) IsTestnetOnly added in v0.1.8

func (a *Address) IsTestnetOnly() bool

func (*Address) MarshalJSON added in v0.1.9

func (a *Address) MarshalJSON() ([]byte, error)

func (*Address) SetBounce added in v0.1.8

func (a *Address) SetBounce(bouncable bool)

func (*Address) SetTestnetOnly added in v0.1.8

func (a *Address) SetTestnetOnly(testnetOnly bool)

func (*Address) String added in v0.1.8

func (a *Address) String() string

func (*Address) StringToBytes added in v1.0.4

func (a *Address) StringToBytes(dst []byte, addr []byte)

func (*Address) Testnet added in v1.8.4

func (a *Address) Testnet(testnet bool) *Address

func (*Address) Type added in v1.0.3

func (a *Address) Type() AddrType

func (*Address) UnmarshalJSON added in v1.9.0

func (a *Address) UnmarshalJSON(data []byte) error

func (*Address) Workchain

func (a *Address) Workchain() int32

Jump to

Keyboard shortcuts

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