Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) AddNewWallet(ctx context.Context) (*entities.MnemonicWallet, error)
- func (s *Service) CheckSession(ctx context.Context, mnemonicUUID string, sessionUUID string) (isActive bool, err error)
- func (s *Service) CloseWalletSession(ctx context.Context, walletUUID string, sessionUUID string) (*entities.MnemonicWallet, *entities.MnemonicWalletSession, error)
- func (s *Service) DisableWalletByUUID(ctx context.Context, walletUUID string) (*entities.MnemonicWallet, error)
- func (s *Service) DisableWalletsByUUIDList(ctx context.Context, walletUUIDs []string) (count uint, list []string, err error)
- func (s *Service) EnableWalletByUUID(ctx context.Context, walletUUID string) (*entities.MnemonicWallet, error)
- func (s *Service) EnableWalletsByUUIDList(ctx context.Context, walletUUIDs []string) (count uint, list []string, err error)
- func (s *Service) GetAccount(ctx context.Context, mnemonicUUID string, parameters *anypb.Any) (address *string, err error)
- func (s *Service) GetAddressesByRange(ctx context.Context, mnemonicUUID string, addrParams *anypb.Any) (list []*pbCommon.DerivationAddressIdentity, err error)
- func (s *Service) GetEnabledWallets(ctx context.Context) ([]*entities.MnemonicWallet, error)
- func (s *Service) GetWalletByUUID(ctx context.Context, walletUUID string) (*entities.MnemonicWallet, error)
- func (s *Service) GetWalletSessionInfo(ctx context.Context, walletUUID string, sessionUUID string) (*entities.MnemonicWallet, *entities.MnemonicWalletSession, error)
- func (s *Service) GetWalletSessionsByWalletUUID(ctx context.Context, walletUUID string) (*entities.MnemonicWallet, []*entities.MnemonicWalletSession, error)
- func (s *Service) ImportWallet(ctx context.Context, importedData []byte) (*entities.MnemonicWallet, error)
- func (s *Service) StartSessionForWallet(ctx context.Context, wallet *entities.MnemonicWallet) (*entities.MnemonicWalletSession, error)
- func (s *Service) StartWalletSession(ctx context.Context, walletUUID string) (*entities.MnemonicWallet, *entities.MnemonicWalletSession, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingHdWalletResp = errors.New("missing hd-wallet api response") ErrMnemonicIsNotValid = errors.New("mnemonic wallet is not valid") ErrUnableDecodeGrpcErrorStatus = errors.New("unable to decode grpc error status") ErrUpdatedCountNotEqualExpected = errors.New("updated count not equal expected count") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *zap.Logger, cfg configService, transitEncryptorSvc encryptService, appEncryptorSvc encryptService, mnemonicWalletDataSrv mnemonicWalletsDataService, cacheDataSvc mnemonicWalletsCacheStoreService, signReqDataSvc signRequestDataService, hdWalletClient hdwallet.HdWalletApiClient, eventPublisher eventPublisherService, txStmtManager transactionalStatementManager, ) *Service
func (*Service) AddNewWallet ¶
func (*Service) CheckSession ¶
func (*Service) CloseWalletSession ¶
func (s *Service) CloseWalletSession(ctx context.Context, walletUUID string, sessionUUID string, ) (*entities.MnemonicWallet, *entities.MnemonicWalletSession, error)
func (*Service) DisableWalletByUUID ¶
func (*Service) DisableWalletsByUUIDList ¶
func (*Service) EnableWalletByUUID ¶
func (*Service) EnableWalletsByUUIDList ¶
func (*Service) GetAccount ¶ added in v0.0.25
func (*Service) GetAddressesByRange ¶
func (*Service) GetEnabledWallets ¶
func (*Service) GetWalletByUUID ¶
func (*Service) GetWalletSessionInfo ¶
func (s *Service) GetWalletSessionInfo(ctx context.Context, walletUUID string, sessionUUID string, ) (*entities.MnemonicWallet, *entities.MnemonicWalletSession, error)
func (*Service) GetWalletSessionsByWalletUUID ¶
func (s *Service) GetWalletSessionsByWalletUUID(ctx context.Context, walletUUID string, ) (*entities.MnemonicWallet, []*entities.MnemonicWalletSession, error)
func (*Service) ImportWallet ¶
func (*Service) StartSessionForWallet ¶
func (s *Service) StartSessionForWallet(ctx context.Context, wallet *entities.MnemonicWallet, ) (*entities.MnemonicWalletSession, error)
func (*Service) StartWalletSession ¶
func (s *Service) StartWalletSession(ctx context.Context, walletUUID string, ) (*entities.MnemonicWallet, *entities.MnemonicWalletSession, error)
Source Files ¶
- common.go
- data_adapter_sessions_by_wallet.go
- errors.go
- service.go
- service_multiple_wallets_disable.go
- service_multiple_wallets_enable.go
- service_multiple_wallets_get_enabled.go
- service_wallet_add.go
- service_wallet_check_session.go
- service_wallet_disable.go
- service_wallet_enable.go
- service_wallet_get_account.go
- service_wallet_get_info.go
- service_wallet_get_multiple_accounts.go
- service_wallet_import.go
- service_wallet_session_close.go
- service_wallet_session_get_info.go
- service_wallet_session_start.go
- service_wallet_sessions_get_by_wallet.go
Click to show internal directories.
Click to hide internal directories.