Documentation ¶
Index ¶
- Variables
- func CreateNewAddress(addressDto AddressDto, user account.User) (address *model.Address, err error)
- func DeleteAddress(id uuid.UUID, user account.User) (err error)
- func GetAddress(id uuid.UUID, user account.User) (address model.Address, err error)
- func GetAddresses(user account.User) (addresses []model.Address, err error)
- func GetPoolBalance() (balance float64, err error)
- func GetStakingAddressesForUser(user account.User) (stakingAddresses []string, err error)
- type AddressDto
- type Controller
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorUnableToFindAddress = errors.New("Unable to find the address on your account") ErrorUnableToDeleteAddress = errors.New("Unable to delete the address") ErrorSpendingAddressAlreadyInUse = errors.New("The spending address provided is already in use") ErrorUnableToSaveAddress = errors.New("Unable to save the address") ErrorUnableToRetrieveTransactions = errors.New("Unable to retrieve transactions") )
Functions ¶
func CreateNewAddress ¶
func GetAddress ¶
func GetPoolBalance ¶
Types ¶
type AddressDto ¶
type Controller ¶
type Controller struct{}
func (*Controller) CreateAddress ¶
func (controller *Controller) CreateAddress(c *gin.Context)
func (*Controller) DeleteAddress ¶
func (controller *Controller) DeleteAddress(c *gin.Context)
func (*Controller) GetAddress ¶
func (controller *Controller) GetAddress(c *gin.Context)
func (*Controller) GetAddresses ¶
func (controller *Controller) GetAddresses(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.