soltestutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 14 Imported by: 0

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