Documentation ¶
Index ¶
- func StartReporterDaemonTaskLoop(client *Client, ctx context.Context, flags flags.DaemonFlags, ...)
- type Client
- func (c *Client) CurrentQuery(ctx context.Context) ([]byte, *oracletypes.QueryMeta, error)
- func (c *Client) CurrentQueryByQueryId(ctx context.Context, queryId string) (*oracletypes.QueryMeta, error)
- func (c *Client) GenerateAndBroadcastSpotPriceReport(ctx context.Context, qd []byte, querymeta *oracletypes.QueryMeta) error
- func (c Client) LatestBlockHeight(ctx context.Context) (int64, error)
- func (c *Client) MonitorCyclelistQuery(ctx context.Context, wg *sync.WaitGroup)
- func (c *Client) MonitorForTippedQueries(ctx context.Context, wg *sync.WaitGroup)
- func (c *Client) MonitorTokenBridgeReports(ctx context.Context, wg *sync.WaitGroup)
- func (c *Client) SetGasPrice(ctx context.Context) error
- func (c *Client) Start(ctx context.Context, flags flags.DaemonFlags, appFlags appflags.Flags, ...) error
- func (c Client) Status(ctx context.Context) (*cmttypes.ResultStatus, error)
- func (c Client) WaitForBlockHeight(ctx context.Context, h int64) error
- func (c Client) WaitForNBlocks(ctx context.Context, n int64) error
- func (c Client) WaitForNextBlock(ctx context.Context) error
- func (c *Client) WaitForTx(ctx context.Context, hash string) (*cmttypes.ResultTx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { // reporter account name AccountName string // Query clients OracleQueryClient oracletypes.QueryClient StakingClient stakingtypes.QueryClient ReporterClient reportertypes.QueryClient GlobalfeeClient globalfeetypes.QueryClient MarketParams []pricefeedtypes.MarketParam MarketToExchange *pricefeedservertypes.MarketToExchangePrices TokenDepositsCache *tokenbridgetypes.DepositReports StakingKeeper stakingkeeper.Keeper // contains filtered or unexported fields }
func (*Client) CurrentQuery ¶
func (*Client) CurrentQueryByQueryId ¶
func (*Client) GenerateAndBroadcastSpotPriceReport ¶
func (Client) LatestBlockHeight ¶
func (*Client) MonitorCyclelistQuery ¶
func (*Client) MonitorForTippedQueries ¶
func (*Client) MonitorTokenBridgeReports ¶
func (*Client) Start ¶
func (c *Client) Start( ctx context.Context, flags flags.DaemonFlags, appFlags appflags.Flags, grpcClient daemontypes.GrpcClient, marketParams []pricefeedtypes.MarketParam, marketToExchange *pricefeedservertypes.MarketToExchangePrices, tokenDepositsCache *tokenbridgetypes.DepositReports, stakingKeeper stakingkeeper.Keeper, chainId string, ) error
func (Client) WaitForBlockHeight ¶
Click to show internal directories.
Click to hide internal directories.