ops

package
v0.0.0-...-c2670e3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 30 Imported by: 2 modules, 2 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

View Source
const (
	ChainSelEVMTest90000001     = 909606746561742123
	DestGasOverhead             = 300_000 // Commit and Exec costs
	CalldataGasPerByteBase      = 16
	CalldataGasPerByteHigh      = 40
	CalldataGasPerByteThreshold = 3000
)

Variables

View Source
var (
	EvmFeeQuoterDestChainConfig = config.FeeQuoterDestChainConfig{
		IsEnabled:                         true,
		MaxNumberOfTokensPerMsg:           10,
		MaxDataBytes:                      30_000,
		MaxPerMsgGasLimit:                 3_000_000,
		DestGasOverhead:                   DestGasOverhead,
		DestGasPerPayloadByteBase:         CalldataGasPerByteBase,
		DestGasPerPayloadByteHigh:         CalldataGasPerByteHigh,
		DestGasPerPayloadByteThreshold:    CalldataGasPerByteThreshold,
		DestDataAvailabilityOverheadGas:   100,
		DestGasPerDataAvailabilityByte:    16,
		DestDataAvailabilityMultiplierBps: 1,
		ChainFamilySelector:               config.EVMFamilySelector,
		EnforceOutOfOrder:                 false,
		DefaultTokenFeeUSDCents:           25,
		DefaultTokenDestGasOverhead:       90_000,
		DefaultTxGasLimit:                 200_000,
		GasMultiplierWeiPerEth:            11e17,
		GasPriceStalenessThreshold:        0,
		NetworkFeeUSDCents:                10,
	}

	// Default fee quoter config for TON CCIP testing
	TonFeeQuoterDestChainConfig = config.FeeQuoterDestChainConfig{
		IsEnabled:                       true,
		MaxNumberOfTokensPerMsg:         0,
		MaxDataBytes:                    100,
		MaxPerMsgGasLimit:               100,
		DestGasOverhead:                 0,
		DestGasPerPayloadByteBase:       0,
		DestGasPerPayloadByteHigh:       0,
		DestGasPerPayloadByteThreshold:  0,
		DestDataAvailabilityOverheadGas: 0,
		DestGasPerDataAvailabilityByte:  0,
		ChainFamilySelector:             config.TVMFamilySelector,
		EnforceOutOfOrder:               false,
		DefaultTokenFeeUSDCents:         0,

		DefaultTokenDestGasOverhead: config.DefaultTokenDestGasOverheadTON,

		DefaultTxGasLimit:          config.DefaultOffRampMinGasLimitNanoTON,
		GasMultiplierWeiPerEth:     0,
		GasPriceStalenessThreshold: 0,
		NetworkFeeUSDCents:         0,
	}
)

Functions

func AddLaneTONConfig

func AddLaneTONConfig(env *cldf.Environment, onRamp []byte, from, to uint64, fromFamily, toFamily string, gasPrices map[uint64]*big.Int) config.LaneConfig

TODO[TOOLING-TT-DEPLOYMENT]: [NONEVM-6573] add TON token price into func parameters

func RandomUint32

func RandomUint32() (uint32, error)

func SendCCIPMessage deprecated

func SendCCIPMessage(
	e cldf.Environment,
	state state.CCIPChainState,
	sourceChain uint64,
	msg router.CCIPSend) (uint64, any, error)

Deprecated: Use testadapters instead

Types

type AddTonLanes

type AddTonLanes struct{}

func (AddTonLanes) Apply

func (AddTonLanes) VerifyPreconditions

func (cs AddTonLanes) VerifyPreconditions(env cldf.Environment, cfg config.UpdateTonLanesConfig) error

type DeployCCIPContracts

type DeployCCIPContracts struct{}

DeployCCIPContracts deploys Ton chain packages and modules

func (DeployCCIPContracts) Apply

func (DeployCCIPContracts) VerifyPreconditions

func (cs DeployCCIPContracts) VerifyPreconditions(_ cldf.Environment, _ DeployCCIPContractsCfg) error

type DeployCCIPContractsCfg

type DeployCCIPContractsCfg struct {
	TonChainSelector uint64
	ContractsVersion string
	Params           config.ChainContractParams
}

func DeployChainContractsConfig

func DeployChainContractsConfig(t *testing.T, env cldf.Environment, chainSelector uint64, contractVersion string, idForContracts uint32) DeployCCIPContractsCfg

func (DeployCCIPContractsCfg) Validate

func (c DeployCCIPContractsCfg) Validate() error

type SetOCR3Config

type SetOCR3Config struct{}

SetOCR3Config updates OCR3 Offramp configurations

func (SetOCR3Config) Apply

func (SetOCR3Config) VerifyPreconditions

func (cs SetOCR3Config) VerifyPreconditions(env cldf.Environment, cfg SetOCR3OffRampConfig) error

type SetOCR3OffRampConfig

type SetOCR3OffRampConfig struct {
	RemoteChainSels []uint64 // TODO[TOOLING]: [NONEVM-6092] (ops): unused currently
	Configs         map[operation.PluginType]operation.OCR3ConfigArgs

	// MCMS input configuration required to create proposals
	MCMS utilsmcms.Input
}

Directories

Path Synopsis
1_6_0

Jump to

Keyboard shortcuts

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