solanatest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 10 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

Overview

Package solanatest provides test utilities for Solana MCMS integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertMCMSSetConfigProposal

func AssertMCMSSetConfigProposal(
	t *testing.T,
	selector uint64,
	mcmsState *solstate.MCMSWithTimelockState,
	proposal mcmslib.TimelockProposal,
	wantAction mcmstypes.TimelockAction,
	wantDelay mcmstypes.Duration,
	wantDescription string,
)

AssertMCMSSetConfigProposal verifies structure of a Solana set-config MCMS timelock proposal without executing it on-chain. Batch ops may appear as one merged operation per chain (new changeset output builder) or one operation per MCM role (legacy proposeutils path).

func NewDataStoreWithMCMSPrograms

func NewDataStoreWithMCMSPrograms(t *testing.T, selector uint64) datastore.DataStore

NewDataStoreWithMCMSPrograms seeds a datastore with canonical MCMS program IDs. The test validator preloads the same programs via WithSolanaContainer; program deploy is skipped because artifacts lack -keypair.json files required by solana program deploy for fixed program IDs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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