usecases

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	isProduction bool,
	baseUrl string,
	repo interfaces.Repository,
	log *zap.Logger,
) interfaces.UseCases

New creates a new use cases instance

Types

type Impl

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

func (*Impl) BuyStaticPix

func (u *Impl) BuyStaticPix(options *model.BuyStaticPixOptions) (*model.Pix, error)

BuyStaticPix creates a new static pix on BRLA See more: - https://brla-superuser-api.readme.io/reference/superuserbuystaticpix

func (*Impl) CheckSession

func (u *Impl) CheckSession() (*model.Session, error)

CheckSession checks if the client is authorized to access BRLA

func (*Impl) GetBalanceOf

func (u *Impl) GetBalanceOf(options *model.BalanceOfOptions) (*model.BalanceOf, error)

GetBalanceOf retrieves the balance of a wallet directly from the blockchain

func (*Impl) GetContractAddress

func (u *Impl) GetContractAddress(chain enum.Chain) (*model.TokenAddresses, error)

GetContractAddress gets the contract addresses from BRLA for the given chain See more: - https://brla-superuser-api.readme.io/reference/smartcontractaddresses

func (*Impl) GetKYCStatus

func (u *Impl) GetKYCStatus(taxId string) (*model.KYCHistory, error)

GetKYCStatus retrieves KYC status from BRLA See more: - https://brla-superuser-api.readme.io/reference/superuserkychistory

func (*Impl) GetPublicKey

func (u *Impl) GetPublicKey() (*ecdsa.PublicKey, error)

GetPublicKey gets the public key from BRLA See more: - https://brla-superuser-api.readme.io/reference/pubkey

func (*Impl) GetUsedLimit

func (u *Impl) GetUsedLimit(taxId string) (*model.Limits, error)

GetUsedLimit retrieves user used limit from BRLA See more: - https://brla-superuser-api.readme.io/reference/superuserusedlimit

func (*Impl) KycLevelTwo

func (u *Impl) KycLevelTwo(options *model.KycLevelTwoOptions) error

KycLevelTwo performs KYC Level Two on BRLA for both Natural and Legal Person See more: - https://brla-superuser-api.readme.io/reference/superuserkycpflevel2 - https://brla-superuser-api.readme.io/reference/superuserkycpjlevel2

func (*Impl) Login

func (u *Impl) Login(email string, password string) (*model.Session, error)

Login logs in a super user into BRLA See more: https://brla-superuser-api.readme.io/reference/superuserlogin

func (*Impl) Sell added in v0.0.8

func (u *Impl) Sell(options *model.SellOptions) (*string, error)

Sell sells tokens on BRLA See more: https://brla-superuser-api.readme.io/reference/superusersell

Jump to

Keyboard shortcuts

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