service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Overview

Package service is a generated GoMock package.

Package service is a generated GoMock package.

Package service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParsingDepositOfferID = errors.New("error parsing deposit offer id")
	ErrParsingAddress        = errors.New("error parsing address")
	ErrDepositOfferNotFound  = errors.New("deposit offer not found")
	ErrInvalidSignature      = errors.New("invalid signature")
	ErrNoAliasFound          = errors.New("no alias found for given address")
	ErrAddressesSigsMismatch = errors.New("number of addresses does not match number of signatures")
)
View Source
var (
	ErrTxNotExists              = errors.New("multisig transaction does not exist")
	ErrEmptySignature           = errors.New("signature is empty")
	ErrParsingSignature         = errors.New("failed to retrieve address from signature")
	ErrAddressNotOwner          = errors.New("address is not an owner for this alias")
	ErrOwnerHasSigned           = errors.New("owner has already signed this alias")
	ErrThresholdParsing         = errors.New("threshold is not a number")
	ErrParsingTx                = errors.New("error parsing signed tx")
	ErrPendingTx                = errors.New("there is already a pending tx for this alias")
	ErrExpired                  = errors.New("expiration date has passed")
	ErrParsingChainId           = errors.New("error parsing chain id")
	ErrCannotUpdateNonExpiredTx = errors.New("cannot update non-expired tx")
)

Functions

This section is empty.

Types

type DepositOfferService added in v1.1.0

type DepositOfferService interface {
	AddSignatures(args *dto.AddSignatureArgs) error
	GetSignatures(address, timestamp, signature string, multisig bool) (*[]model.DepositOfferSig, error)
}

func NewDepositOfferService added in v1.1.0

func NewDepositOfferService(config *util.Config, dao dao.DepositOfferDao, nodeService NodeService) DepositOfferService

type MockDepositOfferService added in v1.1.0

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

MockDepositOfferService is a mock of DepositOfferService interface.

func NewMockDepositOfferService added in v1.1.0

func NewMockDepositOfferService(ctrl *gomock.Controller) *MockDepositOfferService

NewMockDepositOfferService creates a new mock instance.

func (*MockDepositOfferService) AddSignatures added in v1.1.0

func (m *MockDepositOfferService) AddSignatures(arg0 *dto.AddSignatureArgs) error

AddSignatures mocks base method.

func (*MockDepositOfferService) EXPECT added in v1.1.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDepositOfferService) GetSignatures added in v1.1.0

func (m *MockDepositOfferService) GetSignatures(arg0, arg1, arg2 string, arg3 bool) (*[]model.DepositOfferSig, error)

GetSignatures mocks base method.

type MockDepositOfferServiceMockRecorder added in v1.1.0

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

MockDepositOfferServiceMockRecorder is the mock recorder for MockDepositOfferService.

func (*MockDepositOfferServiceMockRecorder) AddSignatures added in v1.1.0

func (mr *MockDepositOfferServiceMockRecorder) AddSignatures(arg0 interface{}) *gomock.Call

AddSignatures indicates an expected call of AddSignatures.

func (*MockDepositOfferServiceMockRecorder) GetSignatures added in v1.1.0

func (mr *MockDepositOfferServiceMockRecorder) GetSignatures(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetSignatures indicates an expected call of GetSignatures.

type MockMultisigService

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

MockMultisigService is a mock of MultisigService interface.

func NewMockMultisigService

func NewMockMultisigService(ctrl *gomock.Controller) *MockMultisigService

NewMockMultisigService creates a new mock instance.

func (*MockMultisigService) CancelMultisigTx

func (m *MockMultisigService) CancelMultisigTx(arg0 *dto.CancelTxArgs) error

CancelMultisigTx mocks base method.

func (*MockMultisigService) CreateMultisigTx

func (m *MockMultisigService) CreateMultisigTx(arg0 *dto.MultisigTxArgs) (*model.MultisigTx, error)

CreateMultisigTx mocks base method.

func (*MockMultisigService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMultisigService) GetAllMultisigTxForAlias

func (m *MockMultisigService) GetAllMultisigTxForAlias(arg0, arg1, arg2 string) (*[]model.MultisigTx, error)

GetAllMultisigTxForAlias mocks base method.

func (*MockMultisigService) GetMultisigTx

func (m *MockMultisigService) GetMultisigTx(arg0 string) (*model.MultisigTx, error)

GetMultisigTx mocks base method.

func (*MockMultisigService) IssueMultisigTx

func (m *MockMultisigService) IssueMultisigTx(arg0 *dto.IssueTxArgs) (ids.ID, error)

IssueMultisigTx mocks base method.

func (*MockMultisigService) SignMultisigTx

func (m *MockMultisigService) SignMultisigTx(arg0 string, arg1 *dto.SignTxArgs) (*model.MultisigTx, error)

SignMultisigTx mocks base method.

type MockMultisigServiceMockRecorder

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

MockMultisigServiceMockRecorder is the mock recorder for MockMultisigService.

func (*MockMultisigServiceMockRecorder) CancelMultisigTx

func (mr *MockMultisigServiceMockRecorder) CancelMultisigTx(arg0 interface{}) *gomock.Call

CancelMultisigTx indicates an expected call of CancelMultisigTx.

func (*MockMultisigServiceMockRecorder) CreateMultisigTx

func (mr *MockMultisigServiceMockRecorder) CreateMultisigTx(arg0 interface{}) *gomock.Call

CreateMultisigTx indicates an expected call of CreateMultisigTx.

func (*MockMultisigServiceMockRecorder) GetAllMultisigTxForAlias

func (mr *MockMultisigServiceMockRecorder) GetAllMultisigTxForAlias(arg0, arg1, arg2 interface{}) *gomock.Call

GetAllMultisigTxForAlias indicates an expected call of GetAllMultisigTxForAlias.

func (*MockMultisigServiceMockRecorder) GetMultisigTx

func (mr *MockMultisigServiceMockRecorder) GetMultisigTx(arg0 interface{}) *gomock.Call

GetMultisigTx indicates an expected call of GetMultisigTx.

func (*MockMultisigServiceMockRecorder) IssueMultisigTx

func (mr *MockMultisigServiceMockRecorder) IssueMultisigTx(arg0 interface{}) *gomock.Call

IssueMultisigTx indicates an expected call of IssueMultisigTx.

func (*MockMultisigServiceMockRecorder) SignMultisigTx

func (mr *MockMultisigServiceMockRecorder) SignMultisigTx(arg0, arg1 interface{}) *gomock.Call

SignMultisigTx indicates an expected call of SignMultisigTx.

type MockNodeService

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

MockNodeService is a mock of NodeService interface.

func NewMockNodeService

func NewMockNodeService(ctrl *gomock.Controller) *MockNodeService

NewMockNodeService creates a new mock instance.

func (*MockNodeService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNodeService) GetAllDepositOffers added in v1.1.0

GetAllDepositOffers mocks base method.

func (*MockNodeService) GetMultisigAlias

func (m *MockNodeService) GetMultisigAlias(arg0 string) (*model.AliasInfo, error)

GetMultisigAlias mocks base method.

func (*MockNodeService) IssueTx

func (m *MockNodeService) IssueTx(arg0 []byte) (ids.ID, error)

IssueTx mocks base method.

type MockNodeServiceMockRecorder

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

MockNodeServiceMockRecorder is the mock recorder for MockNodeService.

func (*MockNodeServiceMockRecorder) GetAllDepositOffers added in v1.1.0

func (mr *MockNodeServiceMockRecorder) GetAllDepositOffers(arg0 interface{}) *gomock.Call

GetAllDepositOffers indicates an expected call of GetAllDepositOffers.

func (*MockNodeServiceMockRecorder) GetMultisigAlias

func (mr *MockNodeServiceMockRecorder) GetMultisigAlias(arg0 interface{}) *gomock.Call

GetMultisigAlias indicates an expected call of GetMultisigAlias.

func (*MockNodeServiceMockRecorder) IssueTx

func (mr *MockNodeServiceMockRecorder) IssueTx(arg0 interface{}) *gomock.Call

IssueTx indicates an expected call of IssueTx.

type MultisigService

type MultisigService interface {
	CreateMultisigTx(multisigTxArgs *dto.MultisigTxArgs) (*model.MultisigTx, error)
	GetAllMultisigTxForAlias(alias string, timestamp string, signature string) (*[]model.MultisigTx, error)
	GetMultisigTx(id string) (*model.MultisigTx, error)
	SignMultisigTx(id string, signer *dto.SignTxArgs) (*model.MultisigTx, error)
	IssueMultisigTx(issueTxArgs *dto.IssueTxArgs) (ids.ID, error)
	CancelMultisigTx(cancelTxArgs *dto.CancelTxArgs) error
	// contains filtered or unexported methods
}

func NewMultisigService

func NewMultisigService(config *util.Config, dao dao.MultisigTxDao, nodeService NodeService) MultisigService

type NodeService

type NodeService interface {
	GetMultisigAlias(alias string) (*model.AliasInfo, error)
	IssueTx(txBytes []byte) (ids.ID, error)
	GetAllDepositOffers(args *platformvm.GetAllDepositOffersArgs) (*platformvm.GetAllDepositOffersReply, error)
}

func NewNodeService

func NewNodeService(config *util.Config) NodeService

Jump to

Keyboard shortcuts

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