Documentation ¶
Index ¶
- Variables
- func ConvertApiTrxToIntTrx(trx *api.Transaction) (*types.Transaction, error)
- func ConvertIntTrxToApiTrx(trx *types.Transaction) *api.Transaction
- func NewApiActor() *actor.PID
- func NewApiService(env *env.ActorEnv) api.ChainHandler
- func SetChainActorPid(tpid *actor.PID)
- func SetTrxPreHandleActorPid(tpid *actor.PID)
- type ApiActor
- type ApiService
- func (a *ApiService) ConnectPeerByAddress(ctx context.Context, req *api.ConnectPeerByAddressRequest, ...) error
- func (a *ApiService) CreateAccount(ctx context.Context, req *api.CreateAccountRequest, ...) error
- func (a *ApiService) CreateWallet(ctx context.Context, req *api.CreateWalletRequest, ...) error
- func (a *ApiService) CreateWalletManual(ctx context.Context, req *api.CreateWalletManualRequest, ...) error
- func (a *ApiService) DisconnectPeerByAddress(ctx context.Context, req *api.DisconnectPeerByAddressRequest, ...) error
- func (a *ApiService) GenerateKeyPair(ctx context.Context, req *api.GenerateKeyPairRequest, ...) error
- func (a *ApiService) GetAbi(ctx context.Context, req *api.GetAbiRequest, resp *api.GetAbiResponse) error
- func (a *ApiService) GetAccount(ctx context.Context, req *api.GetAccountRequest, resp *api.GetAccountResponse) error
- func (a *ApiService) GetAccountBrief(ctx context.Context, req *api.GetAccountBriefRequest, ...) error
- func (a *ApiService) GetAllDelegates(ctx context.Context, req *api.GetAllDelegatesRequest, ...) error
- func (a *ApiService) GetBlock(ctx context.Context, req *api.GetBlockRequest, resp *api.GetBlockResponse) error
- func (a *ApiService) GetDelegate(ctx context.Context, req *api.GetDelegateRequest, ...) error
- func (a *ApiService) GetForecastResBalance(ctx context.Context, req *api.GetForecastResBalanceRequest, ...) error
- func (a *ApiService) GetHashForSign(ctx context.Context, req *api.GetHashForSignRequest, ...) error
- func (a *ApiService) GetInfo(ctx context.Context, req *api.GetInfoRequest, resp *api.GetInfoResponse) error
- func (a *ApiService) GetKeyPair(ctx context.Context, req *api.GetKeyPairRequest, resp *api.GetKeyPairResponse) error
- func (a *ApiService) GetPeerStateByAddress(ctx context.Context, req *api.GetPeerStateByAddressRequest, ...) error
- func (a *ApiService) GetPeers(ctx context.Context, req *api.GetPeersRequest, resp *api.GetPeersResponse) error
- func (a *ApiService) GetPubKey(ctx context.Context, req *api.GetPubKeyRequest, resp *api.GetPubKeyResponse) error
- func (a *ApiService) GetTransaction(ctx context.Context, req *api.GetTransactionRequest, ...) error
- func (a *ApiService) GetTransferCredit(ctx context.Context, req *api.GetTransferCreditRequest, ...) error
- func (a *ApiService) ListWallet(ctx context.Context, req *api.ListWalletRequest, resp *api.ListWalletResponse) error
- func (a *ApiService) LockAccount(ctx context.Context, req *api.LockAccountRequest, ...) error
- func (a *ApiService) QueryDBValue(ctx context.Context, req *api.QueryDBValueRequest, ...) error
- func (a *ApiService) ReviewProposal(ctx context.Context, req *api.ReviewProposalRequest, ...) error
- func (a *ApiService) SendTransaction(ctx context.Context, trx *api.Transaction, resp *api.SendTransactionResponse) error
- func (a *ApiService) SignData(ctx context.Context, req *api.SignDataRequest, resp *api.SignDataResponse) error
- func (a *ApiService) SignHash(ctx context.Context, req *api.SignHashRequest, resp *api.SignHashResponse) error
- func (a *ApiService) SignTransaction(ctx context.Context, req *api.SignTransactionRequest, ...) error
- func (a *ApiService) UnlockAccount(ctx context.Context, req *api.UnlockAccountRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
var ApiActorPid *actor.PID
ApiActorPid is actor pid
var QuerhChainInfoCntReq uint32 = 0
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 NewApiService ¶
func NewApiService(env *env.ActorEnv) api.ChainHandler
NewApiService new api service
func SetTrxPreHandleActorPid ¶
SetTrxActorPid set trx actor pid
Types ¶
type ApiActor ¶
type ApiActor struct {
// contains filtered or unexported fields
}
ApiActor is actor props
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
ApiService is actor service
func (*ApiService) ConnectPeerByAddress ¶
func (a *ApiService) ConnectPeerByAddress(ctx context.Context, req *api.ConnectPeerByAddressRequest, resp *api.ConnectPeerByAddressResponse) error
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 ¶
func (a *ApiService) CreateWalletManual(ctx context.Context, req *api.CreateWalletManualRequest, resp *api.CreateWalletManualResponse) error
CreateWalletManual get all delegates
func (*ApiService) DisconnectPeerByAddress ¶
func (a *ApiService) DisconnectPeerByAddress(ctx context.Context, req *api.DisconnectPeerByAddressRequest, resp *api.DisconnectPeerByAddressResponse) error
DisconnectPeerByAddress query peers
func (*ApiService) GenerateKeyPair ¶
func (a *ApiService) GenerateKeyPair(ctx context.Context, req *api.GenerateKeyPairRequest, resp *api.GenerateKeyPairResponse) error
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 ¶
func (a *ApiService) GetAccountBrief(ctx context.Context, req *api.GetAccountBriefRequest, resp *api.GetAccountBriefResponse) error
GetAccountBrief query account Brief
func (*ApiService) GetAllDelegates ¶
func (a *ApiService) GetAllDelegates(ctx context.Context, req *api.GetAllDelegatesRequest, resp *api.GetAllDelegatesResponse) error
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 ¶
func (a *ApiService) GetForecastResBalance(ctx context.Context, req *api.GetForecastResBalanceRequest, resp *api.GetForecastResBalanceResponse) error
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 ¶
func (a *ApiService) GetPeerStateByAddress(ctx context.Context, req *api.GetPeerStateByAddressRequest, resp *api.GetPeerStateByAddressResponse) error
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 ¶
func (a *ApiService) GetTransferCredit(ctx context.Context, req *api.GetTransferCreditRequest, resp *api.GetTransferCreditResponse) error
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 ¶
func (a *ApiService) SignTransaction(ctx context.Context, req *api.SignTransactionRequest, resp *api.SignTransactionResponse) error
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