jetton

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 5 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 tongo.AccountID
	// contains filtered or unexported fields
}

func NewJetton

func NewJetton(master tongo.AccountID, blockchain blockchain) *Jetton

func (*Jetton) GetBalance

func (j *Jetton) GetBalance(ctx context.Context, owner tongo.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 tongo.AccountID) (tongo.AccountID, error)

type TransferMessage

type TransferMessage struct {
	Jetton              *Jetton
	JettonAmount        *big.Int
	Destination         tongo.AccountID
	ResponseDestination *tongo.AccountID
	TonAmount           int64
	ForwardTonAmount    int64
	Comment             *string
	Payload             *boc.Cell
}

Jump to

Keyboard shortcuts

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