wallet

package
Version: v0.0.0-...-3606b63 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() wcom.WalletBizPolicy

New new instance

func NotifyConsensus

func NotifyConsensus(api client.QueueProtocolAPI, FuncName string, param []byte)

NotifyConsensus 通知para共识模块做相应的处理

Types

type ParaPolicy

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

ParaPolicy 结构体

func (*ParaPolicy) Call

func (policy *ParaPolicy) Call(funName string, in types.Message) (ret types.Message, err error)

Call call

func (*ParaPolicy) Init

func (policy *ParaPolicy) Init(walletBiz wcom.WalletOperate, sub []byte)

Init initial

func (*ParaPolicy) OnAddBlockFinish

func (policy *ParaPolicy) OnAddBlockFinish(block *types.BlockDetail)

OnAddBlockFinish process finish block

func (*ParaPolicy) OnAddBlockTx

func (policy *ParaPolicy) OnAddBlockTx(block *types.BlockDetail, tx *types.Transaction, index int32, dbbatch db.Batch) *types.WalletTxDetail

OnAddBlockTx add Block tx

func (*ParaPolicy) OnClose

func (policy *ParaPolicy) OnClose()

OnClose close

func (*ParaPolicy) OnCreateNewAccount

func (policy *ParaPolicy) OnCreateNewAccount(acc *types.Account)

OnCreateNewAccount 通知para共识有新账户创建

func (*ParaPolicy) OnDeleteBlockFinish

func (policy *ParaPolicy) OnDeleteBlockFinish(block *types.BlockDetail)

OnDeleteBlockFinish process finish block

func (*ParaPolicy) OnDeleteBlockTx

func (policy *ParaPolicy) OnDeleteBlockTx(block *types.BlockDetail, tx *types.Transaction, index int32, dbbatch db.Batch) *types.WalletTxDetail

OnDeleteBlockTx on delete block

func (*ParaPolicy) OnImportPrivateKey

func (policy *ParaPolicy) OnImportPrivateKey(acc *types.Account)

OnImportPrivateKey 通知para共识有新账户导入

func (*ParaPolicy) OnSetQueueClient

func (policy *ParaPolicy) OnSetQueueClient()

OnSetQueueClient on set queue client

func (*ParaPolicy) OnWalletLocked

func (policy *ParaPolicy) OnWalletLocked()

OnWalletLocked process lock event

func (*ParaPolicy) OnWalletUnlocked

func (policy *ParaPolicy) OnWalletUnlocked(param *types.WalletUnLock)

OnWalletUnlocked process unlock event,只处理wallet锁

func (*ParaPolicy) SignTransaction

func (policy *ParaPolicy) SignTransaction(key crypto.PrivKey, req *types.ReqSignRawTx) (needSysSign bool, signtx string, err error)

SignTransaction sign tx

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL