wallet

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionByCode

func GetVersionByCode(code []byte) (wallet.Version, error)

Types

type Risk

type Risk struct {
	// According to https://docs.ton.org/develop/smart-contracts/messages#message-modes
	TransferAllRemainingBalance bool
	Ton                         uint64
	// Jettons are not normalized and have to be post-processed with respect to Jetton masters' decimals.
	Jettons map[tongo.AccountID]big.Int
	Nfts    []tongo.AccountID
}

Risk specifies assets that could be lost if a message was taken from a malicious actor. It makes sense to understand the risk BEFORE sending a message to the blockchain.

func ExtractRisk

func ExtractRisk(version walletTongo.Version, msg *boc.Cell) (*Risk, error)

Jump to

Keyboard shortcuts

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