gethlyleaddresses

package
v1.3.57 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertGethAddress

func InsertGethAddress(gethAddress GethAddress) (int, error)

func InsertGethAddressList

func InsertGethAddressList(gethAddressList []*GethAddress) error

func RemoveGethAddress

func RemoveGethAddress(gethAddressID *int) error

func UpdateGethAddress

func UpdateGethAddress(gethAddress GethAddress) error

Types

type GethAddress

type GethAddress struct {
	ID            *int      `json:"id"`
	UUID          string    `json:"uuid"`
	Name          string    `json:"name"`
	AlternateName string    `json:"alternateName"`
	Description   string    `json:"description"`
	AddressStr    string    `json:"addressStr"`
	AddressTypeID *int      `json:"addressTypeId"`
	CreatedBy     string    `json:"createdBy"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedBy     string    `json:"updatedBy"`
	UpdatedAt     time.Time `json:"updatedAt"`
}

func CreateEOAOrContractAddress

func CreateEOAOrContractAddress(addressStr string, cl *ethclient.Client) (*GethAddress, error)

func CreateGethAddress added in v1.3.0

func CreateGethAddress(addressStr string, isEOA bool) *GethAddress

func CreateOrGetAddress added in v1.3.0

func CreateOrGetAddress(gethAddress *GethAddress) (*GethAddress, error)

func CreateOrGetContractAddress

func CreateOrGetContractAddress(addressStr string) (*GethAddress, error)

func CreateOrGetContractAddressFromAsset

func CreateOrGetContractAddressFromAsset(asset *asset.Asset) (*GethAddress, error)

func CreateOrGetEOAAddress

func CreateOrGetEOAAddress(addressStr string) (*GethAddress, error)

func GetGethAddress

func GetGethAddress(gethAddressID int) (*GethAddress, error)

func GetGethAddressByAddressStr

func GetGethAddressByAddressStr(addressStr string) (*GethAddress, error)

func GetGethAddressList

func GetGethAddressList() ([]GethAddress, error)

func GetGethAddressListByAddressStr

func GetGethAddressListByAddressStr(addressStrList []string) (*GethAddress, error)

func GetGethAddressListByIds

func GetGethAddressListByIds(addressIDs []int) (*GethAddress, error)

Jump to

Keyboard shortcuts

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