ap5

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: GPL-3.0, LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

AP5 defines constants used after the Apricot Phase 5 upgrade.

Index

Constants

View Source
const (
	// BlockGasCostStep is the rate at which the block gas cost changes per
	// second.
	//
	// This value modifies the previously used `ap4.BlockGasCostStep`.
	BlockGasCostStep = 200_000

	// TargetGas is the target amount of gas to be included in the window. The
	// target amount of gas per second equals [TargetGas] / `ap3.WindowLen`.
	//
	// This value modifies the previously used `ap3.TargetGas`.
	TargetGas = 15_000_000

	// BaseFeeChangeDenominator is the denominator used to smoothen base fee
	// changes.
	//
	// This value modifies the previously used `ap3.BaseFeeChangeDenominator`.
	BaseFeeChangeDenominator = 36

	// AtomicGasLimit specifies the maximum amount of gas that can be consumed
	// by the atomic transactions included in a block.
	//
	// Prior to Apricot Phase 5, a block included a single atomic transaction.
	// As of Apricot Phase 5, each block can include a set of atomic
	// transactions where the cumulative atomic gas consumed is capped by the
	// atomic gas limit, similar to the block gas limit.
	AtomicGasLimit = 100_000

	// AtomicTxIntrinsicGas is the base amount of gas to charge per atomic
	// transaction. There are additional gas costs that can be charged per
	// transaction.
	AtomicTxIntrinsicGas = 10_000
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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