repository

package
v0.0.0-...-f4d84f6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumAccount

type EthereumAccount struct {
	Account   string   `db:"account"`
	Pk        string   `db:"pk"`
	Network   string   `db:"network"`
	ChainId   *big.Int `db:"chain_id"`
	NetworkId *big.Int `db:"network_id"`
}

type EthereumRepo

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

func NewEthereumRepo

func NewEthereumRepo(ctx context.Context, store db.Storer) *EthereumRepo

func (EthereumRepo) GetAccounts

func (e EthereumRepo) GetAccounts() ([]EthereumAccount, error)

func (EthereumRepo) Insert

func (e EthereumRepo) Insert(accountMap map[string]interface{}) error

type EthereumRepository

type EthereumRepository interface {
	Insert(accountMap map[string]interface{}) error
	GetAccounts() ([]string, error)
}

Jump to

Keyboard shortcuts

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