auth

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	abi.ABI
	// contains filtered or unexported fields
}

func NewPrecompiledAuth

func NewPrecompiledAuth(ak AccountKeeper) PrecompiledAuth

func (PrecompiledAuth) Execute added in v1.9.0

func (p PrecompiledAuth) Execute(ctx sdk.Context, stateDB vm.StateDB, contract *vm.Contract, readOnly bool) ([]byte, error)

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