types

package
v0.4.9-rc9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ModuleName string name of module
	ModuleName = "aspect"

	// StoreKey key for aspect storage data
	StoreKey = ModuleName
)
View Source
const (
	// AspectPropertyLimit is the maximum number of properties that can be set on an aspect
	AspectPropertyLimit = math.MaxUint8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStoreContext

type AccountStoreContext struct {
	StoreContext
	Account common.Address
}

func (*AccountStoreContext) Clone

type AspectMeta

type AspectMeta struct {
	PayMaster common.Address
	Proof     []byte
}

AspectMeta is the data model for holding the metadata of an aspect

type AspectStoreContext

type AspectStoreContext struct {
	StoreContext
	AspectID common.Address
}

func (*AspectStoreContext) Clone

type Binding

type Binding struct {
	Account   common.Address
	Version   uint64
	Priority  int8
	JoinPoint uint16
}

Binding is the data model for holding the binding of an aspect to an account

type BindingFilter

type BindingFilter struct {
	// filter bindings with given join point
	JoinPoint *types.PointCut
	// only return bindings of verifier aspects
	VerifierOnly bool
	// only return bindings of tx level aspects
	TxLevelOnly bool
}

BindingFilter is the data model for holding the filter of querying aspect bindings

func NewDefaultFilter

func NewDefaultFilter(isCA bool) BindingFilter

func NewJoinPointFilter

func NewJoinPointFilter(cut types.PointCut) BindingFilter

type Property

type Property struct {
	Key   string `json:"Key"`
	Value []byte `json:"Value"`
}

Property is the data model for holding the properties of an aspect

type StoreContext

type StoreContext interface {
	CosmosContext() sdk.Context
	AspectStoreKey() storetypes.StoreKey
	EVMStoreKey() storetypes.StoreKey
	Gas() uint64
	ConsumeGas(gas uint64) error
	UpdateGas(gas uint64)
	Logger() log.Logger
	ChargeGas() bool
	// contains filtered or unexported methods
}

func NewGasFreeStoreContext

func NewGasFreeStoreContext(ctx sdk.Context, aspectStoreKey, evmStoreKey storetypes.StoreKey) StoreContext

func NewStoreContext

func NewStoreContext(ctx sdk.Context, aspectStoreKey, evmStoreKey storetypes.StoreKey, gas uint64) StoreContext

type VersionMeta

type VersionMeta struct {
	JoinPoint uint64
	CodeHash  common.Hash
}

VersionMeta is the data model for holding the metadata of a specific version of aspect

Jump to

Keyboard shortcuts

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