persistence

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDApp

func DeleteDApp(db *sql.DB, url string) error

func UpsertDApp

func UpsertDApp(db *sql.DB, dApp *DApp) error

Types

type DApp

type DApp struct {
	URL           string        `json:"url"`
	Name          string        `json:"name"`
	IconURL       string        `json:"iconUrl"`
	SharedAccount types.Address `json:"sharedAccount"`
	ChainID       uint64        `json:"chainId"`
}

func SelectAllDApps added in v0.182.41

func SelectAllDApps(db *sql.DB) ([]DApp, error)

func SelectDAppByUrl

func SelectDAppByUrl(db *sql.DB, url string) (*DApp, error)

Jump to

Keyboard shortcuts

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