apiactor

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiActorPid *actor.PID

ApiActorPid is actor pid

View Source
var QuerhChainInfoCntReq uint32 = 0
View Source
var QuerhChainInfoCntSuc uint32 = 0

Functions

func ConvertApiTrxToIntTrx

func ConvertApiTrxToIntTrx(trx *api.Transaction) (*types.Transaction, error)

func ConvertIntTrxToApiTrx

func ConvertIntTrxToApiTrx(trx *types.Transaction) *api.Transaction

func NewApiActor

func NewApiActor() *actor.PID

NewApiActor spawn a named actor

func NewApiService

func NewApiService(env *env.ActorEnv) api.ChainHandler

NewApiService new api service

func SetChainActorPid

func SetChainActorPid(tpid *actor.PID)

SetChainActorPid set chain actor pid

func SetTrxPreHandleActorPid

func SetTrxPreHandleActorPid(tpid *actor.PID)

SetTrxActorPid set trx actor pid

Types

type ApiActor

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

ApiActor is actor props

func ContructApiActor

func ContructApiActor() *ApiActor

ContructApiActor new an actor

func (*ApiActor) Receive

func (apiActor *ApiActor) Receive(context actor.Context)

Receive process msg

type ApiService

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

ApiService is actor service

func (*ApiService) ConnectPeerByAddress

ConnectPeerByAddress query peers

func (*ApiService) CreateAccount

func (a *ApiService) CreateAccount(ctx context.Context, req *api.CreateAccountRequest, resp *api.CreateAccountResponse) error

CreateAccount get all delegates

func (*ApiService) CreateWallet

func (a *ApiService) CreateWallet(ctx context.Context, req *api.CreateWalletRequest, resp *api.CreateWalletResponse) error

CreateWallet get all delegates

func (*ApiService) CreateWalletManual

CreateWalletManual get all delegates

func (*ApiService) DisconnectPeerByAddress

DisconnectPeerByAddress query peers

func (*ApiService) GenerateKeyPair

GenerateKeyPair query chain info

func (*ApiService) GetAbi

func (a *ApiService) GetAbi(ctx context.Context, req *api.GetAbiRequest, resp *api.GetAbiResponse) error

GetAbi query contract abi info

func (*ApiService) GetAccount

func (a *ApiService) GetAccount(ctx context.Context, req *api.GetAccountRequest, resp *api.GetAccountResponse) error

GetAccount query account info

func (*ApiService) GetAccountBrief

GetAccountBrief query account Brief

func (*ApiService) GetAllDelegates

GetAllDelegates get all delegates

func (*ApiService) GetBlock

func (a *ApiService) GetBlock(ctx context.Context, req *api.GetBlockRequest, resp *api.GetBlockResponse) error

GetBlock query block

func (*ApiService) GetDelegate

func (a *ApiService) GetDelegate(ctx context.Context, req *api.GetDelegateRequest, resp *api.GetDelegateResponse) error

GetDelegate query chain info

func (*ApiService) GetForecastResBalance

GetDelegate query chain info

func (*ApiService) GetHashForSign

func (a *ApiService) GetHashForSign(ctx context.Context, req *api.GetHashForSignRequest, resp *api.GetHashForSignResponse) error

GetHashForSign query account Brief

func (*ApiService) GetInfo

func (a *ApiService) GetInfo(ctx context.Context, req *api.GetInfoRequest, resp *api.GetInfoResponse) error

GetInfo query chain info

func (*ApiService) GetKeyPair

func (a *ApiService) GetKeyPair(ctx context.Context, req *api.GetKeyPairRequest, resp *api.GetKeyPairResponse) error

GetKeyPair query chain info

func (*ApiService) GetPeerStateByAddress

GetPeerStateByAddress query peers

func (*ApiService) GetPeers

func (a *ApiService) GetPeers(ctx context.Context, req *api.GetPeersRequest, resp *api.GetPeersResponse) error

GetPeers query peers

func (*ApiService) GetPubKey

func (a *ApiService) GetPubKey(ctx context.Context, req *api.GetPubKeyRequest, resp *api.GetPubKeyResponse) error

GetDelegate query chain info

func (*ApiService) GetTransaction

func (a *ApiService) GetTransaction(ctx context.Context, req *api.GetTransactionRequest, resp *api.GetTransactionResponse) error

GetTransaction query trx

func (*ApiService) GetTransferCredit

GetTransferCredit query trx credit info

func (*ApiService) ListWallet

func (a *ApiService) ListWallet(ctx context.Context, req *api.ListWalletRequest, resp *api.ListWalletResponse) error

ListWallet get Wallet List

func (*ApiService) LockAccount

func (a *ApiService) LockAccount(ctx context.Context, req *api.LockAccountRequest, resp *api.LockAccountResponse) error

GetKeyPair query chain info

func (*ApiService) QueryDBValue

func (a *ApiService) QueryDBValue(ctx context.Context, req *api.QueryDBValueRequest, resp *api.QueryDBValueResponse) error

QueryDBValue query contract object

func (*ApiService) ReviewProposal

func (a *ApiService) ReviewProposal(ctx context.Context, req *api.ReviewProposalRequest, resp *api.ReviewProposalResponse) error

ReviewProposal query account Brief

func (*ApiService) SendTransaction

func (a *ApiService) SendTransaction(ctx context.Context, trx *api.Transaction, resp *api.SendTransactionResponse) error

SendTransaction push trx

func (*ApiService) SignData

func (a *ApiService) SignData(ctx context.Context, req *api.SignDataRequest, resp *api.SignDataResponse) error

SignData query chain info

func (*ApiService) SignHash

func (a *ApiService) SignHash(ctx context.Context, req *api.SignHashRequest, resp *api.SignHashResponse) error

SignHash query chain info

func (*ApiService) SignTransaction

SignTransaction query chain info

func (*ApiService) UnlockAccount

func (a *ApiService) UnlockAccount(ctx context.Context, req *api.UnlockAccountRequest, resp *api.UnlockAccountResponse) error

GetKeyPair query chain info

Jump to

Keyboard shortcuts

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