Documentation
¶
Index ¶
- func FundSignerPDAs(t *testing.T, chain cldfsolana.Chain, ...)
- func GetMCMSStateFromAddressBook(t *testing.T, ab cldf.AddressBook, chain cldfsolana.Chain) *solstate.MCMSWithTimelockState
- func LoadMCMSPrograms(t *testing.T, dir string) (string, map[string]string)
- func PreloadAddressBookWithMCMSPrograms(t *testing.T, selector uint64) *cldf.AddressBookMap
- func PreloadMCMS(t *testing.T, selector uint64) (string, map[string]string, *cldf.AddressBookMap)
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 ¶
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 ¶
PreloadMCMS provides a convenience function to preload the MCMS program artifacts and address book for a given selector.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.