address

package
v0.0.0-...-7dd4c70 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MasterchainID int32 = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrType

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

func MustParseRawAddr(addr string) *Address

func NewAddress

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

func NewAddressExt

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

func NewAddressNone

func NewAddressNone() *Address

func NewAddressVar

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

func ParseAddr

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

func ParseRawAddr

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

func (*Address) BitsLen

func (a *Address) BitsLen() uint

func (*Address) Bounce

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

func (*Address) Checksum

func (a *Address) Checksum() uint16

func (*Address) Copy

func (a *Address) Copy() *Address

func (*Address) Data

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

func (*Address) Dump

func (a *Address) Dump() string

func (*Address) Equals

func (a *Address) Equals(b *Address) bool

func (*Address) FlagsToByte

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

func (*Address) IsAddrNone

func (a *Address) IsAddrNone() bool

func (*Address) IsBounceable

func (a *Address) IsBounceable() bool

func (*Address) IsTestnetOnly

func (a *Address) IsTestnetOnly() bool

func (*Address) MarshalJSON

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

func (*Address) SetBounce

func (a *Address) SetBounce(bouncable bool)

func (*Address) SetTestnetOnly

func (a *Address) SetTestnetOnly(testnetOnly bool)

func (*Address) String

func (a *Address) String() string

func (*Address) StringToBytes

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

func (*Address) Testnet

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

func (*Address) Type

func (a *Address) Type() AddrType

func (*Address) UnmarshalJSON

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