precompiles

package
v1.22.8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package precompiles provides utilities for interacting with EVM precompiles.

Package precompiles provides utilities for managing EVM precompile configurations.

Index

Constants

This section is empty.

Variables

View Source
var (
	NativeMinterPrecompile = common.BytesToAddress(nativeminter.ContractAddress.Bytes())
	WarpPrecompile         = common.BytesToAddress(warp.ContractAddress.Bytes())
)

Functions

func ReadAllowList

func ReadAllowList(
	rpcURL string,
	precompile crypto.Address,
	toQuery crypto.Address,
) (*big.Int, error)

func SetAdmin

func SetAdmin(
	rpcURL string,
	precompile crypto.Address,
	privateKey string,
	toSet crypto.Address,
) error

SetAdmin sets an address as admin in a precompile's allow list.

func SetEnabled

func SetEnabled(
	rpcURL string,
	precompile crypto.Address,
	privateKey string,
	toSet crypto.Address,
) error

func SetManager

func SetManager(
	rpcURL string,
	precompile crypto.Address,
	privateKey string,
	toSet crypto.Address,
) error

func SetNone

func SetNone(
	rpcURL string,
	precompile crypto.Address,
	privateKey string,
	toSet crypto.Address,
) error

func WarpPrecompileGetBlockchainID

func WarpPrecompileGetBlockchainID(
	rpcURL string,
) (ids.ID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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