precompiles

package
v1.21.42 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.

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

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