feegrant

package
v0.0.0-...-0666018 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowance

type Allowance struct {
	SpendLimit []types.Coin `bson:"spend_limit"`
	Expiration int64        `bson:"expiration"`
}

type AllowedMsgAllowance

type AllowedMsgAllowance struct {
	Allowance       *Allowance `json:"allowance"`
	AllowedMessages []string   `json:"'allowed_messages'"`
}

type DocTxMsgGrantAllowance

type DocTxMsgGrantAllowance struct {
	Granter             string               `bson:"granter"`
	Grantee             string               `bson:"grantee"`
	Allowance           *Allowance           `bson:"allowance"`
	PeriodicAllowance   *PeriodicAllowance   `bson:"periodic_allowance"`
	AllowedMsgAllowance *AllowedMsgAllowance `bson:"allowed_msg_allowance"`
}

func (*DocTxMsgGrantAllowance) BuildMsg

func (m *DocTxMsgGrantAllowance) BuildMsg(v interface{})

func (*DocTxMsgGrantAllowance) GetType

func (m *DocTxMsgGrantAllowance) GetType() string

func (*DocTxMsgGrantAllowance) HandleTxMsg

func (m *DocTxMsgGrantAllowance) HandleTxMsg(v sdk.Msg) MsgDocInfo

type DocTxMsgRevokeAllowance

type DocTxMsgRevokeAllowance struct {
	Granter string `bson:"granter"`
	Grantee string `bson:"grantee"`
}

func (*DocTxMsgRevokeAllowance) BuildMsg

func (m *DocTxMsgRevokeAllowance) BuildMsg(v interface{})

func (*DocTxMsgRevokeAllowance) GetType

func (m *DocTxMsgRevokeAllowance) GetType() string

func (*DocTxMsgRevokeAllowance) HandleTxMsg

func (m *DocTxMsgRevokeAllowance) HandleTxMsg(v sdk.Msg) MsgDocInfo

type FeegrantClient

type FeegrantClient struct {
}

func NewClient

func NewClient() FeegrantClient

func (FeegrantClient) HandleTxMsg

func (feegrant FeegrantClient) HandleTxMsg(v sdk.Msg) (MsgDocInfo, bool)

type PeriodicAllowance

type PeriodicAllowance struct {
	Basic            Allowance    `bson:"basic"`
	Period           int64        `bson:"period"`
	PeriodSpendLimit []types.Coin `bson:"period_spend_limit"`
	PeriodCanSpend   []types.Coin `bson:"period_can_spend"`
	PeriodReset      int64        `bson:"period_reset"`
}

Jump to

Keyboard shortcuts

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