Documentation
¶
Index ¶
- Constants
- Variables
- func MinterCode() (*cell.Cell, error)
- func WalletCode() (*cell.Cell, error)
- type ChangeAdminMessage
- type ChangeContentMessage
- type ClaimAdminMessage
- type Client
- type DropAdminMessage
- type InternalTransferMessage
- type MintMessage
- type MinterInitData
- type TopUpMessage
- type UpgradeMessage
- type WalletInitData
- type WalletProvider
Constants ¶
View Source
const ( ErrorInvalidOp tvm.ExitCode = tvm.ExitCode(72) ErrorWrongOp tvm.ExitCode = tvm.ExitCode(0xffff) ErrorNotOwner tvm.ExitCode = tvm.ExitCode(73) ErrorNotValidWallet tvm.ExitCode = tvm.ExitCode(74) ErrorWrongWorkchain tvm.ExitCode = tvm.ExitCode(333) )
View Source
const ( OpcodeMinterMint = 0x642b7d07 OpcodeMinterBurnNotification = 0x7bdd97de OpcodeMinterChangeAdmin = 0x6501f354 OpcodeMinterClaimAdmin = 0xfb88e119 OpcodeMinterDropAdmin = 0x7431f221 OpcodeMinterChangeMetadataURL = 0xcb862902 OpcodeMinterUpgrade = 0x2508d66a OpcodeMinterInternalTransfer = 0x178d4519 OpcodeMinterExcesses = 0xd53276db )
JettonMinter opcodes
View Source
const ( OpcodeWalletTransfer = 0x0f8a7ea5 OpcodeWalletTransferNotification = 0x7362d09c OpcodeWalletInternalTransfer = 0x178d4519 OpcodeWalletExcesses = 0xd53276db OpcodeWalletBurn = 0x595f07bc OpcodeWalletBurnNotification = 0x7bdd97de )
JettonWallet opcodes
Variables ¶
View Source
var MinterContractPath = path.Join(PathToContracts, "JettonMinter.compiled.json")
View Source
var PathToContracts = os.Getenv("PATH_CONTRACTS_JETTON")
Exposed by default nix shell
View Source
var WalletContractPath = path.Join(PathToContracts, "JettonWallet.compiled.json")
Functions ¶
func MinterCode ¶
func WalletCode ¶
Types ¶
type ChangeAdminMessage ¶
type ChangeContentMessage ¶
type ClaimAdminMessage ¶
type ClaimAdminMessage struct {
QueryID uint64 `tlb:"## 64"`
// contains filtered or unexported fields
}
type DropAdminMessage ¶
type DropAdminMessage struct {
QueryID uint64 `tlb:"## 64"`
// 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 MintMessage ¶
type MinterInitData ¶
type TopUpMessage ¶
type TopUpMessage struct {
QueryID uint64 `tlb:"## 64"`
// contains filtered or unexported fields
}
For funding the contract with TON
type UpgradeMessage ¶
type WalletInitData ¶
type WalletProvider ¶
func NewWalletProvider ¶
func NewWalletProvider(minterAddress *address.Address) *WalletProvider
func (*WalletProvider) GetWalletInitCell ¶
Click to show internal directories.
Click to hide internal directories.