token

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Protocol = Protocols{
	StandardTokenProtocols{
		Token20:   "token_20",
		Token721:  "token_721",
		Token1155: "token_1155",
	},
	BTCEcosystemProtocols{
		Runes:       "runes",
		BRC20:       "brc20",
		SRC20:       "src20",
		ARC20:       "arc20",
		OrdinalsNFT: "ordinals_nft",
	},
}

Functions

func IsBTCEcosystemProtocol

func IsBTCEcosystemProtocol(protocolType string) bool

IsBTCEcosystemProtocol Determine whether the given protocol type is a special token protocol for the Bitcoin ecosystem

func IsStandardProtocol

func IsStandardProtocol(protocolType string) bool

IsStandardProtocol Determine whether the given protocol type is a standard token protocol

Types

type BTCEcosystemProtocols

type BTCEcosystemProtocols struct {
	Runes       string
	BRC20       string
	SRC20       string
	ARC20       string
	OrdinalsNFT string
}

type Protocols

type Protocols struct {
	StandardTokenProtocols
	BTCEcosystemProtocols
}

type StandardTokenProtocols

type StandardTokenProtocols struct {
	Token20   string
	Token721  string
	Token1155 string
}

StandardTokenProtocols 20 tokens: token_20; 721 tokens: token_721; 1155 tokens: token_1155; Inscription token protocol type Runes: runes BRC-20 tokens: brc20 SRC-20 tokens: src20 ARC-20 tokens: arc20 Ordinals NFT: ordinals_nft

type TokenRequest

type TokenRequest struct {
	ChainShortName     string `json:"chainShortName"`
	ExplorerName       string `json:"explorerName"`
	ContractAddress    string `json:"contractAddress"`
	ProtocolType       string `json:"protocolType"`
	TokenInscriptionId string `json:"tokenInscriptionId"`
	Symbol             string `json:"symbol"`
	ProjectId          string `json:"projectId"`
	Page               string `json:"page"`
	Limit              string `json:"limit"`
}

type TokenResponse

type TokenResponse struct {
	Symbol               string `json:"symbol"`
	TokenContractAddress string `json:"tokenContractAddress"`
	TokenId              string `json:"tokenId"`
	TotalSupply          string `json:"totalSupply"` // TotalSupply
	Decimal              string `json:"decimal"`     //  default 1
}

Jump to

Keyboard shortcuts

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