Documentation ¶
Index ¶
- func InsertGethAddress(gethAddress GethAddress) (int, error)
- func InsertGethAddressList(gethAddressList []*GethAddress) error
- func RemoveGethAddress(gethAddressID *int) error
- func UpdateGethAddress(gethAddress GethAddress) error
- type GethAddress
- func CreateEOAOrContractAddress(addressStr string, cl *ethclient.Client) (*GethAddress, error)
- func CreateGethAddress(addressStr string, isEOA bool) *GethAddress
- func CreateOrGetAddress(gethAddress *GethAddress) (*GethAddress, error)
- func CreateOrGetContractAddress(addressStr string) (*GethAddress, error)
- func CreateOrGetContractAddressFromAsset(asset *asset.Asset) (*GethAddress, error)
- func CreateOrGetEOAAddress(addressStr string) (*GethAddress, error)
- func GetGethAddress(gethAddressID int) (*GethAddress, error)
- func GetGethAddressByAddressStr(addressStr string) (*GethAddress, error)
- func GetGethAddressList() ([]GethAddress, error)
- func GetGethAddressListByAddressStr(addressStrList []string) (*GethAddress, error)
- func GetGethAddressListByIds(addressIDs []int) (*GethAddress, error)
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 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)
Click to show internal directories.
Click to hide internal directories.