contracts

package
v0.0.0-...-7862fbb Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	Address      string       `gorm:"primary_key;not null"`
	ContractType ContractType `gorm:"contract_type" sql:"max_type"`
}

Enum doesn't work properly for now

func GetContract

func GetContract(contractAddr string) (contract Contract, err error)

type ContractType

type ContractType string
const (
	ERC721 ContractType = "ERC721"
	ERC20  ContractType = "ERC20"
)

func (*ContractType) Scan

func (fit *ContractType) Scan(value interface{}) error

func (ContractType) Value

func (fit ContractType) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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