m20221001

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "20221001"

Variables

This section is empty.

Functions

func Migrate

func Migrate(tx *gorm.DB) error

func Rollback

func Rollback(tx *gorm.DB) error

Types

type Token

type Token struct {
	ID                 uint64    `json:"id,omitempty"`
	Name               string    `json:"name" gorm:"uniqueIndex;not null"` // Declaration name
	NameLowerCase      string    `json:"nameLowerCase,omitempty"`          // (deprecated) For generic fungible token transaction templates
	ReceiverPublicPath string    `json:"receiverPublicPath,omitempty"`
	BalancePublicPath  string    `json:"balancePublicPath,omitempty"`
	VaultStoragePath   string    `json:"vaultStoragePath,omitempty"`
	Address            string    `json:"address" gorm:"not null"`
	Setup              string    `json:"setup,omitempty"`    // Setup cadence code
	Transfer           string    `json:"transfer,omitempty"` // Transfer cadence code
	Balance            string    `json:"balance,omitempty"`  // Balance cadence code
	Type               TokenType `json:"type"`
}

type TokenType

type TokenType int
const (
	NotSpecified TokenType = iota
	FT
	NFT
)

Jump to

Keyboard shortcuts

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