tep64

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentLayout

type ContentLayout int
const (
	Undefined ContentLayout = iota
	OffChain
	OnChain
	SemiChain
)

type FullContent

type FullContent struct {
	Layout ContentLayout
	Data   []byte
}

func DecodeFullContent

func DecodeFullContent(cell *boc.Cell) (FullContent, error)

type Metadata

type Metadata struct {
	Uri         string `json:"uri,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Image       string `json:"image,omitempty"`
	ImageData   []byte `json:"image_data,omitempty"`
	Symbol      string `json:"symbol,omitempty"`
	Decimals    string `json:"decimals,omitempty"`
}

func ConvertOnchainData added in v1.0.14

func ConvertOnchainData(content tlb.FullContent) (Metadata, error)

TEP-64 Token Data Standard https://github.com/ton-blockchain/TEPs/blob/master/text/0064-token-data-standard.md

Jump to

Keyboard shortcuts

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