state

package
v0.0.0-...-c0b9fb2 Latest Latest
Warning

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

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

This section is empty.

Variables

This section is empty.

Functions

func FindAptosAddress

func FindAptosAddress(tv cldf.TypeAndVersion, addresses map[string]cldf.TypeAndVersion) aptos.AccountAddress

func GetOfframpDynamicConfig

func GetOfframpDynamicConfig(c cldf_aptos.Chain, ccipAddress aptos.AccountAddress) (module_offramp.DynamicConfig, error)

func LoadOnchainState

func LoadOnchainState(env cldf.Environment) (map[uint64]CCIPChainState, error)

LoadOnchainState loads Aptos chain state from the environment datastore.

Types

type CCIPChainState

type CCIPChainState struct {
	MCMSAddress      aptos.AccountAddress
	CurseMCMSAddress aptos.AccountAddress
	CCIPAddress      aptos.AccountAddress

	LinkTokenAddress aptos.AccountAddress
	ManagedTokens    map[shared.TokenSymbol]aptos.AccountAddress

	AptosManagedTokenPools map[aptos.AccountAddress]aptos.AccountAddress // TokenAddress -> TokenPoolAddress
	RegulatedTokenPools    map[aptos.AccountAddress]aptos.AccountAddress // TokenAddress -> TokenPoolAddress
	BurnMintTokenPools     map[aptos.AccountAddress]aptos.AccountAddress // TokenAddress -> TokenPoolAddress
	LockReleaseTokenPools  map[aptos.AccountAddress]aptos.AccountAddress // TokenAddress -> TokenPoolAddress

	// Test contracts
	TestRouterAddress aptos.AccountAddress
	ReceiverAddress   aptos.AccountAddress
}

func LoadCCIPOnChainStateUsingDataStore

func LoadCCIPOnChainStateUsingDataStore(dataStore ds.DataStore, chainSelector uint64, client aptos.AptosRpcClient) (CCIPChainState, error)

LoadCCIPOnChainStateUsingDataStore loads one Aptos chain's state from datastore refs.

func (CCIPChainState) GenerateView

func (s CCIPChainState) GenerateView(e *cldf.Environment, selector uint64, chainName string) (aptosview.AptosChainView, error)

Jump to

Keyboard shortcuts

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