halo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenesisTxVerify

func GenesisTxVerify(txResp everSchema.TxResponse) (state *hvmSchema.State, err error)

Types

type Config

type Config struct {
	Genesis           string
	UrlPrefix         string `toml:"url_prefix"`
	DefaulHaloNodeUrl string `toml:"default_halo_node_url"`
}

type Halo

type Halo struct {
	GenesisTxEverHash string
	GenesisTxRawID    int64
	HaloAddr          string
	// contains filtered or unexported fields
}

func New

func New(genesisTx, dsn string, everSDK *sdk.SDK) (h *Halo)

func (*Halo) Close

func (h *Halo) Close()

func (*Halo) RegisterRouter

func (h *Halo) RegisterRouter(router *gin.Engine, group string)

func (*Halo) Run

func (h *Halo) Run(port string)

type WDB

type WDB struct {
	// contains filtered or unexported fields
}

func NewWDB

func NewWDB(dsn string) *WDB

func (*WDB) CreateHaloTx

func (w *WDB) CreateHaloTx(haloTx *schema.HaloTransaction, tx *gorm.DB) error

func (*WDB) GetTx added in v0.0.2

func (w *WDB) GetTx(hash string) (haloTx *schema.HaloTransaction, err error)

func (*WDB) Migrate

func (w *WDB) Migrate()

Directories

Path Synopsis
example
hvm

Jump to

Keyboard shortcuts

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