mcms

package
v0.0.0-...-b096497 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractType = deployment.ContractType("CantonMCMS")
View Source
var Deploy = contract.NewDeploy(contract.DeployParams[mcms.MCMS]{
	Name:           "canton/mcms/deploy",
	TypeAndVersion: deployment.NewTypeAndVersion(ContractType, *Version),
	Description:    "Deploys the MCMS contract on Canton",
	Validate: func(template mcms.MCMS) error {
		if template.Owner == "" {
			return errors.New("owner cannot be empty")
		}
		if template.ChainId <= 0 {
			return errors.New("chain ID must be greater than zero")
		}

		return nil
	},
	PackageName: string(contracts.MCMS),
	Prefix:      "mcms",
})
View Source
var SetConfig = contract.NewExercise(contract.ExerciseParams[mcms.SetConfig]{
	Name:         "canton/mcms/set_config",
	Version:      Version,
	Description:  "Sets configuration for MCMS",
	ContractType: ContractType,
	Validate: func(input mcms.SetConfig) error {

		return nil
	},
	Template:     mcms.MCMS{},
	Method:       mcms.MCMS{}.SetConfig,
	EncodeMethod: mcmsEncoder.SetConfig,
})
View Source
var SetRoot = contract.NewExercise(contract.ExerciseParams[mcms.SetRoot]{
	Name:         "canton/mcms/set_root",
	Version:      Version,
	Description:  "Sets a merkle root for MCMS",
	ContractType: ContractType,
	Validate: func(input mcms.SetRoot) error {

		return nil
	},
	Template:     mcms.MCMS{},
	Method:       mcms.MCMS{}.SetRoot,
	EncodeMethod: mcmsEncoder.SetRoot,
})
View Source
var Version = semver.MustParse("0.1.0")

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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