constants

package
v0.0.0-...-59a8832 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const CompositeDataStringSeparator = ","
View Source
const ListDataStringSeparator = ",,"
View Source
const MaxListLength = 20

Variables

View Source
var (
	AccAddressDataWeight = sdkTypes.NewInt(90)
	BooleanDataWeight    = sdkTypes.NewInt(1)
	DecDataWeight        = sdkTypes.NewInt(16)
	HeightDataWeight     = sdkTypes.NewInt(8)
	IDDataWeight         = sdkTypes.NewInt(64)
	ListDataWeight       = sdkTypes.NewInt(2560)
	LinkedDataWeight     = sdkTypes.NewInt(384)
	NumberDataWeight     = sdkTypes.NewInt(8)
	StringDataWeight     = sdkTypes.NewInt(256)
)
View Source
var (
	AccAddressDataTypeID = baseIDs.NewStringID("A")
	AnyDataTypeID        = baseIDs.NewStringID("Y")
	BooleanDataTypeID    = baseIDs.NewStringID("B")
	DecDataTypeID        = baseIDs.NewStringID("D")
	HeightDataTypeID     = baseIDs.NewStringID("H")
	ListDataTypeID       = baseIDs.NewStringID("L")
	LinkedDataTypeID     = baseIDs.NewStringID("U")
	NumberDataTypeID     = baseIDs.NewStringID("N")
	StringDataTypeID     = baseIDs.NewStringID("S")
)

TODO use enum

View Source
var IsValidFileExtension = regexp.MustCompile(`(?:jpg|jpeg|png|gif|bmp|svg|mp4|avi|mov|wmv|flv|mp3|wav|ogg|aac|pdf)$`).MatchString
View Source
var IsValidStringData = regexp.MustCompile(`^[\pL\pM\pZ\pS\pN\pP]{0,280}$`).MatchString
View Source
var ListBytesSeparator = []byte{'\\', '#'}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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