jetton

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jetton

type Jetton struct {
	Master ton.AccountID
	// contains filtered or unexported fields
}

func New added in v1.0.1

func New(master ton.AccountID, blockchain blockchain) *Jetton

func (*Jetton) GetBalance

func (j *Jetton) GetBalance(ctx context.Context, owner ton.AccountID) (*big.Int, error)

func (*Jetton) GetDecimals

func (j *Jetton) GetDecimals(ctx context.Context) (int, error)

func (*Jetton) GetJettonWallet

func (j *Jetton) GetJettonWallet(ctx context.Context, owner ton.AccountID) (ton.AccountID, error)

type TransferMessage

type TransferMessage struct {
	Jetton              *Jetton
	Sender              ton.AccountID
	JettonAmount        *big.Int
	Destination         ton.AccountID
	ResponseDestination *ton.AccountID
	AttachedTon         tlb.Grams
	ForwardTonAmount    tlb.Grams
	ForwardPayload      *boc.Cell
	CustomPayload       *boc.Cell
}

func (TransferMessage) ToInternal added in v1.0.1

func (tm TransferMessage) ToInternal() (tlb.Message, uint8, error)

Jump to

Keyboard shortcuts

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