auth

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Address = common.HexToAddress(hexAddress)
	ABI     = abi.ABI{}
)

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) (acc sdk.AccountI)
	HasAccount(ctx context.Context, addr sdk.AccAddress) bool
	GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI
}

type MethodAuth

type MethodAuth string
const (
	Account              MethodAuth = "account"
	ModuleAccountByName  MethodAuth = "moduleAccountByName"
	Bech32Prefix         MethodAuth = "bech32Prefix"
	AddressBytesToString MethodAuth = "addressBytesToString"
	AddressStringToBytes MethodAuth = "addressStringToBytes"
)

type PrecompiledAuth

type PrecompiledAuth struct {
	cmn.Precompile
	// contains filtered or unexported fields
}

func NewPrecompiledAuth

func NewPrecompiledAuth(ak AccountKeeper) PrecompiledAuth

func (PrecompiledAuth) IsTransaction

func (p PrecompiledAuth) IsTransaction(method *abi.Method) bool

func (PrecompiledAuth) Logger

func (p PrecompiledAuth) Logger(ctx sdk.Context) log.Logger

func (PrecompiledAuth) RequiredGas

func (p PrecompiledAuth) RequiredGas(input []byte) uint64

func (PrecompiledAuth) Run

func (p PrecompiledAuth) Run(evm *vm.EVM, contract *vm.Contract, readOnly bool) (bz []byte, err error)

Jump to

Keyboard shortcuts

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