v04

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName nolint
	ModuleName = "msgauth"
)

Variables

This section is empty.

Functions

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec nolint

Types

type Authorization

type Authorization interface{}

Authorization represents the interface of various Authorization instances

type AuthorizationEntry

type AuthorizationEntry struct {
	Granter       sdk.AccAddress `json:"granter" yaml:"granter"`
	Grantee       sdk.AccAddress `json:"grantee" yaml:"grantee"`
	Authorization Authorization  `json:"authorization" yaml:"authorization"`
	Expiration    time.Time      `json:"expiration" yaml:"expiration"`
}

AuthorizationEntry hold each authorization information

type GenericAuthorization

type GenericAuthorization struct {
	// GrantMsgType is the type of Msg this capability grant allows
	GrantMsgType string `json:"grant_msg_type"`
}

GenericAuthorization grants the permission to execute any transaction of the provided msg type without restrictions

type GenesisState

type GenesisState struct {
	AuthorizationEntries []AuthorizationEntry `json:"authorization_entries" yaml:"authorization_entries"`
}

GenesisState is the struct representation of the export genesis

type SendAuthorization

type SendAuthorization struct {
	// SpendLimit specifies the maximum amount of tokens that can be spent
	// by this authorization and will be updated as tokens are spent. If it is
	// empty, there is no spend limit and any amount of coins can be spent.
	SpendLimit sdk.Coins `json:"spend_limit"`
}

SendAuthorization grants the permission to execute send transaction

Jump to

Keyboard shortcuts

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