evidence

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 10 Imported by: 0

README

Evidence module

Usage

(Query) Evidence
queryEvidenceMsg := types.QueryEvidenceMsg{
    Hash: "DF0C23E8634E480F84B9D5674A7CDC9816466DEC28A3358F73260F68D28D7660"
}

res, err := xplac.QueryEvidence(queryEvidenceMsg).Query()
(Query) All evidence
res, err := xplac.QueryEvidence().Query()

Documentation

Index

Constants

View Source
const (
	EvidenceModule          = "evidence"
	EvidenceQueryMsgType    = "evidence-query"
	EvidenceQueryAllMsgType = "evidence-query-all"
)

Variables

This section is empty.

Functions

func MakeQueryAllEvidenceMsg

func MakeQueryAllEvidenceMsg() (evidencetypes.QueryAllEvidenceRequest, error)

(Query) make msg - all evidences

func MakeQueryEvidenceMsg

func MakeQueryEvidenceMsg(queryEvidenceMsg types.QueryEvidenceMsg) (evidencetypes.QueryEvidenceRequest, error)

(Query) make msg - evidence

func NewCoreModule added in v0.1.2

func NewCoreModule() core.CoreModule

func QueryEvidence

func QueryEvidence(i core.QueryClient) (string, error)

Query client for evidence module.

Types

type EvidenceExternal added in v0.1.2

type EvidenceExternal struct {
	Xplac provider.XplaClient
}

func NewEvidenceExternal added in v0.1.2

func NewEvidenceExternal(xplac provider.XplaClient) (e EvidenceExternal)

func (EvidenceExternal) QueryEvidence added in v0.1.2

func (e EvidenceExternal) QueryEvidence(queryEvidenceMsg ...types.QueryEvidenceMsg) provider.XplaClient

Query for evidence by hash or for all (paginated) submitted evidence.

Jump to

Keyboard shortcuts

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