evm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRowsAffected = errors.New("no rows affected")

Functions

This section is empty.

Types

type NewNode

type NewNode struct {
	Name       string      `json:"name"`
	EVMChainID utils.Big   `json:"evmChainId"`
	WSURL      null.String `json:"wsURL" db:"ws_url"`
	HTTPURL    string      `json:"httpURL" db:"http_url"`
	SendOnly   bool        `json:"sendOnly"`
}

type ORM

type ORM interface {
	CreateChain(id utils.Big, config types.ChainCfg) (types.Chain, error)
	DeleteChain(id utils.Big) error
	Chains(offset, limit int) ([]types.Chain, int, error)
	CreateNode(data NewNode) (types.Node, error)
	DeleteNode(id int64) error
	Nodes(offset, limit int) ([]types.Node, int, error)
	NodesForChain(chainID utils.Big, offset, limit int) ([]types.Node, int, error)
}

func NewORM

func NewORM(db *sqlx.DB) ORM

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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