database

package
v0.0.0-...-7c4983b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Instance *dbutils.Instance
	// contains filtered or unexported fields
}

func New

func New(connString string) (*Instance, error)

func (*Instance) AddChain

func (i *Instance) AddChain(chain models.Chain) error

func (*Instance) Chain

func (i *Instance) Chain(chain string) (models.Chain, error)

func (*Instance) ChainAmount

func (i *Instance) ChainAmount() (int, error)

func (*Instance) Chains

func (i *Instance) Chains() ([]models.Chain, error)

func (*Instance) ChannelsBetweenChains

func (i *Instance) ChannelsBetweenChains(source, destination, chainID string) (map[string]string, error)

func (*Instance) DeleteChain

func (i *Instance) DeleteChain(chain string) error

func (*Instance) GetDenoms

func (i *Instance) GetDenoms(chain string) (models.DenomList, error)

func (*Instance) UpdateDenoms

func (i *Instance) UpdateDenoms(chain string, denoms models.DenomList) error

func (*Instance) UpdatePrimaryChannel

func (i *Instance) UpdatePrimaryChannel(sourceChain, destChain, channel string) error

Jump to

Keyboard shortcuts

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