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