chains

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateStartingBlock

func CalculateStartingBlock(startBlock *big.Int, blockConfirmations *big.Int) (*big.Int, error)

CalculateStartingBlock returns first block number (smaller or equal) that is dividable with block confirmations

func ScaleTokenAmount added in v1.2.0

func ScaleTokenAmount(amount *big.Int, srcDecimals, dstDecimals int64) *big.Int

ScaleTokenAmount scales amount from srcDecimals to dstDecimals. Formula: amount / 10^(srcDecimals-dstDecimals) When src > dst (e.g. BSC USDC 18 -> Base USDC 6): divides by 10^12. When src < dst: exponent is negative, so effectively multiplies.

Types

This section is empty.

Directories

Path Synopsis
evm
calls/events/mock
Package mock_events is a generated GoMock package.
Package mock_events is a generated GoMock package.
message/mock
Package mock_message is a generated GoMock package.
Package mock_message is a generated GoMock package.
message/mock
Package mock_message is a generated GoMock package.
Package mock_message is a generated GoMock package.

Jump to

Keyboard shortcuts

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