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

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