query

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper keeper.Keeper) sdk.Querier

NewQuerier creates and returns a new provider querier instance

Types

type Client

type Client interface {
	Providers() (Providers, error)
	Provider(sdk.AccAddress) (*Provider, error)
}

Client interface

func NewClient

func NewClient(ctx context.CLIContext, key string) Client

NewClient creates a client instance with provided context and key

type Provider

type Provider types.Provider

Provider type

func (*Provider) Address

func (p *Provider) Address() sdk.AccAddress

Address implements provider and returns owner of provider

func (Provider) String

func (p Provider) String() string

type Providers

type Providers []Provider

Providers - Slice of Provider Struct

func (Providers) String

func (obj Providers) String() string

type RawClient

type RawClient interface {
	Providers() ([]byte, error)
	Provider(sdk.AccAddress) ([]byte, error)
}

RawClient interface

func NewRawClient

func NewRawClient(ctx context.CLIContext, key string) RawClient

NewRawClient creates a client instance with provided context and key

Jump to

Keyboard shortcuts

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