Documentation ¶
Overview ¶
Package client holds data for access to our RPC interface
Index ¶
- Variables
- type AddAccountReply
- type AddAccountRequest
- type BTCGetTrackerReply
- type BTCGetTrackerRequest
- type BTCLockPrepareRequest
- type BTCLockPrepareResponse
- type BTCLockRequest
- type BTCRedeemPrepareResponse
- type BTCRedeemRequest
- type BalancePoolRequest
- type BalanceReply
- type BalanceRequest
- type BroadcastMode
- type BroadcastMtSigRequest
- type BroadcastReply
- type BroadcastRequest
- type CancelProposalRequest
- type CreateProposalRequest
- type CreateTxReply
- type CurrencyBalanceReply
- type CurrencyBalanceRequest
- type DelegationStatusReply
- type DelegationStatusRequest
- type DeleteAccountReply
- type DeleteAccountRequest
- type ETHLockRequest
- type EmptyRequest
- type ExtServiceContext
- func (ctx ExtServiceContext) Block(height int64) (res *ctypes.ResultBlock)
- func (ctx ExtServiceContext) BroadcastTxAsync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
- func (ctx ExtServiceContext) BroadcastTxCommit(packet []byte) (res *ctypes.ResultBroadcastTxCommit, err error)
- func (ctx ExtServiceContext) BroadcastTxSync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
- func (ctx *ExtServiceContext) FullNodeClient() *ServiceClient
- func (ctx ExtServiceContext) Query(serviceMethod string, args interface{}, response interface{}) error
- func (ctx ExtServiceContext) Search(query string, prove bool, page, perPage int, orderBy string) (res *ctypes.ResultTxSearch)
- func (ctx ExtServiceContext) Tx(hash []byte, prove bool) (res *ctypes.ResultTx, err error)
- type FeeOptionsReply
- type FinalizeProposalRequest
- type FundProposalRequest
- type GenerateAccountRequest
- type GetFundsForProposalByFunderReply
- type GetFundsForProposalByFunderRequest
- type GetProposalOptionsReply
- type GetProposalOptionsRequest
- type GovernanceOptionsReply
- type GovernanceOptionsRequest
- type InputTransaction
- type ListAccountAddressesReply
- type ListAccountsReply
- type ListAccountsRequest
- type ListCurrenciesReply
- type ListCurrenciesRequest
- type ListProposalRequest
- type ListProposalsReply
- type ListProposalsRequest
- type ListRewardsReply
- type ListRewardsRequest
- type ListTxTypesReply
- type ListTxTypesRequest
- type ListValidatorsReply
- type ListValidatorsRequest
- type ListWitnessesReply
- type ListWitnessesRequest
- type MaxTrackerBalanceReply
- type NewAccountReply
- type NewAccountRequest
- type NodeAddressReply
- type NodeAddressRequest
- type NodeIDReply
- type NodeIDRequest
- type NodeNameReply
- type NodeNameRequest
- type ONSCreateRequest
- type ONSCreateSubRequest
- type ONSDeleteSubRequest
- type ONSGetDomainsReply
- type ONSGetDomainsRequest
- type ONSGetOptionsReply
- type ONSPurchaseRequest
- type ONSRenewRequest
- type ONSSaleRequest
- type ONSSendRequest
- type ONSUpdateRequest
- type ProposalStat
- type RewardStat
- type RewardsRequest
- type SendPoolTxRequest
- type SendTxRequest
- type ServiceClient
- func (c *ServiceClient) AddAccount(req AddAccountRequest) (out AddAccountReply, err error)
- func (c *ServiceClient) Balance(addr keys.Address) (out BalanceReply, err error)
- func (c *ServiceClient) BalancePool(poolname string) (out BalanceReply, err error)
- func (c *ServiceClient) CreateRawSend(req SendTxRequest) (out *CreateTxReply, err error)
- func (c *ServiceClient) CreateRawSendPool(req SendPoolTxRequest) (out *CreateTxReply, err error)
- func (c *ServiceClient) CurrBalance(addr keys.Address, currency string) (out CurrencyBalanceReply, err error)
- func (c *ServiceClient) DelegationStatus(request DelegationStatusRequest) (out DelegationStatusReply, err error)
- func (c *ServiceClient) DeleteAccount(req DeleteAccountRequest) (out DeleteAccountReply, err error)
- func (c *ServiceClient) GetTracker(name string) (out BTCGetTrackerReply, err error)
- func (c *ServiceClient) ListAccountAddresses() (out ListAccountAddressesReply, err error)
- func (c *ServiceClient) ListAccounts() (out ListAccountsReply, err error)
- func (c *ServiceClient) ListCurrencies() (out *ListCurrenciesReply, err error)
- func (c *ServiceClient) ListProposal(req ListProposalRequest) (out *ListProposalsReply, err error)
- func (c *ServiceClient) ListProposals(req ListProposalsRequest) (out *ListProposalsReply, err error)
- func (c *ServiceClient) ListRewards(req RewardsRequest) (out *ListRewardsReply, err error)
- func (c *ServiceClient) ListValidators() (out ListValidatorsReply, err error)
- func (c *ServiceClient) ListWitnesses(req ListWitnessesRequest) (out ListWitnessesReply, err error)
- func (c *ServiceClient) NodeAddress() (out NodeAddressReply, err error)
- func (c *ServiceClient) NodeID(req NodeIDRequest) (out NodeIDReply, err error)
- func (c *ServiceClient) NodeName() (out NodeNameReply, err error)
- func (c *ServiceClient) ONS_CreateRawBuy(req ONSPurchaseRequest) (out CreateTxReply, err error)
- func (c *ServiceClient) ONS_CreateRawCreate(req ONSCreateRequest) (out CreateTxReply, err error)
- func (c *ServiceClient) ONS_CreateRawSale(req ONSSaleRequest) (out CreateTxReply, err error)
- func (c *ServiceClient) ONS_CreateRawSend(req ONSSendRequest) (out CreateTxReply, err error)
- func (c *ServiceClient) ONS_CreateRawUpdate(req ONSUpdateRequest) (out CreateTxReply, err error)
- func (c *ServiceClient) SendTx(req SendTxRequest) (out CreateTxReply, err error)
- func (c *ServiceClient) Stake(req StakeRequest) (out StakeReply, err error)
- func (c *ServiceClient) TxAsync(req BroadcastRequest) (out BroadcastReply, err error)
- func (c *ServiceClient) TxCommit(req BroadcastRequest) (out BroadcastReply, err error)
- func (c *ServiceClient) TxSync(req BroadcastRequest) (out BroadcastReply, err error)
- func (c *ServiceClient) Unstake(req UnstakeRequest) (out UnstakeReply, err error)
- func (c *ServiceClient) ValidatorStatus(request ValidatorStatusRequest) (out ValidatorStatusReply, err error)
- func (c *ServiceClient) VoteProposal(req VoteProposalRequest) (out *VoteProposalReply, err error)
- func (c *ServiceClient) Withdraw(req WithdrawRequest) (out WithdrawReply, err error)
- func (c *ServiceClient) WithdrawRewards(req WithdrawRewardsRequest) (out WithdrawRewardsReply, err error)
- type SignRawTxRequest
- type SignRawTxResponse
- type StakeReply
- type StakeRequest
- type TxRequest
- type TxResponse
- type UnstakeReply
- type UnstakeRequest
- type ValidatorRewardStats
- type ValidatorStatusReply
- type ValidatorStatusRequest
- type VoteProposalReply
- type VoteProposalRequest
- type WithdrawFundsRequest
- type WithdrawReply
- type WithdrawRequest
- type WithdrawRewardsReply
- type WithdrawRewardsRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyQuery = errors.New("empty query path") ErrEmptyResponse = errors.New("empty response") )
View Source
var ErrEmptyTransaction = errors.New("empty transaction")
Functions ¶
This section is empty.
Types ¶
type AddAccountReply ¶ added in v0.10.8
type AddAccountRequest ¶ added in v0.10.8
type BTCGetTrackerReply ¶ added in v0.13.0
type BTCGetTrackerReply struct {
TrackerData string `json:"tracker"`
}
type BTCGetTrackerRequest ¶ added in v0.13.0
type BTCGetTrackerRequest struct {
Name string `json:"name"`
}
type BTCLockPrepareRequest ¶ added in v0.13.0
type BTCLockPrepareRequest struct { Inputs []InputTransaction `json:"inputs"` AmountSatoshi int64 `json:"amount"` FeeRate int64 `json:"fee_rate"` ReturnAddressStr string `json:"return_address"` }
type BTCLockPrepareResponse ¶ added in v0.13.0
type BTCLockRequest ¶ added in v0.13.0
type BTCRedeemPrepareResponse ¶ added in v0.13.0
type BTCRedeemRequest ¶ added in v0.13.0
type BalancePoolRequest ¶ added in v0.14.4
type BalancePoolRequest struct {
Poolname string `json:"poolname"`
}
type BalanceReply ¶ added in v0.10.8
type BalanceRequest ¶ added in v0.10.8
Blockchain service
type BroadcastMode ¶ added in v0.10.8
type BroadcastMode string
const ( BROADCASTASYNC BroadcastMode = "async" BROADCASTSYNC BroadcastMode = "sync" BROADCASTCOMMIT BroadcastMode = "commit" )
type BroadcastMtSigRequest ¶ added in v0.14.3
type BroadcastReply ¶ added in v0.10.8
type BroadcastReply struct { TxHash bytes.HexBytes `json:"txHash"` // OK indicates whether this broadcast was a request. // For TxSync, it indicates success of CheckTx. Does not guarantee inclusion of a block // For TxAsync, it always returns true // For TxCommit, it indicates the success of both CheckTx and DeliverTx. If the broadcast fails is false. OK bool `json:"ok"` Height *int64 `json:"height,omitempty"` Log string `json:"log"` }
func (*BroadcastReply) FromResultBroadcastTx ¶ added in v0.10.8
func (reply *BroadcastReply) FromResultBroadcastTx(result *ctypes.ResultBroadcastTx)
func (*BroadcastReply) FromResultBroadcastTxCommit ¶ added in v0.10.8
func (reply *BroadcastReply) FromResultBroadcastTxCommit(result *ctypes.ResultBroadcastTxCommit)
type BroadcastRequest ¶ added in v0.10.8
type CancelProposalRequest ¶ added in v0.14.3
type CancelProposalRequest struct { ProposalId governance.ProposalID `json:"proposalId"` Proposer keys.Address `json:"proposer"` Reason string `json:"reason"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` }
type CreateProposalRequest ¶ added in v0.14.3
type CreateProposalRequest struct { ProposalID string `json:"proposalId"` ProposalType string `json:"proposalType"` Headline string `json:"headline"` Description string `json:"description"` Proposer keys.Address `json:"proposer"` InitialFunding action.Amount `json:"initialFunding"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` FundingDeadline int64 `json:"fundingDeadline"` FundingGoal *balance.Amount `json:"fundingGoal"` VotingDeadline int64 `json:"votingDeadline"` PassPercentage int `json:"passPercentage"` ConfigUpdate governance.GovernanceState `json:"configUpdate"` }
type CreateTxReply ¶ added in v0.14.0
type CreateTxReply struct {
RawTx []byte `json:"rawTx"`
}
type CurrencyBalanceReply ¶ added in v0.13.0
type CurrencyBalanceRequest ¶ added in v0.13.0
type DelegationStatusReply ¶ added in v0.14.3
type DelegationStatusReply struct { Balance string `json:"balance"` EffectiveDelegationAmount string `json:"effectiveDelegationAmount"` WithdrawableAmount string `json:"withdrawableAmount"` MaturedAmounts []*delegation.MatureData `json:"maturedAmount"` }
type DelegationStatusRequest ¶ added in v0.14.3
type DeleteAccountReply ¶ added in v0.10.8
type DeleteAccountReply struct {
Deleted bool `json:"deleted"`
}
type DeleteAccountRequest ¶ added in v0.10.8
type ETHLockRequest ¶ added in v0.13.0
type EmptyRequest ¶ added in v0.14.0
type EmptyRequest struct { }
type ExtServiceContext ¶ added in v0.10.8
type ExtServiceContext struct {
// contains filtered or unexported fields
}
ExtServiceContext holds clients for making requests to external services
func NewExtServiceContext ¶ added in v0.10.8
func NewExtServiceContext(rpcAddress, sdkAddress string) (cliCtx ExtServiceContext, err error)
Generators
func (ExtServiceContext) Block ¶ added in v0.10.8
func (ctx ExtServiceContext) Block(height int64) (res *ctypes.ResultBlock)
func (ExtServiceContext) BroadcastTxAsync ¶ added in v0.10.8
func (ctx ExtServiceContext) BroadcastTxAsync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
func (ExtServiceContext) BroadcastTxCommit ¶ added in v0.10.8
func (ctx ExtServiceContext) BroadcastTxCommit(packet []byte) (res *ctypes.ResultBroadcastTxCommit, err error)
func (ExtServiceContext) BroadcastTxSync ¶ added in v0.10.8
func (ctx ExtServiceContext) BroadcastTxSync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
func (*ExtServiceContext) FullNodeClient ¶ added in v0.10.8
func (ctx *ExtServiceContext) FullNodeClient() *ServiceClient
func (ExtServiceContext) Query ¶ added in v0.10.8
func (ctx ExtServiceContext) Query(serviceMethod string, args interface{}, response interface{}) error
func (ExtServiceContext) Search ¶ added in v0.10.8
func (ctx ExtServiceContext) Search(query string, prove bool, page, perPage int, orderBy string) (res *ctypes.ResultTxSearch)
type FeeOptionsReply ¶ added in v0.14.0
type FinalizeProposalRequest ¶ added in v0.14.3
type FinalizeProposalRequest struct { ProposalId governance.ProposalID `json:"proposalId"` Proposer action.Address `json:"proposer"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` }
type FundProposalRequest ¶ added in v0.14.3
type FundProposalRequest struct { ProposalId governance.ProposalID `json:"proposalId"` FundValue action.Amount `json:"fundValue"` FunderAddress action.Address `json:"funderAddress"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` }
type GenerateAccountRequest ¶ added in v0.10.8
type GenerateAccountRequest struct {
Name string `json:"name"`
}
type GetFundsForProposalByFunderReply ¶ added in v0.14.3
type GetFundsForProposalByFunderRequest ¶ added in v0.14.3
type GetFundsForProposalByFunderRequest struct { ProposalId governance.ProposalID `json:"proposalId"` Funder keys.Address `json:"funderAddress"` }
type GetProposalOptionsReply ¶ added in v0.14.3
type GetProposalOptionsReply struct { ProposalOptions governance.ProposalOptionSet `json:"proposalOptions"` Height int64 `json:"height"` }
type GetProposalOptionsRequest ¶ added in v0.14.3
type GetProposalOptionsRequest struct{}
type GovernanceOptionsReply ¶ added in v0.14.3
type GovernanceOptionsReply struct { GovOptions governance.GovernanceState `json:"govOptions"` LastUpdateHeight int64 `json:"lastUpdateHeight"` }
type GovernanceOptionsRequest ¶ added in v0.14.3
type GovernanceOptionsRequest struct { }
type InputTransaction ¶ added in v0.14.0
type ListAccountAddressesReply ¶ added in v0.10.8
type ListAccountAddressesReply struct {
Addresses []string `json:"addresses"`
}
type ListAccountsReply ¶ added in v0.10.8
type ListAccountsRequest ¶ added in v0.10.8
type ListAccountsRequest struct{}
type ListCurrenciesReply ¶ added in v0.10.8
type ListCurrenciesReply struct {
Currencies balance.Currencies `json:"currencies"`
}
type ListCurrenciesRequest ¶ added in v0.10.8
type ListCurrenciesRequest struct{}
type ListProposalRequest ¶ added in v0.14.3
type ListProposalRequest struct {
ProposalId governance.ProposalID `json:"proposalId"`
}
type ListProposalsReply ¶ added in v0.14.3
type ListProposalsReply struct { ProposalStats []ProposalStat `json:"proposalStats"` Height int64 `json:"height"` }
type ListProposalsRequest ¶ added in v0.14.3
type ListProposalsRequest struct { State governance.ProposalState `json:"state"` Proposer keys.Address `json:"proposer"` ProposalType governance.ProposalType `json:"proposalType"` }
type ListRewardsReply ¶ added in v0.14.3
type ListRewardsRequest ¶ added in v0.14.4
type ListRewardsRequest struct{}
type ListTxTypesReply ¶ added in v0.14.0
type ListTxTypesReply struct {
TxTypes []action.TxTypeDescribe `json:"txTypes"`
}
type ListTxTypesRequest ¶ added in v0.14.0
type ListTxTypesRequest struct{}
type ListValidatorsReply ¶ added in v0.10.8
type ListValidatorsRequest ¶ added in v0.10.8
type ListValidatorsRequest struct{}
type ListWitnessesReply ¶ added in v0.14.2
type ListWitnessesRequest ¶ added in v0.14.2
type MaxTrackerBalanceReply ¶ added in v0.14.0
type MaxTrackerBalanceReply struct {
MaxBalance int64 `json:"max_balance"`
}
type NewAccountReply ¶ added in v0.10.8
type NewAccountRequest ¶ added in v0.10.8
type NewAccountRequest struct {
Name string `json:"name"`
}
type NodeAddressReply ¶ added in v0.10.8
type NodeAddressRequest ¶ added in v0.10.8
type NodeAddressRequest struct{}
type NodeIDReply ¶ added in v0.10.8
type NodeIDRequest ¶ added in v0.10.8
type NodeIDRequest struct {
ShouldShowIP bool `json:"shouldShowIP,omitempty"`
}
type NodeNameReply ¶ added in v0.10.8
type NodeNameReply struct {
Name string `json:"name"`
}
type NodeNameRequest ¶ added in v0.10.8
type NodeNameRequest struct{}
type ONSCreateRequest ¶ added in v0.10.8
type ONSCreateRequest struct { Owner keys.Address `json:"owner"` Account keys.Address `json:"account"` Name string `json:"name"` Uri string `json:"uri"` BuyingPrice action.Amount `json:"buyingPrice"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` }
ONS Request Types
type ONSCreateSubRequest ¶ added in v0.14.0
type ONSDeleteSubRequest ¶ added in v0.14.0
type ONSGetDomainsReply ¶ added in v0.10.8
type ONSGetDomainsRequest ¶ added in v0.10.8
type ONSGetOptionsReply ¶ added in v0.14.0
type ONSPurchaseRequest ¶ added in v0.10.8
type ONSRenewRequest ¶ added in v0.14.0
type ONSSaleRequest ¶ added in v0.10.8
type ONSSendRequest ¶ added in v0.10.8
type ONSUpdateRequest ¶ added in v0.10.8
type ProposalStat ¶ added in v0.14.3
type ProposalStat struct { Proposal governance.Proposal `json:"proposal"` Funds balance.Amount `json:"funds"` Votes governance.VoteStatus `json:"votes"` }
type RewardStat ¶ added in v0.14.3
type RewardStat struct { Validators []ValidatorRewardStats `json:"validators"` TotalRewards balance.Amount `json:"totalRewards"` Height int64 `json:"height"` }
type RewardsRequest ¶ added in v0.14.3
type RewardsRequest struct {
Validator string `json:"validator"`
}
type SendPoolTxRequest ¶ added in v0.14.3
type SendTxRequest ¶ added in v0.10.8
type ServiceClient ¶ added in v0.10.8
A type-safe client for accessing rpc services. Eventually each service will be broken out onto its own type TODO: The methods defined here should handle context.Context
func NewServiceClient ¶ added in v0.10.8
func NewServiceClient(conn string) (*ServiceClient, error)
func (*ServiceClient) AddAccount ¶ added in v0.10.8
func (c *ServiceClient) AddAccount(req AddAccountRequest) (out AddAccountReply, err error)
func (*ServiceClient) Balance ¶ added in v0.10.8
func (c *ServiceClient) Balance(addr keys.Address) (out BalanceReply, err error)
func (*ServiceClient) BalancePool ¶ added in v0.14.4
func (c *ServiceClient) BalancePool(poolname string) (out BalanceReply, err error)
func (*ServiceClient) CreateRawSend ¶ added in v0.10.8
func (c *ServiceClient) CreateRawSend(req SendTxRequest) (out *CreateTxReply, err error)
func (*ServiceClient) CreateRawSendPool ¶ added in v0.14.4
func (c *ServiceClient) CreateRawSendPool(req SendPoolTxRequest) (out *CreateTxReply, err error)
func (*ServiceClient) CurrBalance ¶ added in v0.13.0
func (c *ServiceClient) CurrBalance(addr keys.Address, currency string) (out CurrencyBalanceReply, err error)
func (*ServiceClient) DelegationStatus ¶ added in v0.14.3
func (c *ServiceClient) DelegationStatus(request DelegationStatusRequest) (out DelegationStatusReply, err error)
func (*ServiceClient) DeleteAccount ¶ added in v0.10.8
func (c *ServiceClient) DeleteAccount(req DeleteAccountRequest) (out DeleteAccountReply, err error)
func (*ServiceClient) GetTracker ¶ added in v0.13.0
func (c *ServiceClient) GetTracker(name string) (out BTCGetTrackerReply, err error)
func (*ServiceClient) ListAccountAddresses ¶ added in v0.10.8
func (c *ServiceClient) ListAccountAddresses() (out ListAccountAddressesReply, err error)
func (*ServiceClient) ListAccounts ¶ added in v0.10.8
func (c *ServiceClient) ListAccounts() (out ListAccountsReply, err error)
func (*ServiceClient) ListCurrencies ¶ added in v0.10.8
func (c *ServiceClient) ListCurrencies() (out *ListCurrenciesReply, err error)
func (*ServiceClient) ListProposal ¶ added in v0.14.3
func (c *ServiceClient) ListProposal(req ListProposalRequest) (out *ListProposalsReply, err error)
func (*ServiceClient) ListProposals ¶ added in v0.14.3
func (c *ServiceClient) ListProposals(req ListProposalsRequest) (out *ListProposalsReply, err error)
func (*ServiceClient) ListRewards ¶ added in v0.14.3
func (c *ServiceClient) ListRewards(req RewardsRequest) (out *ListRewardsReply, err error)
func (*ServiceClient) ListValidators ¶ added in v0.10.8
func (c *ServiceClient) ListValidators() (out ListValidatorsReply, err error)
func (*ServiceClient) ListWitnesses ¶ added in v0.14.2
func (c *ServiceClient) ListWitnesses(req ListWitnessesRequest) (out ListWitnessesReply, err error)
func (*ServiceClient) NodeAddress ¶ added in v0.10.8
func (c *ServiceClient) NodeAddress() (out NodeAddressReply, err error)
func (*ServiceClient) NodeID ¶ added in v0.10.8
func (c *ServiceClient) NodeID(req NodeIDRequest) (out NodeIDReply, err error)
func (*ServiceClient) NodeName ¶ added in v0.10.8
func (c *ServiceClient) NodeName() (out NodeNameReply, err error)
func (*ServiceClient) ONS_CreateRawBuy ¶ added in v0.10.8
func (c *ServiceClient) ONS_CreateRawBuy(req ONSPurchaseRequest) (out CreateTxReply, err error)
func (*ServiceClient) ONS_CreateRawCreate ¶ added in v0.10.8
func (c *ServiceClient) ONS_CreateRawCreate(req ONSCreateRequest) (out CreateTxReply, err error)
ONS
func (*ServiceClient) ONS_CreateRawSale ¶ added in v0.10.8
func (c *ServiceClient) ONS_CreateRawSale(req ONSSaleRequest) (out CreateTxReply, err error)
func (*ServiceClient) ONS_CreateRawSend ¶ added in v0.10.8
func (c *ServiceClient) ONS_CreateRawSend(req ONSSendRequest) (out CreateTxReply, err error)
func (*ServiceClient) ONS_CreateRawUpdate ¶ added in v0.10.8
func (c *ServiceClient) ONS_CreateRawUpdate(req ONSUpdateRequest) (out CreateTxReply, err error)
func (*ServiceClient) SendTx ¶ added in v0.10.8
func (c *ServiceClient) SendTx(req SendTxRequest) (out CreateTxReply, err error)
func (*ServiceClient) Stake ¶ added in v0.14.3
func (c *ServiceClient) Stake(req StakeRequest) (out StakeReply, err error)
func (*ServiceClient) TxAsync ¶ added in v0.10.8
func (c *ServiceClient) TxAsync(req BroadcastRequest) (out BroadcastReply, err error)
Broadcast
func (*ServiceClient) TxCommit ¶ added in v0.10.8
func (c *ServiceClient) TxCommit(req BroadcastRequest) (out BroadcastReply, err error)
func (*ServiceClient) TxSync ¶ added in v0.10.8
func (c *ServiceClient) TxSync(req BroadcastRequest) (out BroadcastReply, err error)
func (*ServiceClient) Unstake ¶ added in v0.14.3
func (c *ServiceClient) Unstake(req UnstakeRequest) (out UnstakeReply, err error)
func (*ServiceClient) ValidatorStatus ¶ added in v0.14.3
func (c *ServiceClient) ValidatorStatus(request ValidatorStatusRequest) (out ValidatorStatusReply, err error)
func (*ServiceClient) VoteProposal ¶ added in v0.14.3
func (c *ServiceClient) VoteProposal(req VoteProposalRequest) (out *VoteProposalReply, err error)
Governance
func (*ServiceClient) Withdraw ¶ added in v0.14.3
func (c *ServiceClient) Withdraw(req WithdrawRequest) (out WithdrawReply, err error)
func (*ServiceClient) WithdrawRewards ¶ added in v0.14.3
func (c *ServiceClient) WithdrawRewards(req WithdrawRewardsRequest) (out WithdrawRewardsReply, err error)
type SignRawTxRequest ¶ added in v0.10.8
type SignRawTxResponse ¶ added in v0.10.8
type StakeReply ¶ added in v0.14.3
type StakeReply struct {
RawTx []byte `json:"rawTx"`
}
type StakeRequest ¶ added in v0.14.3
type TxResponse ¶ added in v0.14.0
type UnstakeReply ¶ added in v0.14.3
type UnstakeReply struct {
RawTx []byte `json:"rawTx"`
}
type UnstakeRequest ¶ added in v0.14.3
type ValidatorRewardStats ¶ added in v0.14.3
type ValidatorStatusReply ¶ added in v0.14.3
type ValidatorStatusReply struct { Height int64 `json:"height"` Power int64 `json:"power"` Staking string `json:"staking"` TotalDelegationAmount string `json:"totalDelegationAmount"` SelfDelegationAmount string `json:"selfDelegationAmount"` DelegationAmount string `json:"delegationAmount"` Exists bool `json:"exists"` }
type ValidatorStatusRequest ¶ added in v0.14.3
type VoteProposalReply ¶ added in v0.14.3
type VoteProposalRequest ¶ added in v0.14.3
type VoteProposalRequest struct { ProposalId string `json:"proposalId"` Opinion governance.VoteOpinion `json:"opinion"` Address keys.Address `json:"address"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` }
type WithdrawFundsRequest ¶ added in v0.14.3
type WithdrawFundsRequest struct { ProposalID governance.ProposalID `json:"proposalId"` Funder keys.Address `json:"funderAddress"` WithdrawValue action.Amount `json:"withdrawValue"` Beneficiary keys.Address `json:"beneficiaryAddress"` GasPrice action.Amount `json:"gasPrice"` Gas int64 `json:"gas"` }
type WithdrawReply ¶ added in v0.14.3
type WithdrawReply struct {
RawTx []byte `json:"rawTx"`
}
type WithdrawRequest ¶ added in v0.14.3
type WithdrawRewardsReply ¶ added in v0.14.3
type WithdrawRewardsReply struct {
RawTx []byte `json:"rawTx"`
}
Click to show internal directories.
Click to hide internal directories.