Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpcodeWalletTransfer = 0x0f8a7ea5 OpcodeWalletTransferNotification = 0x7362d09c OpcodeWalletInternalTransfer = 0x178d4519 OpcodeWalletExcesses = 0xd53276db OpcodeWalletBurn = 0x595f07bc )
JettonWallet opcodes
Variables ¶
View Source
var ExitCodeCodec tvm.ExitCodeCodecInt[ExitCode] = ExitCode(tvm.ExitCode(-1))
View Source
var TLBs = tvm.MustNewTLBMap([]any{ AskToTransfer{}, InternalTransferMessage{}, TransferNotification{}, }).MustWithStorageType(InitData{})
View Source
var WalletContractPath = path.Join(jetton.PathToContracts, "JettonWallet.compiled.json")
Functions ¶
Types ¶
type AskToTransfer ¶
type AskToTransfer struct {
QueryID uint64 `tlb:"## 64"`
Amount tlb.Coins `tlb:"."`
Destination *address.Address `tlb:"addr"`
ResponseDestination *address.Address `tlb:"addr"`
CustomPayload *cell.Cell `tlb:"either . ^"`
ForwardTonAmount tlb.Coins `tlb:"."`
ForwardPayload *cell.Cell `tlb:"either . ^"`
// contains filtered or unexported fields
}
type InternalTransferMessage ¶
type InternalTransferMessage struct {
QueryID uint64 `tlb:"## 64"`
Amount tlb.Coins `tlb:"."`
From *address.Address `tlb:"addr"`
ResponseAddress *address.Address `tlb:"addr"`
ForwardTonAmount tlb.Coins `tlb:"."`
ForwardPayload *cell.Cell `tlb:"either . ^"`
// contains filtered or unexported fields
}
type Provider ¶
func NewWalletProvider ¶
Click to show internal directories.
Click to hide internal directories.