mcms

package
v0.0.0-...-8f18bc0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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[mcmsCore.MCMS]{
	Name:           "canton/mcms/deploy",
	TypeAndVersion: deployment.NewTypeAndVersion(ContractType, *Version),
	Description:    "Deploys the MCMS contract on Canton",
	Validate: func(template mcmsCore.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.MCMSCore),
	Prefix:      "mcms",
})
View Source
var SetConfig = contract.NewExercise(contract.ExerciseParams[mcmsCore.SetConfig]{
	Name:         "canton/mcms/set_config",
	Version:      Version,
	Description:  "Sets configuration for MCMS",
	ContractType: ContractType,
	Validate: func(input mcmsCore.SetConfig) error {

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

		return nil
	},
	Template:     mcmsCore.MCMS{},
	Method:       mcmsCore.MCMS{}.SetRoot,
	EncodeMethod: mcmsEncoder.SetRoot,
})
View Source
var Version = semver.MustParse("2.0.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