utils

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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