mcmsuserops

package
v0.0.0-...-ce40226 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeployMCMSUserOp = cld_ops.NewOperation(
	sui_ops.NewSuiOperationName("mcms_user", "package", "deploy"),
	semver.MustParse("0.1.0"),
	"Deploys the MCMS User contract",
	deployHandler,
)
View Source
var DeployMCMSUserSequence = cld_ops.NewSequence(
	"sui-deploy-mcms-user-seq",
	semver.MustParse("0.1.0"),
	"Deploys and registers mcms entrypoint for the MCMS user contract",
	func(env cld_ops.Bundle, deps sui_ops.OpTxDeps, input DeployMCMSUserSeqInput) (sui_ops.OpTxResult[DeployMCMSUserObjects], error) {

		signerAddress, err := deps.Signer.GetAddress()
		if err != nil {
			return sui_ops.OpTxResult[DeployMCMSUserObjects]{}, fmt.Errorf("failed to get signer address: %w", err)
		}

		deployInput := DeployMCMSUserInput{
			McmsPackageID:     input.McmsPackageID,
			McmsOwnerObjectID: signerAddress,
		}

		deployReport, err := cld_ops.ExecuteOperation(env, DeployMCMSUserOp, deps, deployInput)
		if err != nil {
			return sui_ops.OpTxResult[DeployMCMSUserObjects]{}, fmt.Errorf("failed to deploy MCMS user contract: %w", err)
		}

		registerInput := MCMSUserRegisterEntrypointInput{
			McmsUserPackageID:        deployReport.Output.PackageId,
			McmsUserOwnerCapObjectID: deployReport.Output.Objects.McmsUserOwnerCapObjectID,
			McmsRegistryObjectID:     input.McmsRegistryObjectID,
			McmsUserDataObjectID:     deployReport.Output.Objects.McmsUserDataObjectID,
		}

		registerReport, err := cld_ops.ExecuteOperation(env, RegisterMCMSEntrypointOp, deps, registerInput)
		if err != nil {
			return sui_ops.OpTxResult[DeployMCMSUserObjects]{}, fmt.Errorf("failed to register mcms entrypoint: %w", err)
		}

		env.Logger.Infow("Successfully registered MCMS entrypoint", "digest", registerReport.Output.Digest)

		return sui_ops.OpTxResult[DeployMCMSUserObjects]{
			Digest:    registerReport.Output.Digest,
			PackageId: deployReport.Output.PackageId,
			Objects:   deployReport.Output.Objects,
		}, nil
	},
)
View Source
var FunctionOneOp = cld_ops.NewOperation(
	sui_ops.NewSuiOperationName("mcms_user", "mcms_user", "function_one"),
	semver.MustParse("0.1.0"),
	"Function one in the MCMS User contract",
	functionOneHandler,
)
View Source
var RegisterMCMSEntrypointOp = cld_ops.NewOperation(
	sui_ops.NewSuiOperationName("mcms_user", "mcms_user", "register_entrypoint"),
	semver.MustParse("0.1.0"),
	"Register entrypoint in the MCMS User contract",
	registerEntrypointHandler,
)

Functions

This section is empty.

Types

type DeployMCMSUserInput

type DeployMCMSUserInput struct {
	McmsPackageID     string
	McmsOwnerObjectID string
}

type DeployMCMSUserObjects

type DeployMCMSUserObjects struct {
	McmsUserDataObjectID     string
	McmsUserOwnerCapObjectID string
}

type DeployMCMSUserSeqInput

type DeployMCMSUserSeqInput struct {
	McmsPackageID        string `json:"mcmsPackageID" yaml:"mcmsPackageID"`
	McmsRegistryObjectID string `json:"mcmsRegistryObjectID" yaml:"mcmsRegistryObjectID"`
}

type MCMSUserFunctionOneInput

type MCMSUserFunctionOneInput struct {
	McmsUserPackageID        string `json:"mcmsUserPackageID"`
	McmsUserOwnerCapObjectID string `json:"mcmsUserOwnerCapObjectID"`
	McmsRegistryObjectID     string `json:"mcmsRegistryObjectID"`
	McmsUserDataObjectID     string `json:"mcmsUserDataObjectID"`
	Arg1                     string `json:"arg1"`
	Arg2                     []byte `json:"arg2"`
}

type MCMSUserRegisterEntrypointInput

type MCMSUserRegisterEntrypointInput struct {
	McmsUserPackageID        string `json:"mcmsUserPackageID"`
	McmsUserOwnerCapObjectID string `json:"mcmsUserOwnerCapObjectID"`
	McmsRegistryObjectID     string `json:"mcmsRegistryObjectID"`
	McmsUserDataObjectID     string `json:"mcmsUserDataObjectID"`
}

Jump to

Keyboard shortcuts

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