soltestutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 14 Imported by: 0 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 FundSignerPDAs

func FundSignerPDAs(
	t *testing.T, chain cldfsolana.Chain, mcmsState *solstate.MCMSWithTimelockState,
)

FundSignerPDAs funds the timelock signer and MCMS signer PDAs with 1 SOL for testing

func GetMCMSStateFromAddressBook

func GetMCMSStateFromAddressBook(
	t *testing.T, ab cldf.AddressBook, chain cldfsolana.Chain,
) *solstate.MCMSWithTimelockState

GetMCMSStateFromAddressBook retrieves the state of the Solana MCMS contracts on the given chain.

func LoadMCMSPrograms

func LoadMCMSPrograms(t *testing.T, dir string) (string, map[string]string)

LoadMCMSPrograms loads the MCMS program artifacts into the given directory.

Returns the path to the temporary test directory and a map of program names to IDs.

func PreloadAddressBookWithMCMSPrograms

func PreloadAddressBookWithMCMSPrograms(t *testing.T, selector uint64) *cldf.AddressBookMap

PreloadAddressBookWithMCMSPrograms creates and returns an address book containing preloaded MCMS Solana program addresses for the specified selector.

func PreloadMCMS

func PreloadMCMS(t *testing.T, selector uint64) (string, map[string]string, *cldf.AddressBookMap)

PreloadMCMS provides a convenience function to preload the MCMS program artifacts and address book for a given selector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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