exported

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

nolint

Index

Constants

This section is empty.

Variables

View Source
var RegisterMsgAuthTypeCodec = types.RegisterMsgAuthTypeCodec

Functions

This section is empty.

Types

type Keeper

type Keeper interface {
	//DispatchActions executes the provided messages via authorization grants from the message signer to the grantee
	DispatchActions(ctx sdk.Context, grantee sdk.AccAddress, msgs []sdk.Msg) sdk.Result

	// Grant grants the provided authorization to the grantee on the granter's account with the provided expiration time
	// If there is an existing authorization grant for the same sdk.Msg type, this grant overwrites that.
	Grant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, authorization types.Authorization, expiration time.Time)

	// Revoke removes any authorization for the provided message type granted to the grantee by the granter.
	Revoke(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType sdk.Msg)

	// GetAuthorizationGrant Returns any Authorization (or nil), with the expiration time,
	// granted to the grantee by the granter for the provided msg type.
	GetAuthorizationGrant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType sdk.Msg) (grant types.AuthorizationGrant, found bool)
}

type MsgExecAuthorized

type MsgExecAuthorized = types.MsgExecAuthorized

type MsgGrantAuthorization

type MsgGrantAuthorization = types.MsgGrantAuthorization

type MsgRevokeAuthorization

type MsgRevokeAuthorization = types.MsgRevokeAuthorization

Jump to

Keyboard shortcuts

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