utils

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryRequestByTxQuery

func QueryRequestByTxQuery(
	cliCtx client.Context, queryRoute string, requestID tmbytes.HexBytes,
) (
	request types.Request, err error,
)

QueryRequestByTxQuery will query for a single request via a direct txs tags query.

func QueryRequestContext

func QueryRequestContext(
	cliCtx client.Context, queryRoute string, params types.QueryRequestContextRequest,
) (
	requestContext types.RequestContext, err error,
)

QueryRequestContext queries a single request context

func QueryRequestContextByTxQuery

func QueryRequestContextByTxQuery(
	cliCtx client.Context,
	queryRoute string,
	params types.QueryRequestContextRequest,
) (
	requestContext types.RequestContext, err error)

QueryRequestContextByTxQuery will query for a single request context via a direct txs tags query.

func QueryRequestsByBinding

func QueryRequestsByBinding(
	cliCtx client.Context, queryRoute string, serviceName string, provider sdk.AccAddress,
) (
	[]types.Request, int64, error,
)

QueryRequestsByBinding queries active requests by the service binding

func QueryRequestsByReqCtx

func QueryRequestsByReqCtx(
	cliCtx client.Context, queryRoute, reqCtxIDStr, batchCounterStr string,
) (
	[]types.Request, int64, error,
)

QueryRequestsByReqCtx queries active requests by the request context ID

func QueryResponseByTxQuery

func QueryResponseByTxQuery(
	cliCtx client.Context, queryRoute string, requestID tmbytes.HexBytes,
) (
	response types.Response, err error,
)

QueryResponseByTxQuery will query for a single request via a direct txs tags query.

Types

type SchemaType

type SchemaType string

SchemaType defines the schema type

func (SchemaType) MarshalJSON

func (schema SchemaType) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation

func (SchemaType) MarshalYAML

func (schema SchemaType) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation

func (SchemaType) String

func (schema SchemaType) String() string

String implements fmt.Stringer

func (*SchemaType) UnmarshalJSON

func (schema *SchemaType) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a SchemaType.

Jump to

Keyboard shortcuts

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