wallet

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package wallet is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWallet

type IWallet interface {
	Balance() int64
	Address() string
	TransferTransaction(toAddress, memo string, amt amount.Amount) (string, error)
	BondTransaction(pubKey, toAddress, memo string, amt amount.Amount) (string, error)
}

type MockIWallet

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

MockIWallet is a mock of IWallet interface.

func NewMockIWallet

func NewMockIWallet(ctrl *gomock.Controller) *MockIWallet

NewMockIWallet creates a new mock instance.

func (*MockIWallet) Address

func (m *MockIWallet) Address() string

Address mocks base method.

func (*MockIWallet) Balance

func (m *MockIWallet) Balance() int64

Balance mocks base method.

func (*MockIWallet) BondTransaction

func (m *MockIWallet) BondTransaction(pubKey, toAddress, memo string, amt amount.Amount) (string, error)

BondTransaction mocks base method.

func (*MockIWallet) EXPECT

func (m *MockIWallet) EXPECT() *MockIWalletMockRecorder

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

func (*MockIWallet) TransferTransaction

func (m *MockIWallet) TransferTransaction(toAddress, memo string, amt amount.Amount) (string, error)

TransferTransaction mocks base method.

type MockIWalletMockRecorder

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

MockIWalletMockRecorder is the mock recorder for MockIWallet.

func (*MockIWalletMockRecorder) Address

func (mr *MockIWalletMockRecorder) Address() *gomock.Call

Address indicates an expected call of Address.

func (*MockIWalletMockRecorder) Balance

func (mr *MockIWalletMockRecorder) Balance() *gomock.Call

Balance indicates an expected call of Balance.

func (*MockIWalletMockRecorder) BondTransaction

func (mr *MockIWalletMockRecorder) BondTransaction(pubKey, toAddress, memo, amt any) *gomock.Call

BondTransaction indicates an expected call of BondTransaction.

func (*MockIWalletMockRecorder) TransferTransaction

func (mr *MockIWalletMockRecorder) TransferTransaction(toAddress, memo, amt any) *gomock.Call

TransferTransaction indicates an expected call of TransferTransaction.

type Wallet

type Wallet struct {
	*wallet.Wallet
	// contains filtered or unexported fields
}

func Open

func Open(cfg *config.Wallet) (*Wallet, error)

func (*Wallet) Address

func (w *Wallet) Address() string

func (*Wallet) Balance

func (w *Wallet) Balance() int64

func (*Wallet) BondTransaction

func (w *Wallet) BondTransaction(pubKey, toAddress, memo string, amt amount.Amount) (string, error)

func (*Wallet) TransferTransaction

func (w *Wallet) TransferTransaction(toAddress, memo string, amt amount.Amount) (string, error)

Jump to

Keyboard shortcuts

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