walletdispatcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainType

type ChainType = string

type CommonReply

type CommonReply = wallet2.SupportCoinsResponse

type CommonRequest

type CommonRequest interface {
	GetChain() string
}

type WalletDispatcher

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

func New

func New(conf *config.Config) (*WalletDispatcher, error)

func NewLocal

func NewLocal(network config.NetWorkType) *WalletDispatcher

func (*WalletDispatcher) ConvertAddress

func (*WalletDispatcher) CreateAccountSignedTx

func (*WalletDispatcher) CreateAccountTx

func (*WalletDispatcher) CreateUtxoSignedTx

func (*WalletDispatcher) CreateUtxoTx

func (*WalletDispatcher) GetAccount

func (*WalletDispatcher) GetAccountTxFromData

func (d *WalletDispatcher) GetAccountTxFromData(ctx context.Context, request *wallet2.TxFromDataRequest) (*wallet2.AccountTxResponse, error)

func (*WalletDispatcher) GetAccountTxFromSignedData

func (d *WalletDispatcher) GetAccountTxFromSignedData(ctx context.Context, request *wallet2.TxFromSignedDataRequest) (*wallet2.AccountTxResponse, error)

func (*WalletDispatcher) GetBalance

func (*WalletDispatcher) GetGasPrice

func (*WalletDispatcher) GetMinRent

func (*WalletDispatcher) GetNonce

func (*WalletDispatcher) GetSupportCoins

func (*WalletDispatcher) GetTxByAddress

func (*WalletDispatcher) GetTxByHash

func (*WalletDispatcher) GetUtxo

func (*WalletDispatcher) GetUtxoInsFromData

func (*WalletDispatcher) GetUtxoTxFromData

func (d *WalletDispatcher) GetUtxoTxFromData(ctx context.Context, request *wallet2.TxFromDataRequest) (*wallet2.UtxoTxResponse, error)

func (*WalletDispatcher) GetUtxoTxFromSignedData

func (d *WalletDispatcher) GetUtxoTxFromSignedData(ctx context.Context, request *wallet2.TxFromSignedDataRequest) (*wallet2.UtxoTxResponse, error)

func (*WalletDispatcher) Interceptor

func (d *WalletDispatcher) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

func (*WalletDispatcher) SendTx

func (*WalletDispatcher) ValidAddress

func (*WalletDispatcher) VerifyAccountSignedTx

func (*WalletDispatcher) VerifyUtxoSignedTx

Jump to

Keyboard shortcuts

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