jetton

package
v0.0.0-...-be50d8c Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BurnPayload

type BurnPayload struct {
	QueryID             uint64           `tlb:"## 64"`
	Amount              tlb.Coins        `tlb:"."`
	ResponseDestination *address.Address `tlb:"addr"`
	CustomPayload       *cell.Cell       `tlb:"maybe ^"`
	// contains filtered or unexported fields
}

type Client

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

func NewJettonMasterClient

func NewJettonMasterClient(masterContractAddr *address.Address) *Client

func (*Client) GetJettonWallet

func (c *Client) GetJettonWallet(ownerAddr *address.Address) (*WalletClient, error)

type Data

type Data struct {
	TotalSupply *big.Int
	Mintable    bool
	AdminAddr   *address.Address
	//Content     nft.ContentAny
	WalletCode *cell.Cell
}

type MintPayload

type MintPayload struct {
	QueryID   uint64               `tlb:"## 64"`
	ToAddress *address.Address     `tlb:"addr"`
	Amount    tlb.Coins            `tlb:"."`
	MasterMsg MintPayloadMasterMsg `tlb:"^"`
	// contains filtered or unexported fields
}

type MintPayloadMasterMsg

type MintPayloadMasterMsg struct {
	Opcode       uint32     `tlb:"## 32"`
	QueryID      uint64     `tlb:"## 64"`
	JettonAmount tlb.Coins  `tlb:"."`
	RestData     *cell.Cell `tlb:"."`
}

type TransferPayload

type TransferPayload struct {
	QueryID             uint64           `tlb:"## 64"`
	Amount              tlb.Coins        `tlb:"."`
	Destination         *address.Address `tlb:"addr"`
	ResponseDestination *address.Address `tlb:"addr"`
	CustomPayload       *cell.Cell       `tlb:"maybe ^"`
	ForwardTONAmount    tlb.Coins        `tlb:"."`
	ForwardPayload      *cell.Cell       `tlb:"either . ^"`
	// contains filtered or unexported fields
}

type WalletClient

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

func (*WalletClient) Address

func (c *WalletClient) Address() *address.Address

func (*WalletClient) BuildBurnPayload

func (c *WalletClient) BuildBurnPayload(amountCoins tlb.Coins, notifyAddr *address.Address) (*cell.Cell, error)

func (*WalletClient) BuildTransferPayload deprecated

func (c *WalletClient) BuildTransferPayload(to *address.Address, amountCoins, amountForwardTON tlb.Coins, payloadForward *cell.Cell) (*cell.Cell, error)

Deprecated: use BuildTransferPayloadV2

func (*WalletClient) BuildTransferPayloadV2

func (c *WalletClient) BuildTransferPayloadV2(to, responseTo *address.Address, amountCoins, amountForwardTON tlb.Coins, payloadForward, customPayload *cell.Cell, rndU64 uint64) (*cell.Cell, error)

Jump to

Keyboard shortcuts

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