wasm_interop

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomQuerier

func CustomQuerier(wardenKeeper wardenkeeper.Keeper) func(ctx sdk.Context, rawRequest json.RawMessage) ([]byte, error)

func EncodeCustomMsg

func EncodeCustomMsg(sender sdk.AccAddress, rawMsg json.RawMessage) ([]sdk.Msg, error)

Types

type NewKeyRequest

type NewKeyRequest struct {
	ApproveTemplateId uint64        `json:"approve_template_id"`
	RejectTemplateId  uint64        `json:"reject_template_id"`
	KeyType           types.KeyType `json:"key_type"`
	KeychainID        uint64        `json:"keychain_id"`
	SpaceID           uint64        `json:"space_id"`
	TimeoutHeight     uint64        `json:"timeout_height"`
}

type NewSignRequest added in v0.4.1

type NewSignRequest struct {
	KeyId         uint64   `json:"key_id"`
	Input         []byte   `json:"input"`
	Analyzers     []string `json:"analyzers"`
	EncryptionKey []byte   `json:"encryption_key"`
	TimeoutHeight uint64   `json:"timeout_height"`
}

type WardenMsg

type WardenMsg struct {
	NewKeyRequest  *NewKeyRequest  `json:"new_key_request,omitempty"`
	NewSignRequest *NewSignRequest `json:"new_sign_request,omitempty"`
}

type WardenProtocolMsg

type WardenProtocolMsg struct {
	Warden WardenMsg `json:"warden,omitempty"`
}

type WardenProtocolQuery

type WardenProtocolQuery struct {
	Warden WardenQuery `json:"warden,omitempty"`
}

type WardenQuery

type WardenQuery struct {
	AllKeys         *types.QueryAllKeysRequest         `json:"all_keys,omitempty"`
	KeysBySpaceId   *types.QueryKeysBySpaceIdRequest   `json:"keys_by_space_id,omitempty"`
	KeyById         *types.QueryKeyByIdRequest         `json:"key_by_id,omitempty"`
	SignRequests    *types.QuerySignRequestsRequest    `json:"sign_requests,omitempty"`
	SignRequestById *types.QuerySignRequestByIdRequest `json:"sign_request_by_id,omitempty"`
}

Jump to

Keyboard shortcuts

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