Documentation ¶
Index ¶
- Variables
- type BurnPayload
- type Client
- func (c *Client) GetJettonData(ctx context.Context) (*Data, error)
- func (c *Client) GetJettonDataAtBlock(ctx context.Context, b *ton.BlockIDExt) (*Data, error)
- func (c *Client) GetJettonWallet(ctx context.Context, ownerAddr *address.Address) (*WalletClient, error)
- func (c *Client) GetJettonWalletAtBlock(ctx context.Context, ownerAddr *address.Address, b *ton.BlockIDExt) (*WalletClient, error)
- type Data
- type MintPayload
- type MintPayloadMasterMsg
- type TonApi
- type TransferNotification
- type TransferPayload
- type WalletClient
- func (c *WalletClient) Address() *address.Address
- func (c *WalletClient) BuildBurnPayload(amountCoins tlb.Coins, notifyAddr *address.Address) (*cell.Cell, error)
- func (c *WalletClient) BuildTransferPayload(to *address.Address, amountCoins, amountForwardTON tlb.Coins, ...) (*cell.Cell, error)deprecated
- func (c *WalletClient) BuildTransferPayloadV2(to, responseTo *address.Address, amountCoins, amountForwardTON tlb.Coins, ...) (*cell.Cell, error)
- func (c *WalletClient) GetBalance(ctx context.Context) (*big.Int, error)
- func (c *WalletClient) GetBalanceAtBlock(ctx context.Context, b *ton.BlockIDExt) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTransfer = errors.New("transfer is not verified")
Functions ¶
This section is empty.
Types ¶
type BurnPayload ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewJettonMasterClient ¶
func (*Client) GetJettonDataAtBlock ¶
func (*Client) GetJettonWallet ¶
func (*Client) GetJettonWalletAtBlock ¶
func (c *Client) GetJettonWalletAtBlock(ctx context.Context, ownerAddr *address.Address, b *ton.BlockIDExt) (*WalletClient, error)
type MintPayload ¶
type MintPayloadMasterMsg ¶
type TonApi ¶
type TonApi interface { WaitForBlock(seqno uint32) ton.APIClientWrapped CurrentMasterchainInfo(ctx context.Context) (_ *ton.BlockIDExt, err error) RunGetMethod(ctx context.Context, blockInfo *ton.BlockIDExt, addr *address.Address, method string, params ...any) (*ton.ExecutionResult, error) SubscribeOnTransactions(workerCtx context.Context, addr *address.Address, lastProcessedLT uint64, channel chan<- *tlb.Transaction) }
type TransferNotification ¶
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 (*WalletClient) BuildTransferPayloadV2 ¶
func (*WalletClient) GetBalance ¶
func (*WalletClient) GetBalanceAtBlock ¶
func (c *WalletClient) GetBalanceAtBlock(ctx context.Context, b *ton.BlockIDExt) (*big.Int, error)
Click to show internal directories.
Click to hide internal directories.