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.
Click to show internal directories.
Click to hide internal directories.