core

package
v0.0.0-...-346157b Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageName = "mcms-core"
	PackageID   = "2161798dcd0fcf0a25e173ae42c4aede81438709c6caa7127035ec73b30a05c0"
	SDKVersion  = "3.4.11"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CanExecuteOp

type CanExecuteOp struct {
	Submitter  types.PARTY `json:"submitter"`
	TargetRole api.Role    `json:"targetRole"`
	Op         api.Op      `json:"op"`
}

CanExecuteOp is a Record type

func (CanExecuteOp) MarshalHex

func (t CanExecuteOp) MarshalHex() (string, error)

MarshalHex encodes CanExecuteOp to hex string (Canton MCMS format)

func (CanExecuteOp) MarshalJSON

func (t CanExecuteOp) MarshalJSON() ([]byte, error)

func (CanExecuteOp) ToMap

func (t CanExecuteOp) ToMap() map[string]any

ToMap converts CanExecuteOp to a map for DAML arguments

func (*CanExecuteOp) UnmarshalHex

func (t *CanExecuteOp) UnmarshalHex(data string) error

UnmarshalHex decodes CanExecuteOp from hex string (Canton MCMS format)

func (*CanExecuteOp) UnmarshalJSON

func (t *CanExecuteOp) UnmarshalJSON(data []byte) error

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

Contract wraps template operations with Sui-style API access. Use NewContract to create instances, then call Encoder() for encoding methods.

func NewContract

func NewContract(packageID, moduleName, templateName string) *Contract

NewContract creates a Contract with encoder for the given template. This provides Sui-style API: contract.Encoder().Method(args)

func (*Contract) Encoder

func (c *Contract) Encoder() MCMSEncoder

Encoder returns the encoder for Sui-style contract.Encoder().Method() usage.

type ExecuteOp

type ExecuteOp struct {
	TargetRole api.Role                         `json:"targetRole"`
	Submitter  types.PARTY                      `json:"submitter"`
	Op         api.Op                           `json:"op"`
	OpProof    []types.TEXT                     `json:"opProof"`
	TargetCids map[types.TEXT]types.CONTRACT_ID `json:"targetCids"`
}

ExecuteOp is a Record type

func (ExecuteOp) MarshalHex

func (t ExecuteOp) MarshalHex() (string, error)

MarshalHex encodes ExecuteOp to hex string (Canton MCMS format)

func (ExecuteOp) MarshalJSON

func (t ExecuteOp) MarshalJSON() ([]byte, error)

func (ExecuteOp) ToMap

func (t ExecuteOp) ToMap() map[string]any

ToMap converts ExecuteOp to a map for DAML arguments

func (*ExecuteOp) UnmarshalHex

func (t *ExecuteOp) UnmarshalHex(data string) error

UnmarshalHex decodes ExecuteOp from hex string (Canton MCMS format)

func (*ExecuteOp) UnmarshalJSON

func (t *ExecuteOp) UnmarshalJSON(data []byte) error

type ExecuteScheduledBatch

type ExecuteScheduledBatch struct {
	Submitter   types.PARTY                      `json:"submitter"`
	OpId        types.TEXT                       `json:"opId"`
	Calls       []api.TimelockCall               `json:"calls"`
	Predecessor types.TEXT                       `json:"predecessor" hex:"bytes16"`
	Salt        types.TEXT                       `json:"salt" hex:"bytes16"`
	TargetCids  map[types.TEXT]types.CONTRACT_ID `json:"targetCids"`
}

ExecuteScheduledBatch is a Record type

func (ExecuteScheduledBatch) MarshalHex

func (t ExecuteScheduledBatch) MarshalHex() (string, error)

MarshalHex encodes ExecuteScheduledBatch to hex string (Canton MCMS format)

func (ExecuteScheduledBatch) MarshalJSON

func (t ExecuteScheduledBatch) MarshalJSON() ([]byte, error)

func (ExecuteScheduledBatch) ToMap

func (t ExecuteScheduledBatch) ToMap() map[string]any

ToMap converts ExecuteScheduledBatch to a map for DAML arguments

func (*ExecuteScheduledBatch) UnmarshalHex

func (t *ExecuteScheduledBatch) UnmarshalHex(data string) error

UnmarshalHex decodes ExecuteScheduledBatch from hex string (Canton MCMS format)

func (*ExecuteScheduledBatch) UnmarshalJSON

func (t *ExecuteScheduledBatch) UnmarshalJSON(data []byte) error

type GetBlockedFunctions

type GetBlockedFunctions struct {
	Submitter types.PARTY `json:"submitter"`
}

GetBlockedFunctions is a Record type

func (GetBlockedFunctions) MarshalHex

func (t GetBlockedFunctions) MarshalHex() (string, error)

MarshalHex encodes GetBlockedFunctions to hex string (Canton MCMS format)

func (GetBlockedFunctions) MarshalJSON

func (t GetBlockedFunctions) MarshalJSON() ([]byte, error)

func (GetBlockedFunctions) ToMap

func (t GetBlockedFunctions) ToMap() map[string]any

ToMap converts GetBlockedFunctions to a map for DAML arguments

func (*GetBlockedFunctions) UnmarshalHex

func (t *GetBlockedFunctions) UnmarshalHex(data string) error

UnmarshalHex decodes GetBlockedFunctions from hex string (Canton MCMS format)

func (*GetBlockedFunctions) UnmarshalJSON

func (t *GetBlockedFunctions) UnmarshalJSON(data []byte) error

type GetBlockedFunctionsCount

type GetBlockedFunctionsCount struct {
	Submitter types.PARTY `json:"submitter"`
}

GetBlockedFunctionsCount is a Record type

func (GetBlockedFunctionsCount) MarshalHex

func (t GetBlockedFunctionsCount) MarshalHex() (string, error)

MarshalHex encodes GetBlockedFunctionsCount to hex string (Canton MCMS format)

func (GetBlockedFunctionsCount) MarshalJSON

func (t GetBlockedFunctionsCount) MarshalJSON() ([]byte, error)

func (GetBlockedFunctionsCount) ToMap

func (t GetBlockedFunctionsCount) ToMap() map[string]any

ToMap converts GetBlockedFunctionsCount to a map for DAML arguments

func (*GetBlockedFunctionsCount) UnmarshalHex

func (t *GetBlockedFunctionsCount) UnmarshalHex(data string) error

UnmarshalHex decodes GetBlockedFunctionsCount from hex string (Canton MCMS format)

func (*GetBlockedFunctionsCount) UnmarshalJSON

func (t *GetBlockedFunctionsCount) UnmarshalJSON(data []byte) error

type GetMinDelay

type GetMinDelay struct {
	Submitter types.PARTY `json:"submitter"`
}

GetMinDelay is a Record type

func (GetMinDelay) MarshalHex

func (t GetMinDelay) MarshalHex() (string, error)

MarshalHex encodes GetMinDelay to hex string (Canton MCMS format)

func (GetMinDelay) MarshalJSON

func (t GetMinDelay) MarshalJSON() ([]byte, error)

func (GetMinDelay) ToMap

func (t GetMinDelay) ToMap() map[string]any

ToMap converts GetMinDelay to a map for DAML arguments

func (*GetMinDelay) UnmarshalHex

func (t *GetMinDelay) UnmarshalHex(data string) error

UnmarshalHex decodes GetMinDelay from hex string (Canton MCMS format)

func (*GetMinDelay) UnmarshalJSON

func (t *GetMinDelay) UnmarshalJSON(data []byte) error

type GetState

type GetState struct {
	Submitter  types.PARTY `json:"submitter"`
	TargetRole api.Role    `json:"targetRole"`
}

GetState is a Record type

func (GetState) MarshalHex

func (t GetState) MarshalHex() (string, error)

MarshalHex encodes GetState to hex string (Canton MCMS format)

func (GetState) MarshalJSON

func (t GetState) MarshalJSON() ([]byte, error)

func (GetState) ToMap

func (t GetState) ToMap() map[string]any

ToMap converts GetState to a map for DAML arguments

func (*GetState) UnmarshalHex

func (t *GetState) UnmarshalHex(data string) error

UnmarshalHex decodes GetState from hex string (Canton MCMS format)

func (*GetState) UnmarshalJSON

func (t *GetState) UnmarshalJSON(data []byte) error

type GetTimestamp

type GetTimestamp struct {
	Submitter types.PARTY `json:"submitter"`
	OpId      types.TEXT  `json:"opId"`
}

GetTimestamp is a Record type

func (GetTimestamp) MarshalHex

func (t GetTimestamp) MarshalHex() (string, error)

MarshalHex encodes GetTimestamp to hex string (Canton MCMS format)

func (GetTimestamp) MarshalJSON

func (t GetTimestamp) MarshalJSON() ([]byte, error)

func (GetTimestamp) ToMap

func (t GetTimestamp) ToMap() map[string]any

ToMap converts GetTimestamp to a map for DAML arguments

func (*GetTimestamp) UnmarshalHex

func (t *GetTimestamp) UnmarshalHex(data string) error

UnmarshalHex decodes GetTimestamp from hex string (Canton MCMS format)

func (*GetTimestamp) UnmarshalJSON

func (t *GetTimestamp) UnmarshalJSON(data []byte) error

type IsOperation

type IsOperation struct {
	Submitter types.PARTY `json:"submitter"`
	OpId      types.TEXT  `json:"opId"`
}

IsOperation is a Record type

func (IsOperation) MarshalHex

func (t IsOperation) MarshalHex() (string, error)

MarshalHex encodes IsOperation to hex string (Canton MCMS format)

func (IsOperation) MarshalJSON

func (t IsOperation) MarshalJSON() ([]byte, error)

func (IsOperation) ToMap

func (t IsOperation) ToMap() map[string]any

ToMap converts IsOperation to a map for DAML arguments

func (*IsOperation) UnmarshalHex

func (t *IsOperation) UnmarshalHex(data string) error

UnmarshalHex decodes IsOperation from hex string (Canton MCMS format)

func (*IsOperation) UnmarshalJSON

func (t *IsOperation) UnmarshalJSON(data []byte) error

type IsOperationDone

type IsOperationDone struct {
	Submitter types.PARTY `json:"submitter"`
	OpId      types.TEXT  `json:"opId"`
}

IsOperationDone is a Record type

func (IsOperationDone) MarshalHex

func (t IsOperationDone) MarshalHex() (string, error)

MarshalHex encodes IsOperationDone to hex string (Canton MCMS format)

func (IsOperationDone) MarshalJSON

func (t IsOperationDone) MarshalJSON() ([]byte, error)

func (IsOperationDone) ToMap

func (t IsOperationDone) ToMap() map[string]any

ToMap converts IsOperationDone to a map for DAML arguments

func (*IsOperationDone) UnmarshalHex

func (t *IsOperationDone) UnmarshalHex(data string) error

UnmarshalHex decodes IsOperationDone from hex string (Canton MCMS format)

func (*IsOperationDone) UnmarshalJSON

func (t *IsOperationDone) UnmarshalJSON(data []byte) error

type IsOperationPending

type IsOperationPending struct {
	Submitter types.PARTY `json:"submitter"`
	OpId      types.TEXT  `json:"opId"`
}

IsOperationPending is a Record type

func (IsOperationPending) MarshalHex

func (t IsOperationPending) MarshalHex() (string, error)

MarshalHex encodes IsOperationPending to hex string (Canton MCMS format)

func (IsOperationPending) MarshalJSON

func (t IsOperationPending) MarshalJSON() ([]byte, error)

func (IsOperationPending) ToMap

func (t IsOperationPending) ToMap() map[string]any

ToMap converts IsOperationPending to a map for DAML arguments

func (*IsOperationPending) UnmarshalHex

func (t *IsOperationPending) UnmarshalHex(data string) error

UnmarshalHex decodes IsOperationPending from hex string (Canton MCMS format)

func (*IsOperationPending) UnmarshalJSON

func (t *IsOperationPending) UnmarshalJSON(data []byte) error

type IsOperationReady

type IsOperationReady struct {
	Submitter types.PARTY `json:"submitter"`
	OpId      types.TEXT  `json:"opId"`
}

IsOperationReady is a Record type

func (IsOperationReady) MarshalHex

func (t IsOperationReady) MarshalHex() (string, error)

MarshalHex encodes IsOperationReady to hex string (Canton MCMS format)

func (IsOperationReady) MarshalJSON

func (t IsOperationReady) MarshalJSON() ([]byte, error)

func (IsOperationReady) ToMap

func (t IsOperationReady) ToMap() map[string]any

ToMap converts IsOperationReady to a map for DAML arguments

func (*IsOperationReady) UnmarshalHex

func (t *IsOperationReady) UnmarshalHex(data string) error

UnmarshalHex decodes IsOperationReady from hex string (Canton MCMS format)

func (*IsOperationReady) UnmarshalJSON

func (t *IsOperationReady) UnmarshalJSON(data []byte) error

type MCMS

type MCMS struct {
	Owner              types.PARTY                    `json:"owner"`
	InstanceId         types.TEXT                     `json:"instanceId"`
	ChainId            types.INT64                    `json:"chainId"`
	Proposer           api.RoleState                  `json:"proposer"`
	Canceller          api.RoleState                  `json:"canceller"`
	Bypasser           api.RoleState                  `json:"bypasser"`
	MinDelay           types.RELTIME                  `json:"minDelay"`
	BlockedFunctions   []api.BlockedFunction          `json:"blockedFunctions"`
	TimelockTimestamps map[types.TEXT]types.TIMESTAMP `json:"timelockTimestamps"`
}

MCMS is a Template type

func (MCMS) Archive

func (t MCMS) Archive(contractID string) *model.ExerciseCommand

Archive exercises the Archive choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) ArchiveWithPackageID

func (t MCMS) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand

ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name

func (MCMS) CanExecuteOp

func (t MCMS) CanExecuteOp(contractID string, args CanExecuteOp) *model.ExerciseCommand

CanExecuteOp exercises the CanExecuteOp choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) CanExecuteOpWithPackageID

func (t MCMS) CanExecuteOpWithPackageID(contractID string, packageID string, args CanExecuteOp) *model.ExerciseCommand

CanExecuteOpWithPackageID exercises the CanExecuteOp choice using the provided package ID instead of package name

func (MCMS) CreateCommand

func (t MCMS) CreateCommand() *model.CreateCommand

CreateCommand returns a CreateCommand for this template using the package name

func (MCMS) CreateCommandWithPackageID

func (t MCMS) CreateCommandWithPackageID(packageID string) *model.CreateCommand

CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name

func (MCMS) ExecuteOp

func (t MCMS) ExecuteOp(contractID string, args ExecuteOp) *model.ExerciseCommand

ExecuteOp exercises the ExecuteOp choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) ExecuteOpWithPackageID

func (t MCMS) ExecuteOpWithPackageID(contractID string, packageID string, args ExecuteOp) *model.ExerciseCommand

ExecuteOpWithPackageID exercises the ExecuteOp choice using the provided package ID instead of package name

func (MCMS) ExecuteScheduledBatch

func (t MCMS) ExecuteScheduledBatch(contractID string, args ExecuteScheduledBatch) *model.ExerciseCommand

ExecuteScheduledBatch exercises the ExecuteScheduledBatch choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) ExecuteScheduledBatchWithPackageID

func (t MCMS) ExecuteScheduledBatchWithPackageID(contractID string, packageID string, args ExecuteScheduledBatch) *model.ExerciseCommand

ExecuteScheduledBatchWithPackageID exercises the ExecuteScheduledBatch choice using the provided package ID instead of package name

func (MCMS) GetBlockedFunctions

func (t MCMS) GetBlockedFunctions(contractID string, args GetBlockedFunctions) *model.ExerciseCommand

GetBlockedFunctions exercises the GetBlockedFunctions choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) GetBlockedFunctionsCount

func (t MCMS) GetBlockedFunctionsCount(contractID string, args GetBlockedFunctionsCount) *model.ExerciseCommand

GetBlockedFunctionsCount exercises the GetBlockedFunctionsCount choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) GetBlockedFunctionsCountWithPackageID

func (t MCMS) GetBlockedFunctionsCountWithPackageID(contractID string, packageID string, args GetBlockedFunctionsCount) *model.ExerciseCommand

GetBlockedFunctionsCountWithPackageID exercises the GetBlockedFunctionsCount choice using the provided package ID instead of package name

func (MCMS) GetBlockedFunctionsWithPackageID

func (t MCMS) GetBlockedFunctionsWithPackageID(contractID string, packageID string, args GetBlockedFunctions) *model.ExerciseCommand

GetBlockedFunctionsWithPackageID exercises the GetBlockedFunctions choice using the provided package ID instead of package name

func (MCMS) GetMinDelay

func (t MCMS) GetMinDelay(contractID string, args GetMinDelay) *model.ExerciseCommand

GetMinDelay exercises the GetMinDelay choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) GetMinDelayWithPackageID

func (t MCMS) GetMinDelayWithPackageID(contractID string, packageID string, args GetMinDelay) *model.ExerciseCommand

GetMinDelayWithPackageID exercises the GetMinDelay choice using the provided package ID instead of package name

func (MCMS) GetState

func (t MCMS) GetState(contractID string, args GetState) *model.ExerciseCommand

GetState exercises the GetState choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) GetStateWithPackageID

func (t MCMS) GetStateWithPackageID(contractID string, packageID string, args GetState) *model.ExerciseCommand

GetStateWithPackageID exercises the GetState choice using the provided package ID instead of package name

func (MCMS) GetTemplateID

func (t MCMS) GetTemplateID() string

GetTemplateID returns the template ID for this template using the package name

func (MCMS) GetTemplateIDWithPackageID

func (t MCMS) GetTemplateIDWithPackageID(packageID string) string

GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name

func (MCMS) GetTimestamp

func (t MCMS) GetTimestamp(contractID string, args GetTimestamp) *model.ExerciseCommand

GetTimestamp exercises the GetTimestamp choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) GetTimestampWithPackageID

func (t MCMS) GetTimestampWithPackageID(contractID string, packageID string, args GetTimestamp) *model.ExerciseCommand

GetTimestampWithPackageID exercises the GetTimestamp choice using the provided package ID instead of package name

func (MCMS) IsOperation

func (t MCMS) IsOperation(contractID string, args IsOperation) *model.ExerciseCommand

IsOperation exercises the IsOperation choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) IsOperationDone

func (t MCMS) IsOperationDone(contractID string, args IsOperationDone) *model.ExerciseCommand

IsOperationDone exercises the IsOperationDone choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) IsOperationDoneWithPackageID

func (t MCMS) IsOperationDoneWithPackageID(contractID string, packageID string, args IsOperationDone) *model.ExerciseCommand

IsOperationDoneWithPackageID exercises the IsOperationDone choice using the provided package ID instead of package name

func (MCMS) IsOperationPending

func (t MCMS) IsOperationPending(contractID string, args IsOperationPending) *model.ExerciseCommand

IsOperationPending exercises the IsOperationPending choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) IsOperationPendingWithPackageID

func (t MCMS) IsOperationPendingWithPackageID(contractID string, packageID string, args IsOperationPending) *model.ExerciseCommand

IsOperationPendingWithPackageID exercises the IsOperationPending choice using the provided package ID instead of package name

func (MCMS) IsOperationReady

func (t MCMS) IsOperationReady(contractID string, args IsOperationReady) *model.ExerciseCommand

IsOperationReady exercises the IsOperationReady choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) IsOperationReadyWithPackageID

func (t MCMS) IsOperationReadyWithPackageID(contractID string, packageID string, args IsOperationReady) *model.ExerciseCommand

IsOperationReadyWithPackageID exercises the IsOperationReady choice using the provided package ID instead of package name

func (MCMS) IsOperationWithPackageID

func (t MCMS) IsOperationWithPackageID(contractID string, packageID string, args IsOperation) *model.ExerciseCommand

IsOperationWithPackageID exercises the IsOperation choice using the provided package ID instead of package name

func (MCMS) MarshalHex

func (t MCMS) MarshalHex() (string, error)

MarshalHex encodes MCMS to hex string (Canton MCMS format)

func (MCMS) MarshalJSON

func (t MCMS) MarshalJSON() ([]byte, error)

func (MCMS) PruneSeenHashes

func (t MCMS) PruneSeenHashes(contractID string, args PruneSeenHashes) *model.ExerciseCommand

PruneSeenHashes exercises the PruneSeenHashes choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) PruneSeenHashesWithPackageID

func (t MCMS) PruneSeenHashesWithPackageID(contractID string, packageID string, args PruneSeenHashes) *model.ExerciseCommand

PruneSeenHashesWithPackageID exercises the PruneSeenHashes choice using the provided package ID instead of package name

func (MCMS) PruneTimelockTimestamps

func (t MCMS) PruneTimelockTimestamps(contractID string, args PruneTimelockTimestamps) *model.ExerciseCommand

PruneTimelockTimestamps exercises the PruneTimelockTimestamps choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) PruneTimelockTimestampsWithPackageID

func (t MCMS) PruneTimelockTimestampsWithPackageID(contractID string, packageID string, args PruneTimelockTimestamps) *model.ExerciseCommand

PruneTimelockTimestampsWithPackageID exercises the PruneTimelockTimestamps choice using the provided package ID instead of package name

func (MCMS) SetConfig

func (t MCMS) SetConfig(contractID string, args SetConfig) *model.ExerciseCommand

SetConfig exercises the SetConfig choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) SetConfigWithPackageID

func (t MCMS) SetConfigWithPackageID(contractID string, packageID string, args SetConfig) *model.ExerciseCommand

SetConfigWithPackageID exercises the SetConfig choice using the provided package ID instead of package name

func (MCMS) SetRoot

func (t MCMS) SetRoot(contractID string, args SetRoot) *model.ExerciseCommand

SetRoot exercises the SetRoot choice on this MCMS contract This method uses the package name in the template ID

func (MCMS) SetRootWithPackageID

func (t MCMS) SetRootWithPackageID(contractID string, packageID string, args SetRoot) *model.ExerciseCommand

SetRootWithPackageID exercises the SetRoot choice using the provided package ID instead of package name

func (*MCMS) UnmarshalHex

func (t *MCMS) UnmarshalHex(data string) error

UnmarshalHex decodes MCMS from hex string (Canton MCMS format)

func (*MCMS) UnmarshalJSON

func (t *MCMS) UnmarshalJSON(data []byte) error

type MCMSEncoder

type MCMSEncoder interface {
	CanExecuteOp(args CanExecuteOp) (*bind.EncodedChoice, error)
	ExecuteOp(args ExecuteOp) (*bind.EncodedChoice, error)
	ExecuteScheduledBatch(args ExecuteScheduledBatch) (*bind.EncodedChoice, error)
	GetBlockedFunctions(args GetBlockedFunctions) (*bind.EncodedChoice, error)
	GetBlockedFunctionsCount(args GetBlockedFunctionsCount) (*bind.EncodedChoice, error)
	GetMinDelay(args GetMinDelay) (*bind.EncodedChoice, error)
	GetState(args GetState) (*bind.EncodedChoice, error)
	GetTimestamp(args GetTimestamp) (*bind.EncodedChoice, error)
	IsOperation(args IsOperation) (*bind.EncodedChoice, error)
	IsOperationDone(args IsOperationDone) (*bind.EncodedChoice, error)
	IsOperationPending(args IsOperationPending) (*bind.EncodedChoice, error)
	IsOperationReady(args IsOperationReady) (*bind.EncodedChoice, error)
	PruneSeenHashes(args PruneSeenHashes) (*bind.EncodedChoice, error)
	PruneTimelockTimestamps(args PruneTimelockTimestamps) (*bind.EncodedChoice, error)
	SetConfig(args SetConfig) (*bind.EncodedChoice, error)
	SetRoot(args SetRoot) (*bind.EncodedChoice, error)
}

MCMSEncoder interface for typed encoding methods. Implemented by Encoder for method-based encoding.

type MCMSState

type MCMSState struct {
	Role          api.Role        `json:"role"`
	OpCount       types.INT64     `json:"opCount"`
	PostOpCount   types.INT64     `json:"postOpCount"`
	ValidUntil    types.TIMESTAMP `json:"validUntil"`
	HasActiveRoot types.BOOL      `json:"hasActiveRoot"`
	NumSigners    types.INT64     `json:"numSigners"`
}

MCMSState is a Record type

func (MCMSState) MarshalHex

func (t MCMSState) MarshalHex() (string, error)

MarshalHex encodes MCMSState to hex string (Canton MCMS format)

func (MCMSState) MarshalJSON

func (t MCMSState) MarshalJSON() ([]byte, error)

func (MCMSState) ToMap

func (t MCMSState) ToMap() map[string]any

ToMap converts MCMSState to a map for DAML arguments

func (*MCMSState) UnmarshalHex

func (t *MCMSState) UnmarshalHex(data string) error

UnmarshalHex decodes MCMSState from hex string (Canton MCMS format)

func (*MCMSState) UnmarshalJSON

func (t *MCMSState) UnmarshalJSON(data []byte) error

type PruneSeenHashes

type PruneSeenHashes struct {
	TargetRole api.Role `json:"targetRole"`
}

PruneSeenHashes is a Record type

func (PruneSeenHashes) MarshalHex

func (t PruneSeenHashes) MarshalHex() (string, error)

MarshalHex encodes PruneSeenHashes to hex string (Canton MCMS format)

func (PruneSeenHashes) MarshalJSON

func (t PruneSeenHashes) MarshalJSON() ([]byte, error)

func (PruneSeenHashes) ToMap

func (t PruneSeenHashes) ToMap() map[string]any

ToMap converts PruneSeenHashes to a map for DAML arguments

func (*PruneSeenHashes) UnmarshalHex

func (t *PruneSeenHashes) UnmarshalHex(data string) error

UnmarshalHex decodes PruneSeenHashes from hex string (Canton MCMS format)

func (*PruneSeenHashes) UnmarshalJSON

func (t *PruneSeenHashes) UnmarshalJSON(data []byte) error

type PruneTimelockTimestamps

type PruneTimelockTimestamps struct {
}

PruneTimelockTimestamps is a Record type

func (PruneTimelockTimestamps) MarshalHex

func (t PruneTimelockTimestamps) MarshalHex() (string, error)

MarshalHex encodes PruneTimelockTimestamps to hex string (Canton MCMS format)

func (PruneTimelockTimestamps) MarshalJSON

func (t PruneTimelockTimestamps) MarshalJSON() ([]byte, error)

func (PruneTimelockTimestamps) ToMap

func (t PruneTimelockTimestamps) ToMap() map[string]any

ToMap converts PruneTimelockTimestamps to a map for DAML arguments

func (*PruneTimelockTimestamps) UnmarshalHex

func (t *PruneTimelockTimestamps) UnmarshalHex(data string) error

UnmarshalHex decodes PruneTimelockTimestamps from hex string (Canton MCMS format)

func (*PruneTimelockTimestamps) UnmarshalJSON

func (t *PruneTimelockTimestamps) UnmarshalJSON(data []byte) error

type SetConfig

type SetConfig struct {
	TargetRole      api.Role         `json:"targetRole"`
	NewSigners      []api.SignerInfo `json:"newSigners"`
	NewGroupQuorums []types.INT64    `json:"newGroupQuorums"`
	NewGroupParents []types.INT64    `json:"newGroupParents"`
	ClearRoot       types.BOOL       `json:"clearRoot"`
}

SetConfig is a Record type

func (SetConfig) MarshalHex

func (t SetConfig) MarshalHex() (string, error)

MarshalHex encodes SetConfig to hex string (Canton MCMS format)

func (SetConfig) MarshalJSON

func (t SetConfig) MarshalJSON() ([]byte, error)

func (SetConfig) ToMap

func (t SetConfig) ToMap() map[string]any

ToMap converts SetConfig to a map for DAML arguments

func (*SetConfig) UnmarshalHex

func (t *SetConfig) UnmarshalHex(data string) error

UnmarshalHex decodes SetConfig from hex string (Canton MCMS format)

func (*SetConfig) UnmarshalJSON

func (t *SetConfig) UnmarshalJSON(data []byte) error

type SetRoot

type SetRoot struct {
	TargetRole    api.Role           `json:"targetRole"`
	Submitter     types.PARTY        `json:"submitter"`
	NewRoot       types.TEXT         `json:"newRoot" hex:"bytes"`
	ValidUntil    types.TIMESTAMP    `json:"validUntil"`
	Metadata      api.RootMetadata   `json:"metadata"`
	MetadataProof []types.TEXT       `json:"metadataProof"`
	Signatures    []api.RawSignature `json:"signatures"`
}

SetRoot is a Record type

func (SetRoot) MarshalHex

func (t SetRoot) MarshalHex() (string, error)

MarshalHex encodes SetRoot to hex string (Canton MCMS format)

func (SetRoot) MarshalJSON

func (t SetRoot) MarshalJSON() ([]byte, error)

func (SetRoot) ToMap

func (t SetRoot) ToMap() map[string]any

ToMap converts SetRoot to a map for DAML arguments

func (*SetRoot) UnmarshalHex

func (t *SetRoot) UnmarshalHex(data string) error

UnmarshalHex decodes SetRoot from hex string (Canton MCMS format)

func (*SetRoot) UnmarshalJSON

func (t *SetRoot) UnmarshalJSON(data []byte) error

type Template

type Template interface {
	CreateCommand() *model.CreateCommand
	GetTemplateID() string
}

Jump to

Keyboard shortcuts

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