interactive

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InteractiveSubmissionService_PrepareSubmission_FullMethodName                      = "/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/PrepareSubmission"
	InteractiveSubmissionService_ExecuteSubmission_FullMethodName                      = "/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/ExecuteSubmission"
	InteractiveSubmissionService_ExecuteSubmissionAndWait_FullMethodName               = "/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/ExecuteSubmissionAndWait"
	InteractiveSubmissionService_ExecuteSubmissionAndWaitForTransaction_FullMethodName = "/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/ExecuteSubmissionAndWaitForTransaction"
	InteractiveSubmissionService_GetPreferredPackageVersion_FullMethodName             = "/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/GetPreferredPackageVersion"
	InteractiveSubmissionService_GetPreferredPackages_FullMethodName                   = "/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/GetPreferredPackages"
)

Variables

View Source
var (
	HashingSchemeVersion_name = map[int32]string{
		0: "HASHING_SCHEME_VERSION_UNSPECIFIED",
		2: "HASHING_SCHEME_VERSION_V2",
	}
	HashingSchemeVersion_value = map[string]int32{
		"HASHING_SCHEME_VERSION_UNSPECIFIED": 0,
		"HASHING_SCHEME_VERSION_V2":          2,
	}
)

Enum value maps for HashingSchemeVersion.

View Source
var File_com_daml_ledger_api_v2_interactive_interactive_submission_common_data_proto protoreflect.FileDescriptor
View Source
var File_com_daml_ledger_api_v2_interactive_interactive_submission_service_proto protoreflect.FileDescriptor
View Source
var InteractiveSubmissionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "com.daml.ledger.api.v2.interactive.InteractiveSubmissionService",
	HandlerType: (*InteractiveSubmissionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PrepareSubmission",
			Handler:    _InteractiveSubmissionService_PrepareSubmission_Handler,
		},
		{
			MethodName: "ExecuteSubmission",
			Handler:    _InteractiveSubmissionService_ExecuteSubmission_Handler,
		},
		{
			MethodName: "ExecuteSubmissionAndWait",
			Handler:    _InteractiveSubmissionService_ExecuteSubmissionAndWait_Handler,
		},
		{
			MethodName: "ExecuteSubmissionAndWaitForTransaction",
			Handler:    _InteractiveSubmissionService_ExecuteSubmissionAndWaitForTransaction_Handler,
		},
		{
			MethodName: "GetPreferredPackageVersion",
			Handler:    _InteractiveSubmissionService_GetPreferredPackageVersion_Handler,
		},
		{
			MethodName: "GetPreferredPackages",
			Handler:    _InteractiveSubmissionService_GetPreferredPackages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "com/daml/ledger/api/v2/interactive/interactive_submission_service.proto",
}

InteractiveSubmissionService_ServiceDesc is the grpc.ServiceDesc for InteractiveSubmissionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInteractiveSubmissionServiceServer

func RegisterInteractiveSubmissionServiceServer(s grpc.ServiceRegistrar, srv InteractiveSubmissionServiceServer)

Types

type CostEstimation

type CostEstimation struct {

	// Timestamp at which the estimation was made
	EstimationTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=estimation_timestamp,json=estimationTimestamp,proto3" json:"estimation_timestamp,omitempty"`
	// Estimated traffic cost of the confirmation request associated with the transaction
	ConfirmationRequestTrafficCostEstimation uint64 `` /* 188-byte string literal not displayed */
	// Estimated traffic cost of the confirmation response associated with the transaction
	// This field can also be used as an indication of the cost that other potential confirming nodes
	// of the party will incur to approve or reject the transaction
	ConfirmationResponseTrafficCostEstimation uint64 `` /* 191-byte string literal not displayed */
	// Sum of the fields above
	TotalTrafficCostEstimation uint64 `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

Estimation of the cost of submitting the prepared transaction The estimation is done against the synchronizer chosen during preparation of the transaction (or the one explicitly requested). The cost of re-assigning contracts to another synchronizer when necessary is not included in the estimation.

func (*CostEstimation) Descriptor deprecated

func (*CostEstimation) Descriptor() ([]byte, []int)

Deprecated: Use CostEstimation.ProtoReflect.Descriptor instead.

func (*CostEstimation) GetConfirmationRequestTrafficCostEstimation

func (x *CostEstimation) GetConfirmationRequestTrafficCostEstimation() uint64

func (*CostEstimation) GetConfirmationResponseTrafficCostEstimation

func (x *CostEstimation) GetConfirmationResponseTrafficCostEstimation() uint64

func (*CostEstimation) GetEstimationTimestamp

func (x *CostEstimation) GetEstimationTimestamp() *timestamppb.Timestamp

func (*CostEstimation) GetTotalTrafficCostEstimation

func (x *CostEstimation) GetTotalTrafficCostEstimation() uint64

func (*CostEstimation) ProtoMessage

func (*CostEstimation) ProtoMessage()

func (*CostEstimation) ProtoReflect

func (x *CostEstimation) ProtoReflect() protoreflect.Message

func (*CostEstimation) Reset

func (x *CostEstimation) Reset()

func (*CostEstimation) String

func (x *CostEstimation) String() string

type CostEstimationHints

type CostEstimationHints struct {

	// Disable cost estimation
	// Default (not set) is false
	Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Details on the keys that will be used to sign the transaction (how many and of which type).
	// Signature size impacts the cost of the transaction.
	// If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined
	// in the PartyToKeyMapping of the external party), using keys in the order they are registered.
	// Optional (empty list is equivalent to not providing this field)
	ExpectedSignatures []v2.SigningAlgorithmSpec `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

Hints to improve cost estimation precision of a prepared transaction

func (*CostEstimationHints) Descriptor deprecated

func (*CostEstimationHints) Descriptor() ([]byte, []int)

Deprecated: Use CostEstimationHints.ProtoReflect.Descriptor instead.

func (*CostEstimationHints) GetDisabled

func (x *CostEstimationHints) GetDisabled() bool

func (*CostEstimationHints) GetExpectedSignatures

func (x *CostEstimationHints) GetExpectedSignatures() []v2.SigningAlgorithmSpec

func (*CostEstimationHints) ProtoMessage

func (*CostEstimationHints) ProtoMessage()

func (*CostEstimationHints) ProtoReflect

func (x *CostEstimationHints) ProtoReflect() protoreflect.Message

func (*CostEstimationHints) Reset

func (x *CostEstimationHints) Reset()

func (*CostEstimationHints) String

func (x *CostEstimationHints) String() string

type DamlTransaction

type DamlTransaction struct {

	// serialization version, will be >= max(nodes version)
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Root nodes of the transaction
	Roots []string `protobuf:"bytes,2,rep,name=roots,proto3" json:"roots,omitempty"`
	// List of nodes in the transaction
	Nodes []*DamlTransaction_Node `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// Node seeds are values associated with certain nodes used for generating cryptographic salts
	NodeSeeds []*DamlTransaction_NodeSeed `protobuf:"bytes,4,rep,name=node_seeds,json=nodeSeeds,proto3" json:"node_seeds,omitempty"`
	// contains filtered or unexported fields
}

Daml Transaction. This represents the effect on the ledger if this transaction is successfully committed.

func (*DamlTransaction) Descriptor deprecated

func (*DamlTransaction) Descriptor() ([]byte, []int)

Deprecated: Use DamlTransaction.ProtoReflect.Descriptor instead.

func (*DamlTransaction) GetNodeSeeds

func (x *DamlTransaction) GetNodeSeeds() []*DamlTransaction_NodeSeed

func (*DamlTransaction) GetNodes

func (x *DamlTransaction) GetNodes() []*DamlTransaction_Node

func (*DamlTransaction) GetRoots

func (x *DamlTransaction) GetRoots() []string

func (*DamlTransaction) GetVersion

func (x *DamlTransaction) GetVersion() string

func (*DamlTransaction) ProtoMessage

func (*DamlTransaction) ProtoMessage()

func (*DamlTransaction) ProtoReflect

func (x *DamlTransaction) ProtoReflect() protoreflect.Message

func (*DamlTransaction) Reset

func (x *DamlTransaction) Reset()

func (*DamlTransaction) String

func (x *DamlTransaction) String() string

type DamlTransaction_Node

type DamlTransaction_Node struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// Versioned node
	//
	// Types that are valid to be assigned to VersionedNode:
	//
	//	*DamlTransaction_Node_V1
	VersionedNode isDamlTransaction_Node_VersionedNode `protobuf_oneof:"versioned_node"`
	// contains filtered or unexported fields
}

A transaction may contain nodes with different versions. Each node must be hashed using the hashing algorithm corresponding to its specific version. [docs-entry-start: DamlTransaction.Node]

func (*DamlTransaction_Node) Descriptor deprecated

func (*DamlTransaction_Node) Descriptor() ([]byte, []int)

Deprecated: Use DamlTransaction_Node.ProtoReflect.Descriptor instead.

func (*DamlTransaction_Node) GetNodeId

func (x *DamlTransaction_Node) GetNodeId() string

func (*DamlTransaction_Node) GetV1

func (x *DamlTransaction_Node) GetV1() *v1.Node

func (*DamlTransaction_Node) GetVersionedNode

func (x *DamlTransaction_Node) GetVersionedNode() isDamlTransaction_Node_VersionedNode

func (*DamlTransaction_Node) ProtoMessage

func (*DamlTransaction_Node) ProtoMessage()

func (*DamlTransaction_Node) ProtoReflect

func (x *DamlTransaction_Node) ProtoReflect() protoreflect.Message

func (*DamlTransaction_Node) Reset

func (x *DamlTransaction_Node) Reset()

func (*DamlTransaction_Node) String

func (x *DamlTransaction_Node) String() string

type DamlTransaction_NodeSeed

type DamlTransaction_NodeSeed struct {
	NodeId int32  `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Seed   []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"`
	// contains filtered or unexported fields
}

func (*DamlTransaction_NodeSeed) Descriptor deprecated

func (*DamlTransaction_NodeSeed) Descriptor() ([]byte, []int)

Deprecated: Use DamlTransaction_NodeSeed.ProtoReflect.Descriptor instead.

func (*DamlTransaction_NodeSeed) GetNodeId

func (x *DamlTransaction_NodeSeed) GetNodeId() int32

func (*DamlTransaction_NodeSeed) GetSeed

func (x *DamlTransaction_NodeSeed) GetSeed() []byte

func (*DamlTransaction_NodeSeed) ProtoMessage

func (*DamlTransaction_NodeSeed) ProtoMessage()

func (*DamlTransaction_NodeSeed) ProtoReflect

func (x *DamlTransaction_NodeSeed) ProtoReflect() protoreflect.Message

func (*DamlTransaction_NodeSeed) Reset

func (x *DamlTransaction_NodeSeed) Reset()

func (*DamlTransaction_NodeSeed) String

func (x *DamlTransaction_NodeSeed) String() string

type DamlTransaction_Node_V1

type DamlTransaction_Node_V1 struct {
	// Start at 1000 so we can add more fields before if necessary
	// When new versions will be added, they will show here
	V1 *v1.Node `protobuf:"bytes,1000,opt,name=v1,proto3,oneof"`
}

type ExecuteSubmissionAndWaitForTransactionRequest

type ExecuteSubmissionAndWaitForTransactionRequest struct {

	// the prepared transaction
	// Typically this is the value of the `prepared_transaction` field in `PrepareSubmissionResponse`
	// obtained from calling `prepareSubmission`.
	// Required
	PreparedTransaction *PreparedTransaction `protobuf:"bytes,1,opt,name=prepared_transaction,json=preparedTransaction,proto3" json:"prepared_transaction,omitempty"`
	// The party(ies) signatures that authorize the prepared submission to be executed by this node.
	// Each party can provide one or more signatures..
	// and one or more parties can sign.
	// Note that currently, only single party submissions are supported.
	// Required
	PartySignatures *PartySignatures `protobuf:"bytes,2,opt,name=party_signatures,json=partySignatures,proto3" json:"party_signatures,omitempty"`
	// Specifies the deduplication period for the change ID (See PrepareSubmissionRequest).
	// If omitted, the participant will assume the configured maximum deduplication time.
	// Optional
	//
	// Types that are valid to be assigned to DeduplicationPeriod:
	//
	//	*ExecuteSubmissionAndWaitForTransactionRequest_DeduplicationDuration
	//	*ExecuteSubmissionAndWaitForTransactionRequest_DeduplicationOffset
	DeduplicationPeriod isExecuteSubmissionAndWaitForTransactionRequest_DeduplicationPeriod `protobuf_oneof:"deduplication_period"`
	// A unique identifier to distinguish completions for different submissions with the same change ID.
	// Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
	// with the same change ID.
	// Must be a valid LedgerString (as described in “value.proto“).
	//
	// Required
	SubmissionId string `protobuf:"bytes,5,opt,name=submission_id,json=submissionId,proto3" json:"submission_id,omitempty"`
	// See [PrepareSubmissionRequest.user_id]
	// Optional
	UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The hashing scheme version used when building the hash
	// Required
	HashingSchemeVersion HashingSchemeVersion `` /* 185-byte string literal not displayed */
	// If set will influence the chosen ledger effective time but will not result in a submission delay so any override
	// should be scheduled to executed within the window allowed by synchronizer.
	// Optional
	MinLedgerTime *MinLedgerTime `protobuf:"bytes,8,opt,name=min_ledger_time,json=minLedgerTime,proto3" json:"min_ledger_time,omitempty"`
	// If no “transaction_format“ is provided, a default will be used where “transaction_shape“ is set to
	// TRANSACTION_SHAPE_ACS_DELTA, “event_format“ is defined with “filters_by_party“ containing wildcard-template
	// filter for all original “act_as“ and “read_as“ parties and the “verbose“ flag is set.
	// When the “transaction_shape“ TRANSACTION_SHAPE_ACS_DELTA shape is used (explicitly or is defaulted to as explained above),
	// events will only be returned if the submitting party is hosted on this node.
	// Optional
	TransactionFormat *v2.TransactionFormat `protobuf:"bytes,9,opt,name=transaction_format,json=transactionFormat,proto3" json:"transaction_format,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteSubmissionAndWaitForTransactionRequest) Descriptor deprecated

Deprecated: Use ExecuteSubmissionAndWaitForTransactionRequest.ProtoReflect.Descriptor instead.

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetDeduplicationDuration

func (x *ExecuteSubmissionAndWaitForTransactionRequest) GetDeduplicationDuration() *durationpb.Duration

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetDeduplicationOffset

func (x *ExecuteSubmissionAndWaitForTransactionRequest) GetDeduplicationOffset() int64

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetDeduplicationPeriod

func (x *ExecuteSubmissionAndWaitForTransactionRequest) GetDeduplicationPeriod() isExecuteSubmissionAndWaitForTransactionRequest_DeduplicationPeriod

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetHashingSchemeVersion

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetMinLedgerTime

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetPartySignatures

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetPreparedTransaction

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetSubmissionId

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetTransactionFormat

func (*ExecuteSubmissionAndWaitForTransactionRequest) GetUserId

func (*ExecuteSubmissionAndWaitForTransactionRequest) ProtoMessage

func (*ExecuteSubmissionAndWaitForTransactionRequest) ProtoReflect

func (*ExecuteSubmissionAndWaitForTransactionRequest) Reset

func (*ExecuteSubmissionAndWaitForTransactionRequest) String

type ExecuteSubmissionAndWaitForTransactionRequest_DeduplicationDuration

type ExecuteSubmissionAndWaitForTransactionRequest_DeduplicationDuration struct {
	// Specifies the length of the deduplication period.
	// It is interpreted relative to the local clock at some point during the submission's processing.
	// Must be non-negative. Must not exceed the maximum deduplication time.
	DeduplicationDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=deduplication_duration,json=deduplicationDuration,proto3,oneof"`
}

type ExecuteSubmissionAndWaitForTransactionRequest_DeduplicationOffset

type ExecuteSubmissionAndWaitForTransactionRequest_DeduplicationOffset struct {
	// Specifies the start of the deduplication period by a completion stream offset (exclusive).
	// Must be a valid absolute offset (positive integer).
	DeduplicationOffset int64 `protobuf:"varint,4,opt,name=deduplication_offset,json=deduplicationOffset,proto3,oneof"`
}

type ExecuteSubmissionAndWaitForTransactionResponse

type ExecuteSubmissionAndWaitForTransactionResponse struct {

	// The transaction that resulted from the submitted command.
	// The transaction might contain no events (request conditions result in filtering out all of them).
	// Required
	Transaction *v2.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteSubmissionAndWaitForTransactionResponse) Descriptor deprecated

Deprecated: Use ExecuteSubmissionAndWaitForTransactionResponse.ProtoReflect.Descriptor instead.

func (*ExecuteSubmissionAndWaitForTransactionResponse) GetTransaction

func (*ExecuteSubmissionAndWaitForTransactionResponse) ProtoMessage

func (*ExecuteSubmissionAndWaitForTransactionResponse) ProtoReflect

func (*ExecuteSubmissionAndWaitForTransactionResponse) Reset

func (*ExecuteSubmissionAndWaitForTransactionResponse) String

type ExecuteSubmissionAndWaitRequest

type ExecuteSubmissionAndWaitRequest struct {

	// the prepared transaction
	// Typically this is the value of the `prepared_transaction` field in `PrepareSubmissionResponse`
	// obtained from calling `prepareSubmission`.
	// Required
	PreparedTransaction *PreparedTransaction `protobuf:"bytes,1,opt,name=prepared_transaction,json=preparedTransaction,proto3" json:"prepared_transaction,omitempty"`
	// The party(ies) signatures that authorize the prepared submission to be executed by this node.
	// Each party can provide one or more signatures..
	// and one or more parties can sign.
	// Note that currently, only single party submissions are supported.
	// Required
	PartySignatures *PartySignatures `protobuf:"bytes,2,opt,name=party_signatures,json=partySignatures,proto3" json:"party_signatures,omitempty"`
	// Specifies the deduplication period for the change ID (See PrepareSubmissionRequest).
	// If omitted, the participant will assume the configured maximum deduplication time.
	// Optional
	//
	// Types that are valid to be assigned to DeduplicationPeriod:
	//
	//	*ExecuteSubmissionAndWaitRequest_DeduplicationDuration
	//	*ExecuteSubmissionAndWaitRequest_DeduplicationOffset
	DeduplicationPeriod isExecuteSubmissionAndWaitRequest_DeduplicationPeriod `protobuf_oneof:"deduplication_period"`
	// A unique identifier to distinguish completions for different submissions with the same change ID.
	// Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
	// with the same change ID.
	// Must be a valid LedgerString (as described in “value.proto“).
	//
	// Required
	SubmissionId string `protobuf:"bytes,5,opt,name=submission_id,json=submissionId,proto3" json:"submission_id,omitempty"`
	// See [PrepareSubmissionRequest.user_id]
	// Optional
	UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The hashing scheme version used when building the hash
	// Required
	HashingSchemeVersion HashingSchemeVersion `` /* 185-byte string literal not displayed */
	// If set will influence the chosen ledger effective time but will not result in a submission delay so any override
	// should be scheduled to executed within the window allowed by synchronizer.
	// Optional
	MinLedgerTime *MinLedgerTime `protobuf:"bytes,8,opt,name=min_ledger_time,json=minLedgerTime,proto3" json:"min_ledger_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteSubmissionAndWaitRequest) Descriptor deprecated

func (*ExecuteSubmissionAndWaitRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteSubmissionAndWaitRequest.ProtoReflect.Descriptor instead.

func (*ExecuteSubmissionAndWaitRequest) GetDeduplicationDuration

func (x *ExecuteSubmissionAndWaitRequest) GetDeduplicationDuration() *durationpb.Duration

func (*ExecuteSubmissionAndWaitRequest) GetDeduplicationOffset

func (x *ExecuteSubmissionAndWaitRequest) GetDeduplicationOffset() int64

func (*ExecuteSubmissionAndWaitRequest) GetDeduplicationPeriod

func (x *ExecuteSubmissionAndWaitRequest) GetDeduplicationPeriod() isExecuteSubmissionAndWaitRequest_DeduplicationPeriod

func (*ExecuteSubmissionAndWaitRequest) GetHashingSchemeVersion

func (x *ExecuteSubmissionAndWaitRequest) GetHashingSchemeVersion() HashingSchemeVersion

func (*ExecuteSubmissionAndWaitRequest) GetMinLedgerTime

func (x *ExecuteSubmissionAndWaitRequest) GetMinLedgerTime() *MinLedgerTime

func (*ExecuteSubmissionAndWaitRequest) GetPartySignatures

func (x *ExecuteSubmissionAndWaitRequest) GetPartySignatures() *PartySignatures

func (*ExecuteSubmissionAndWaitRequest) GetPreparedTransaction

func (x *ExecuteSubmissionAndWaitRequest) GetPreparedTransaction() *PreparedTransaction

func (*ExecuteSubmissionAndWaitRequest) GetSubmissionId

func (x *ExecuteSubmissionAndWaitRequest) GetSubmissionId() string

func (*ExecuteSubmissionAndWaitRequest) GetUserId

func (x *ExecuteSubmissionAndWaitRequest) GetUserId() string

func (*ExecuteSubmissionAndWaitRequest) ProtoMessage

func (*ExecuteSubmissionAndWaitRequest) ProtoMessage()

func (*ExecuteSubmissionAndWaitRequest) ProtoReflect

func (*ExecuteSubmissionAndWaitRequest) Reset

func (*ExecuteSubmissionAndWaitRequest) String

type ExecuteSubmissionAndWaitRequest_DeduplicationDuration

type ExecuteSubmissionAndWaitRequest_DeduplicationDuration struct {
	// Specifies the length of the deduplication period.
	// It is interpreted relative to the local clock at some point during the submission's processing.
	// Must be non-negative. Must not exceed the maximum deduplication time.
	DeduplicationDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=deduplication_duration,json=deduplicationDuration,proto3,oneof"`
}

type ExecuteSubmissionAndWaitRequest_DeduplicationOffset

type ExecuteSubmissionAndWaitRequest_DeduplicationOffset struct {
	// Specifies the start of the deduplication period by a completion stream offset (exclusive).
	// Must be a valid absolute offset (positive integer).
	DeduplicationOffset int64 `protobuf:"varint,4,opt,name=deduplication_offset,json=deduplicationOffset,proto3,oneof"`
}

type ExecuteSubmissionAndWaitResponse

type ExecuteSubmissionAndWaitResponse struct {

	// The id of the transaction that resulted from the submitted command.
	// Must be a valid LedgerString (as described in “value.proto“).
	// Required
	UpdateId string `protobuf:"bytes,1,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"`
	// The details of the offset field are described in “community/ledger-api/README.md“.
	// Required
	CompletionOffset int64 `protobuf:"varint,2,opt,name=completion_offset,json=completionOffset,proto3" json:"completion_offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteSubmissionAndWaitResponse) Descriptor deprecated

func (*ExecuteSubmissionAndWaitResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteSubmissionAndWaitResponse.ProtoReflect.Descriptor instead.

func (*ExecuteSubmissionAndWaitResponse) GetCompletionOffset

func (x *ExecuteSubmissionAndWaitResponse) GetCompletionOffset() int64

func (*ExecuteSubmissionAndWaitResponse) GetUpdateId

func (x *ExecuteSubmissionAndWaitResponse) GetUpdateId() string

func (*ExecuteSubmissionAndWaitResponse) ProtoMessage

func (*ExecuteSubmissionAndWaitResponse) ProtoMessage()

func (*ExecuteSubmissionAndWaitResponse) ProtoReflect

func (*ExecuteSubmissionAndWaitResponse) Reset

func (*ExecuteSubmissionAndWaitResponse) String

type ExecuteSubmissionRequest

type ExecuteSubmissionRequest struct {

	// the prepared transaction
	// Typically this is the value of the `prepared_transaction` field in `PrepareSubmissionResponse`
	// obtained from calling `prepareSubmission`.
	// Required
	PreparedTransaction *PreparedTransaction `protobuf:"bytes,1,opt,name=prepared_transaction,json=preparedTransaction,proto3" json:"prepared_transaction,omitempty"`
	// The party(ies) signatures that authorize the prepared submission to be executed by this node.
	// Each party can provide one or more signatures..
	// and one or more parties can sign.
	// Note that currently, only single party submissions are supported.
	// Required
	PartySignatures *PartySignatures `protobuf:"bytes,2,opt,name=party_signatures,json=partySignatures,proto3" json:"party_signatures,omitempty"`
	// Specifies the deduplication period for the change ID (See PrepareSubmissionRequest).
	// If omitted, the participant will assume the configured maximum deduplication time.
	// Optional
	//
	// Types that are valid to be assigned to DeduplicationPeriod:
	//
	//	*ExecuteSubmissionRequest_DeduplicationDuration
	//	*ExecuteSubmissionRequest_DeduplicationOffset
	DeduplicationPeriod isExecuteSubmissionRequest_DeduplicationPeriod `protobuf_oneof:"deduplication_period"`
	// A unique identifier to distinguish completions for different submissions with the same change ID.
	// Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
	// with the same change ID.
	// Must be a valid LedgerString (as described in “value.proto“).
	//
	// Required
	SubmissionId string `protobuf:"bytes,5,opt,name=submission_id,json=submissionId,proto3" json:"submission_id,omitempty"`
	// See [PrepareSubmissionRequest.user_id]
	// Optional
	UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The hashing scheme version used when building the hash
	// Required
	HashingSchemeVersion HashingSchemeVersion `` /* 185-byte string literal not displayed */
	// If set will influence the chosen ledger effective time but will not result in a submission delay so any override
	// should be scheduled to executed within the window allowed by synchronizer.
	// Optional
	MinLedgerTime *MinLedgerTime `protobuf:"bytes,8,opt,name=min_ledger_time,json=minLedgerTime,proto3" json:"min_ledger_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteSubmissionRequest) Descriptor deprecated

func (*ExecuteSubmissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteSubmissionRequest.ProtoReflect.Descriptor instead.

func (*ExecuteSubmissionRequest) GetDeduplicationDuration

func (x *ExecuteSubmissionRequest) GetDeduplicationDuration() *durationpb.Duration

func (*ExecuteSubmissionRequest) GetDeduplicationOffset

func (x *ExecuteSubmissionRequest) GetDeduplicationOffset() int64

func (*ExecuteSubmissionRequest) GetDeduplicationPeriod

func (x *ExecuteSubmissionRequest) GetDeduplicationPeriod() isExecuteSubmissionRequest_DeduplicationPeriod

func (*ExecuteSubmissionRequest) GetHashingSchemeVersion

func (x *ExecuteSubmissionRequest) GetHashingSchemeVersion() HashingSchemeVersion

func (*ExecuteSubmissionRequest) GetMinLedgerTime

func (x *ExecuteSubmissionRequest) GetMinLedgerTime() *MinLedgerTime

func (*ExecuteSubmissionRequest) GetPartySignatures

func (x *ExecuteSubmissionRequest) GetPartySignatures() *PartySignatures

func (*ExecuteSubmissionRequest) GetPreparedTransaction

func (x *ExecuteSubmissionRequest) GetPreparedTransaction() *PreparedTransaction

func (*ExecuteSubmissionRequest) GetSubmissionId

func (x *ExecuteSubmissionRequest) GetSubmissionId() string

func (*ExecuteSubmissionRequest) GetUserId

func (x *ExecuteSubmissionRequest) GetUserId() string

func (*ExecuteSubmissionRequest) ProtoMessage

func (*ExecuteSubmissionRequest) ProtoMessage()

func (*ExecuteSubmissionRequest) ProtoReflect

func (x *ExecuteSubmissionRequest) ProtoReflect() protoreflect.Message

func (*ExecuteSubmissionRequest) Reset

func (x *ExecuteSubmissionRequest) Reset()

func (*ExecuteSubmissionRequest) String

func (x *ExecuteSubmissionRequest) String() string

type ExecuteSubmissionRequest_DeduplicationDuration

type ExecuteSubmissionRequest_DeduplicationDuration struct {
	// Specifies the length of the deduplication period.
	// It is interpreted relative to the local clock at some point during the submission's processing.
	// Must be non-negative. Must not exceed the maximum deduplication time.
	DeduplicationDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=deduplication_duration,json=deduplicationDuration,proto3,oneof"`
}

type ExecuteSubmissionRequest_DeduplicationOffset

type ExecuteSubmissionRequest_DeduplicationOffset struct {
	// Specifies the start of the deduplication period by a completion stream offset (exclusive).
	// Must be a valid absolute offset (positive integer).
	DeduplicationOffset int64 `protobuf:"varint,4,opt,name=deduplication_offset,json=deduplicationOffset,proto3,oneof"`
}

type ExecuteSubmissionResponse

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

func (*ExecuteSubmissionResponse) Descriptor deprecated

func (*ExecuteSubmissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteSubmissionResponse.ProtoReflect.Descriptor instead.

func (*ExecuteSubmissionResponse) ProtoMessage

func (*ExecuteSubmissionResponse) ProtoMessage()

func (*ExecuteSubmissionResponse) ProtoReflect

func (*ExecuteSubmissionResponse) Reset

func (x *ExecuteSubmissionResponse) Reset()

func (*ExecuteSubmissionResponse) String

func (x *ExecuteSubmissionResponse) String() string

type GetPreferredPackageVersionRequest

type GetPreferredPackageVersionRequest struct {

	// The parties whose participants' vetting state should be considered when resolving the preferred package.
	// Required
	Parties []string `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"`
	// The package-name for which the preferred package should be resolved.
	// Required
	PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	// The synchronizer whose vetting state should be used for resolving this query.
	// If not specified, the vetting states of all synchronizers to which the participant is connected are used.
	// Optional
	SynchronizerId string `protobuf:"bytes,3,opt,name=synchronizer_id,json=synchronizerId,proto3" json:"synchronizer_id,omitempty"`
	// The timestamp at which the package vetting validity should be computed
	// on the latest topology snapshot as seen by the participant.
	// If not provided, the participant's current clock time is used.
	// Optional
	VettingValidAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=vetting_valid_at,json=vettingValidAt,proto3" json:"vetting_valid_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPreferredPackageVersionRequest) Descriptor deprecated

func (*GetPreferredPackageVersionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPreferredPackageVersionRequest.ProtoReflect.Descriptor instead.

func (*GetPreferredPackageVersionRequest) GetPackageName

func (x *GetPreferredPackageVersionRequest) GetPackageName() string

func (*GetPreferredPackageVersionRequest) GetParties

func (x *GetPreferredPackageVersionRequest) GetParties() []string

func (*GetPreferredPackageVersionRequest) GetSynchronizerId

func (x *GetPreferredPackageVersionRequest) GetSynchronizerId() string

func (*GetPreferredPackageVersionRequest) GetVettingValidAt

func (*GetPreferredPackageVersionRequest) ProtoMessage

func (*GetPreferredPackageVersionRequest) ProtoMessage()

func (*GetPreferredPackageVersionRequest) ProtoReflect

func (*GetPreferredPackageVersionRequest) Reset

func (*GetPreferredPackageVersionRequest) String

type GetPreferredPackageVersionResponse

type GetPreferredPackageVersionResponse struct {

	// Not populated when no preferred package is found
	// Optional
	PackagePreference *PackagePreference `protobuf:"bytes,1,opt,name=package_preference,json=packagePreference,proto3" json:"package_preference,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPreferredPackageVersionResponse) Descriptor deprecated

func (*GetPreferredPackageVersionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPreferredPackageVersionResponse.ProtoReflect.Descriptor instead.

func (*GetPreferredPackageVersionResponse) GetPackagePreference

func (x *GetPreferredPackageVersionResponse) GetPackagePreference() *PackagePreference

func (*GetPreferredPackageVersionResponse) ProtoMessage

func (*GetPreferredPackageVersionResponse) ProtoMessage()

func (*GetPreferredPackageVersionResponse) ProtoReflect

func (*GetPreferredPackageVersionResponse) Reset

func (*GetPreferredPackageVersionResponse) String

type GetPreferredPackagesRequest

type GetPreferredPackagesRequest struct {

	// The package-name vetting requirements for which the preferred packages should be resolved.
	//
	// Generally it is enough to provide the requirements for the intended command's root package-names.
	// Additional package-name requirements can be provided when additional Daml transaction informees need to use
	// package dependencies of the command's root packages.
	//
	// Required
	PackageVettingRequirements []*PackageVettingRequirement `` /* 141-byte string literal not displayed */
	// The synchronizer whose vetting state should be used for resolving this query.
	// If not specified, the vetting states of all synchronizers to which the participant is connected are used.
	// Optional
	SynchronizerId string `protobuf:"bytes,2,opt,name=synchronizer_id,json=synchronizerId,proto3" json:"synchronizer_id,omitempty"`
	// The timestamp at which the package vetting validity should be computed
	// on the latest topology snapshot as seen by the participant.
	// If not provided, the participant's current clock time is used.
	// Optional
	VettingValidAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=vetting_valid_at,json=vettingValidAt,proto3" json:"vetting_valid_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPreferredPackagesRequest) Descriptor deprecated

func (*GetPreferredPackagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPreferredPackagesRequest.ProtoReflect.Descriptor instead.

func (*GetPreferredPackagesRequest) GetPackageVettingRequirements

func (x *GetPreferredPackagesRequest) GetPackageVettingRequirements() []*PackageVettingRequirement

func (*GetPreferredPackagesRequest) GetSynchronizerId

func (x *GetPreferredPackagesRequest) GetSynchronizerId() string

func (*GetPreferredPackagesRequest) GetVettingValidAt

func (x *GetPreferredPackagesRequest) GetVettingValidAt() *timestamppb.Timestamp

func (*GetPreferredPackagesRequest) ProtoMessage

func (*GetPreferredPackagesRequest) ProtoMessage()

func (*GetPreferredPackagesRequest) ProtoReflect

func (*GetPreferredPackagesRequest) Reset

func (x *GetPreferredPackagesRequest) Reset()

func (*GetPreferredPackagesRequest) String

func (x *GetPreferredPackagesRequest) String() string

type GetPreferredPackagesResponse

type GetPreferredPackagesResponse struct {

	// The package references of the preferred packages.
	// Must contain one package reference for each requested package-name.
	//
	// If you build command submissions whose content depends on the returned
	// preferred packages, then we recommend submitting the preferred package-ids
	// in the “package_id_selection_preference“ of the command submission to
	// avoid race conditions with concurrent changes of the on-ledger package vetting state.
	//
	// Required
	PackageReferences []*v2.PackageReference `protobuf:"bytes,1,rep,name=package_references,json=packageReferences,proto3" json:"package_references,omitempty"`
	// The synchronizer for which the package preferences are computed.
	// If the synchronizer_id was specified in the request, then it matches the request synchronizer_id.
	// Required
	SynchronizerId string `protobuf:"bytes,2,opt,name=synchronizer_id,json=synchronizerId,proto3" json:"synchronizer_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPreferredPackagesResponse) Descriptor deprecated

func (*GetPreferredPackagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPreferredPackagesResponse.ProtoReflect.Descriptor instead.

func (*GetPreferredPackagesResponse) GetPackageReferences

func (x *GetPreferredPackagesResponse) GetPackageReferences() []*v2.PackageReference

func (*GetPreferredPackagesResponse) GetSynchronizerId

func (x *GetPreferredPackagesResponse) GetSynchronizerId() string

func (*GetPreferredPackagesResponse) ProtoMessage

func (*GetPreferredPackagesResponse) ProtoMessage()

func (*GetPreferredPackagesResponse) ProtoReflect

func (*GetPreferredPackagesResponse) Reset

func (x *GetPreferredPackagesResponse) Reset()

func (*GetPreferredPackagesResponse) String

type GlobalKey

type GlobalKey struct {

	// The identifier uses the package-id reference format.
	TemplateId  *v2.Identifier `protobuf:"bytes,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
	PackageName string         `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	Key         *v2.Value      `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Hash        []byte         `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*GlobalKey) Descriptor deprecated

func (*GlobalKey) Descriptor() ([]byte, []int)

Deprecated: Use GlobalKey.ProtoReflect.Descriptor instead.

func (*GlobalKey) GetHash

func (x *GlobalKey) GetHash() []byte

func (*GlobalKey) GetKey

func (x *GlobalKey) GetKey() *v2.Value

func (*GlobalKey) GetPackageName

func (x *GlobalKey) GetPackageName() string

func (*GlobalKey) GetTemplateId

func (x *GlobalKey) GetTemplateId() *v2.Identifier

func (*GlobalKey) ProtoMessage

func (*GlobalKey) ProtoMessage()

func (*GlobalKey) ProtoReflect

func (x *GlobalKey) ProtoReflect() protoreflect.Message

func (*GlobalKey) Reset

func (x *GlobalKey) Reset()

func (*GlobalKey) String

func (x *GlobalKey) String() string

type HashingSchemeVersion

type HashingSchemeVersion int32

[docs-entry-start: HashingSchemeVersion] The hashing scheme version used when building the hash of the PreparedTransaction

const (
	HashingSchemeVersion_HASHING_SCHEME_VERSION_UNSPECIFIED HashingSchemeVersion = 0
	HashingSchemeVersion_HASHING_SCHEME_VERSION_V2          HashingSchemeVersion = 2
)

func (HashingSchemeVersion) Descriptor

func (HashingSchemeVersion) Enum

func (HashingSchemeVersion) EnumDescriptor deprecated

func (HashingSchemeVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use HashingSchemeVersion.Descriptor instead.

func (HashingSchemeVersion) Number

func (HashingSchemeVersion) String

func (x HashingSchemeVersion) String() string

func (HashingSchemeVersion) Type

type InteractiveSubmissionServiceClient

type InteractiveSubmissionServiceClient interface {
	// Requires `readAs` scope for the submitting party when LAPI User authorization is enabled
	PrepareSubmission(ctx context.Context, in *PrepareSubmissionRequest, opts ...grpc.CallOption) (*PrepareSubmissionResponse, error)
	// Execute a prepared submission _asynchronously_ on the ledger.
	// Requires a signature of the transaction from the submitting external party.
	ExecuteSubmission(ctx context.Context, in *ExecuteSubmissionRequest, opts ...grpc.CallOption) (*ExecuteSubmissionResponse, error)
	// Similar to ExecuteSubmission but _synchronously_ wait for the completion of the transaction
	// IMPORTANT: Relying on the response from this endpoint requires trusting the Participant Node to be honest.
	// A malicious node could make a successfully committed request appeared failed and vice versa
	ExecuteSubmissionAndWait(ctx context.Context, in *ExecuteSubmissionAndWaitRequest, opts ...grpc.CallOption) (*ExecuteSubmissionAndWaitResponse, error)
	// Similar to ExecuteSubmissionAndWait but additionally returns the transaction
	// IMPORTANT: Relying on the response from this endpoint requires trusting the Participant Node to be honest.
	// A malicious node could make a successfully committed request appear as failed and vice versa
	ExecuteSubmissionAndWaitForTransaction(ctx context.Context, in *ExecuteSubmissionAndWaitForTransactionRequest, opts ...grpc.CallOption) (*ExecuteSubmissionAndWaitForTransactionResponse, error)
	// A preferred package is the highest-versioned package for a provided package-name
	// that is vetted by all the participants hosting the provided parties.
	//
	// Ledger API clients should use this endpoint for constructing command submissions
	// that are compatible with the provided preferred package, by making informed decisions on:
	// - which are the compatible packages that can be used to create contracts
	// - which contract or exercise choice argument version can be used in the command
	// - which choices can be executed on a template or interface of a contract
	//
	// Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
	//
	// Provided for backwards compatibility, it will be removed in the Canton version 3.4.0
	GetPreferredPackageVersion(ctx context.Context, in *GetPreferredPackageVersionRequest, opts ...grpc.CallOption) (*GetPreferredPackageVersionResponse, error)
	// Compute the preferred packages for the vetting requirements in the request.
	// A preferred package is the highest-versioned package for a provided package-name
	// that is vetted by all the participants hosting the provided parties.
	//
	// Ledger API clients should use this endpoint for constructing command submissions
	// that are compatible with the provided preferred packages, by making informed decisions on:
	// - which are the compatible packages that can be used to create contracts
	// - which contract or exercise choice argument version can be used in the command
	// - which choices can be executed on a template or interface of a contract
	//
	// If the package preferences could not be computed due to no selection satisfying the requirements,
	// a `FAILED_PRECONDITION` error will be returned.
	//
	// Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
	//
	// Experimental API: this endpoint is not guaranteed to provide backwards compatibility in future releases
	GetPreferredPackages(ctx context.Context, in *GetPreferredPackagesRequest, opts ...grpc.CallOption) (*GetPreferredPackagesResponse, error)
}

InteractiveSubmissionServiceClient is the client API for InteractiveSubmissionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Service allowing interactive construction of command submissions

The prepare and execute endpoints allow to submit commands in 2-steps:

1. prepare transaction from commands, 2. submit the prepared transaction

This gives callers the ability to sign the daml transaction with their own signing keys

type InteractiveSubmissionServiceServer

type InteractiveSubmissionServiceServer interface {
	// Requires `readAs` scope for the submitting party when LAPI User authorization is enabled
	PrepareSubmission(context.Context, *PrepareSubmissionRequest) (*PrepareSubmissionResponse, error)
	// Execute a prepared submission _asynchronously_ on the ledger.
	// Requires a signature of the transaction from the submitting external party.
	ExecuteSubmission(context.Context, *ExecuteSubmissionRequest) (*ExecuteSubmissionResponse, error)
	// Similar to ExecuteSubmission but _synchronously_ wait for the completion of the transaction
	// IMPORTANT: Relying on the response from this endpoint requires trusting the Participant Node to be honest.
	// A malicious node could make a successfully committed request appeared failed and vice versa
	ExecuteSubmissionAndWait(context.Context, *ExecuteSubmissionAndWaitRequest) (*ExecuteSubmissionAndWaitResponse, error)
	// Similar to ExecuteSubmissionAndWait but additionally returns the transaction
	// IMPORTANT: Relying on the response from this endpoint requires trusting the Participant Node to be honest.
	// A malicious node could make a successfully committed request appear as failed and vice versa
	ExecuteSubmissionAndWaitForTransaction(context.Context, *ExecuteSubmissionAndWaitForTransactionRequest) (*ExecuteSubmissionAndWaitForTransactionResponse, error)
	// A preferred package is the highest-versioned package for a provided package-name
	// that is vetted by all the participants hosting the provided parties.
	//
	// Ledger API clients should use this endpoint for constructing command submissions
	// that are compatible with the provided preferred package, by making informed decisions on:
	// - which are the compatible packages that can be used to create contracts
	// - which contract or exercise choice argument version can be used in the command
	// - which choices can be executed on a template or interface of a contract
	//
	// Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
	//
	// Provided for backwards compatibility, it will be removed in the Canton version 3.4.0
	GetPreferredPackageVersion(context.Context, *GetPreferredPackageVersionRequest) (*GetPreferredPackageVersionResponse, error)
	// Compute the preferred packages for the vetting requirements in the request.
	// A preferred package is the highest-versioned package for a provided package-name
	// that is vetted by all the participants hosting the provided parties.
	//
	// Ledger API clients should use this endpoint for constructing command submissions
	// that are compatible with the provided preferred packages, by making informed decisions on:
	// - which are the compatible packages that can be used to create contracts
	// - which contract or exercise choice argument version can be used in the command
	// - which choices can be executed on a template or interface of a contract
	//
	// If the package preferences could not be computed due to no selection satisfying the requirements,
	// a `FAILED_PRECONDITION` error will be returned.
	//
	// Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
	//
	// Experimental API: this endpoint is not guaranteed to provide backwards compatibility in future releases
	GetPreferredPackages(context.Context, *GetPreferredPackagesRequest) (*GetPreferredPackagesResponse, error)
	// contains filtered or unexported methods
}

InteractiveSubmissionServiceServer is the server API for InteractiveSubmissionService service. All implementations must embed UnimplementedInteractiveSubmissionServiceServer for forward compatibility.

Service allowing interactive construction of command submissions

The prepare and execute endpoints allow to submit commands in 2-steps:

1. prepare transaction from commands, 2. submit the prepared transaction

This gives callers the ability to sign the daml transaction with their own signing keys

type Metadata

type Metadata struct {
	SubmitterInfo   *Metadata_SubmitterInfo   `protobuf:"bytes,2,opt,name=submitter_info,json=submitterInfo,proto3" json:"submitter_info,omitempty"`
	SynchronizerId  string                    `protobuf:"bytes,3,opt,name=synchronizer_id,json=synchronizerId,proto3" json:"synchronizer_id,omitempty"`
	MediatorGroup   uint32                    `protobuf:"varint,4,opt,name=mediator_group,json=mediatorGroup,proto3" json:"mediator_group,omitempty"`
	TransactionUuid string                    `protobuf:"bytes,5,opt,name=transaction_uuid,json=transactionUuid,proto3" json:"transaction_uuid,omitempty"`
	PreparationTime uint64                    `protobuf:"varint,6,opt,name=preparation_time,json=preparationTime,proto3" json:"preparation_time,omitempty"`
	InputContracts  []*Metadata_InputContract `protobuf:"bytes,7,rep,name=input_contracts,json=inputContracts,proto3" json:"input_contracts,omitempty"`
	// Where ledger time constraints are imposed during the execution of the contract they will be populated
	// in the fields below. These are optional because if the transaction does NOT depend on time, these values
	// do not need to be set.
	// The final ledger effective time used will be chosen when the command is submitted through the [execute] RPC.
	// If the ledger effective time is outside of any populated min/max bounds then a different transaction
	// can result, that will cause a confirmation message rejection.
	MinLedgerEffectiveTime *uint64 `` /* 138-byte string literal not displayed */
	MaxLedgerEffectiveTime *uint64 `` /* 139-byte string literal not displayed */
	// Contextual information needed to process the transaction but not signed, either because it's already indirectly
	// signed by signing the transaction, or because it doesn't impact the ledger state
	GlobalKeyMapping []*Metadata_GlobalKeyMappingEntry `protobuf:"bytes,8,rep,name=global_key_mapping,json=globalKeyMapping,proto3" json:"global_key_mapping,omitempty"`
	// Maximum timestamp at which the transaction can be recorded onto the ledger via the synchronizer `synchronizer_id`.
	// If submitted after it will be rejected even if otherwise valid, in which case it needs to be prepared and signed again
	// with a new valid max_record_time.
	// Unsigned in 3.3 to avoid a breaking protocol change
	// Will be signed in 3.4+
	// Set max_record_time in the PreparedTransactionRequest to get this field set accordingly
	MaxRecordTime *uint64 `protobuf:"varint,11,opt,name=max_record_time,json=maxRecordTime,proto3,oneof" json:"max_record_time,omitempty"`
	// contains filtered or unexported fields
}

Transaction Metadata Refer to the hashing documentation for information on how it should be hashed.

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetGlobalKeyMapping

func (x *Metadata) GetGlobalKeyMapping() []*Metadata_GlobalKeyMappingEntry

func (*Metadata) GetInputContracts

func (x *Metadata) GetInputContracts() []*Metadata_InputContract

func (*Metadata) GetMaxLedgerEffectiveTime

func (x *Metadata) GetMaxLedgerEffectiveTime() uint64

func (*Metadata) GetMaxRecordTime

func (x *Metadata) GetMaxRecordTime() uint64

func (*Metadata) GetMediatorGroup

func (x *Metadata) GetMediatorGroup() uint32

func (*Metadata) GetMinLedgerEffectiveTime

func (x *Metadata) GetMinLedgerEffectiveTime() uint64

func (*Metadata) GetPreparationTime

func (x *Metadata) GetPreparationTime() uint64

func (*Metadata) GetSubmitterInfo

func (x *Metadata) GetSubmitterInfo() *Metadata_SubmitterInfo

func (*Metadata) GetSynchronizerId

func (x *Metadata) GetSynchronizerId() string

func (*Metadata) GetTransactionUuid

func (x *Metadata) GetTransactionUuid() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Metadata_GlobalKeyMappingEntry

type Metadata_GlobalKeyMappingEntry struct {
	Key   *GlobalKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *v2.Value  `protobuf:"bytes,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata_GlobalKeyMappingEntry) Descriptor deprecated

func (*Metadata_GlobalKeyMappingEntry) Descriptor() ([]byte, []int)

Deprecated: Use Metadata_GlobalKeyMappingEntry.ProtoReflect.Descriptor instead.

func (*Metadata_GlobalKeyMappingEntry) GetKey

func (*Metadata_GlobalKeyMappingEntry) GetValue

func (x *Metadata_GlobalKeyMappingEntry) GetValue() *v2.Value

func (*Metadata_GlobalKeyMappingEntry) ProtoMessage

func (*Metadata_GlobalKeyMappingEntry) ProtoMessage()

func (*Metadata_GlobalKeyMappingEntry) ProtoReflect

func (*Metadata_GlobalKeyMappingEntry) Reset

func (x *Metadata_GlobalKeyMappingEntry) Reset()

func (*Metadata_GlobalKeyMappingEntry) String

type Metadata_InputContract

type Metadata_InputContract struct {

	// Types that are valid to be assigned to Contract:
	//
	//	*Metadata_InputContract_V1
	Contract  isMetadata_InputContract_Contract `protobuf_oneof:"contract"`
	CreatedAt uint64                            `protobuf:"varint,1000,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	EventBlob []byte                            `protobuf:"bytes,1002,opt,name=event_blob,json=eventBlob,proto3" json:"event_blob,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata_InputContract) Descriptor deprecated

func (*Metadata_InputContract) Descriptor() ([]byte, []int)

Deprecated: Use Metadata_InputContract.ProtoReflect.Descriptor instead.

func (*Metadata_InputContract) GetContract

func (x *Metadata_InputContract) GetContract() isMetadata_InputContract_Contract

func (*Metadata_InputContract) GetCreatedAt

func (x *Metadata_InputContract) GetCreatedAt() uint64

func (*Metadata_InputContract) GetEventBlob

func (x *Metadata_InputContract) GetEventBlob() []byte

func (*Metadata_InputContract) GetV1

func (x *Metadata_InputContract) GetV1() *v1.Create

func (*Metadata_InputContract) ProtoMessage

func (*Metadata_InputContract) ProtoMessage()

func (*Metadata_InputContract) ProtoReflect

func (x *Metadata_InputContract) ProtoReflect() protoreflect.Message

func (*Metadata_InputContract) Reset

func (x *Metadata_InputContract) Reset()

func (*Metadata_InputContract) String

func (x *Metadata_InputContract) String() string

type Metadata_InputContract_V1

type Metadata_InputContract_V1 struct {
	// When new versions will be added, they will show here
	V1 *v1.Create `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type Metadata_SubmitterInfo

type Metadata_SubmitterInfo struct {
	ActAs     []string `protobuf:"bytes,1,rep,name=act_as,json=actAs,proto3" json:"act_as,omitempty"`
	CommandId string   `protobuf:"bytes,2,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata_SubmitterInfo) Descriptor deprecated

func (*Metadata_SubmitterInfo) Descriptor() ([]byte, []int)

Deprecated: Use Metadata_SubmitterInfo.ProtoReflect.Descriptor instead.

func (*Metadata_SubmitterInfo) GetActAs

func (x *Metadata_SubmitterInfo) GetActAs() []string

func (*Metadata_SubmitterInfo) GetCommandId

func (x *Metadata_SubmitterInfo) GetCommandId() string

func (*Metadata_SubmitterInfo) ProtoMessage

func (*Metadata_SubmitterInfo) ProtoMessage()

func (*Metadata_SubmitterInfo) ProtoReflect

func (x *Metadata_SubmitterInfo) ProtoReflect() protoreflect.Message

func (*Metadata_SubmitterInfo) Reset

func (x *Metadata_SubmitterInfo) Reset()

func (*Metadata_SubmitterInfo) String

func (x *Metadata_SubmitterInfo) String() string

type MinLedgerTime

type MinLedgerTime struct {

	// Types that are valid to be assigned to Time:
	//
	//	*MinLedgerTime_MinLedgerTimeAbs
	//	*MinLedgerTime_MinLedgerTimeRel
	Time isMinLedgerTime_Time `protobuf_oneof:"time"`
	// contains filtered or unexported fields
}

func (*MinLedgerTime) Descriptor deprecated

func (*MinLedgerTime) Descriptor() ([]byte, []int)

Deprecated: Use MinLedgerTime.ProtoReflect.Descriptor instead.

func (*MinLedgerTime) GetMinLedgerTimeAbs

func (x *MinLedgerTime) GetMinLedgerTimeAbs() *timestamppb.Timestamp

func (*MinLedgerTime) GetMinLedgerTimeRel

func (x *MinLedgerTime) GetMinLedgerTimeRel() *durationpb.Duration

func (*MinLedgerTime) GetTime

func (x *MinLedgerTime) GetTime() isMinLedgerTime_Time

func (*MinLedgerTime) ProtoMessage

func (*MinLedgerTime) ProtoMessage()

func (*MinLedgerTime) ProtoReflect

func (x *MinLedgerTime) ProtoReflect() protoreflect.Message

func (*MinLedgerTime) Reset

func (x *MinLedgerTime) Reset()

func (*MinLedgerTime) String

func (x *MinLedgerTime) String() string

type MinLedgerTime_MinLedgerTimeAbs

type MinLedgerTime_MinLedgerTimeAbs struct {
	// Lower bound for the ledger time assigned to the resulting transaction.
	// The ledger time of a transaction is assigned as part of command interpretation.
	// Important note: for interactive submissions, if the transaction depends on time, it **must** be signed
	// and submitted within a time window around the ledger time assigned to the transaction during the prepare method.
	// The time delta around that ledger time is a configuration of the ledger, usually short, around 1 minute.
	// If however the transaction does not depend on time, the available time window to sign and submit the transaction is bound
	// by the preparation time, which is also assigned in the "prepare" step (this request),
	// but can be configured with a much larger skew, allowing for more time to sign the request (in the order of hours).
	// Must not be set at the same time as min_ledger_time_rel.
	// Optional
	MinLedgerTimeAbs *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=min_ledger_time_abs,json=minLedgerTimeAbs,proto3,oneof"`
}

type MinLedgerTime_MinLedgerTimeRel

type MinLedgerTime_MinLedgerTimeRel struct {
	// Same as min_ledger_time_abs, but specified as a duration, starting from the time this request is received by the server.
	// Must not be set at the same time as min_ledger_time_abs.
	// Optional
	MinLedgerTimeRel *durationpb.Duration `protobuf:"bytes,2,opt,name=min_ledger_time_rel,json=minLedgerTimeRel,proto3,oneof"`
}

type PackagePreference

type PackagePreference struct {

	// The package reference of the preferred package.
	// Required
	PackageReference *v2.PackageReference `protobuf:"bytes,1,opt,name=package_reference,json=packageReference,proto3" json:"package_reference,omitempty"`
	// The synchronizer for which the preferred package was computed.
	// If the synchronizer_id was specified in the request, then it matches the request synchronizer_id.
	// Required
	SynchronizerId string `protobuf:"bytes,2,opt,name=synchronizer_id,json=synchronizerId,proto3" json:"synchronizer_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PackagePreference) Descriptor deprecated

func (*PackagePreference) Descriptor() ([]byte, []int)

Deprecated: Use PackagePreference.ProtoReflect.Descriptor instead.

func (*PackagePreference) GetPackageReference

func (x *PackagePreference) GetPackageReference() *v2.PackageReference

func (*PackagePreference) GetSynchronizerId

func (x *PackagePreference) GetSynchronizerId() string

func (*PackagePreference) ProtoMessage

func (*PackagePreference) ProtoMessage()

func (*PackagePreference) ProtoReflect

func (x *PackagePreference) ProtoReflect() protoreflect.Message

func (*PackagePreference) Reset

func (x *PackagePreference) Reset()

func (*PackagePreference) String

func (x *PackagePreference) String() string

type PackageVettingRequirement

type PackageVettingRequirement struct {

	// The parties whose participants' vetting state should be considered when resolving the preferred package.
	// Required
	Parties []string `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"`
	// The package-name for which the preferred package should be resolved.
	// Required
	PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	// contains filtered or unexported fields
}

Defines a package-name for which the commonly vetted package with the highest version must be found.

func (*PackageVettingRequirement) Descriptor deprecated

func (*PackageVettingRequirement) Descriptor() ([]byte, []int)

Deprecated: Use PackageVettingRequirement.ProtoReflect.Descriptor instead.

func (*PackageVettingRequirement) GetPackageName

func (x *PackageVettingRequirement) GetPackageName() string

func (*PackageVettingRequirement) GetParties

func (x *PackageVettingRequirement) GetParties() []string

func (*PackageVettingRequirement) ProtoMessage

func (*PackageVettingRequirement) ProtoMessage()

func (*PackageVettingRequirement) ProtoReflect

func (*PackageVettingRequirement) Reset

func (x *PackageVettingRequirement) Reset()

func (*PackageVettingRequirement) String

func (x *PackageVettingRequirement) String() string

type PartySignatures

type PartySignatures struct {

	// Additional signatures provided by all individual parties
	// Required
	Signatures []*SinglePartySignatures `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

Additional signatures provided by the submitting parties

func (*PartySignatures) Descriptor deprecated

func (*PartySignatures) Descriptor() ([]byte, []int)

Deprecated: Use PartySignatures.ProtoReflect.Descriptor instead.

func (*PartySignatures) GetSignatures

func (x *PartySignatures) GetSignatures() []*SinglePartySignatures

func (*PartySignatures) ProtoMessage

func (*PartySignatures) ProtoMessage()

func (*PartySignatures) ProtoReflect

func (x *PartySignatures) ProtoReflect() protoreflect.Message

func (*PartySignatures) Reset

func (x *PartySignatures) Reset()

func (*PartySignatures) String

func (x *PartySignatures) String() string

type PrepareSubmissionRequest

type PrepareSubmissionRequest struct {

	// Uniquely identifies the participant user that prepares the transaction.
	// Must be a valid UserIdString (as described in “value.proto“).
	// Required unless authentication is used with a user token.
	// In that case, the token's user-id will be used for the request's user_id.
	// Optional
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Uniquely identifies the command.
	// The triple (user_id, act_as, command_id) constitutes the change ID for the intended ledger change,
	// where act_as is interpreted as a set of party names.
	// The change ID can be used for matching the intended ledger changes with all their completions.
	// Must be a valid LedgerString (as described in “value.proto“).
	// Required
	CommandId string `protobuf:"bytes,2,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	// Individual elements of this atomic command. Must be non-empty.
	// Limitation: Only single command transaction are currently supported by the API.
	// The field is marked as repeated in preparation for future support of multiple commands.
	// Required
	Commands []*v2.Command `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
	// Optional
	MinLedgerTime *MinLedgerTime `protobuf:"bytes,4,opt,name=min_ledger_time,json=minLedgerTime,proto3" json:"min_ledger_time,omitempty"`
	// Maximum timestamp at which the transaction can be recorded onto the ledger via the synchronizer specified in the `PrepareSubmissionResponse`.
	// If submitted after it will be rejected even if otherwise valid, in which case it needs to be prepared and signed again
	// with a new valid max_record_time.
	// Use this to limit the time-to-life of a prepared transaction,
	// which is useful to know when it can definitely not be accepted
	// anymore and resorting to preparing another transaction for the same
	// intent is safe again.
	// Optional
	MaxRecordTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=max_record_time,json=maxRecordTime,proto3,oneof" json:"max_record_time,omitempty"`
	// Set of parties on whose behalf the command should be executed, if submitted.
	// If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
	// to **read** (not act) on behalf of each of the given parties. This is because this RPC merely prepares a transaction
	// and does not execute it. Therefore read authorization is sufficient even for actAs parties.
	// Note: This may change, and more specific authorization scope may be introduced in the future.
	// Each element must be a valid PartyIdString (as described in “value.proto“).
	// Required, must be non-empty.
	ActAs []string `protobuf:"bytes,5,rep,name=act_as,json=actAs,proto3" json:"act_as,omitempty"`
	// Set of parties on whose behalf (in addition to all parties listed in “act_as“) contracts can be retrieved.
	// This affects Daml operations such as “fetch“, “fetchByKey“, “lookupByKey“, “exercise“, and “exerciseByKey“.
	// Note: A command can only use contracts that are visible to at least
	// one of the parties in “act_as“ or “read_as“. This visibility check is independent from the Daml authorization
	// rules for fetch operations.
	// If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
	// to read contract data on behalf of each of the given parties.
	// Optional
	ReadAs []string `protobuf:"bytes,6,rep,name=read_as,json=readAs,proto3" json:"read_as,omitempty"`
	// Additional contracts used to resolve contract & contract key lookups.
	// Optional
	DisclosedContracts []*v2.DisclosedContract `protobuf:"bytes,7,rep,name=disclosed_contracts,json=disclosedContracts,proto3" json:"disclosed_contracts,omitempty"`
	// Must be a valid synchronizer id
	// If not set, a suitable synchronizer that this node is connected to will be chosen
	// Optional
	SynchronizerId string `protobuf:"bytes,8,opt,name=synchronizer_id,json=synchronizerId,proto3" json:"synchronizer_id,omitempty"`
	// The package-id selection preference of the client for resolving
	// package names and interface instances in command submission and interpretation
	// Optional
	PackageIdSelectionPreference []string `` /* 149-byte string literal not displayed */
	// When true, the response will contain additional details on how the transaction was encoded and hashed
	// This can be useful for troubleshooting of hash mismatches. Should only be used for debugging.
	// Optional, default to false
	VerboseHashing bool `protobuf:"varint,10,opt,name=verbose_hashing,json=verboseHashing,proto3" json:"verbose_hashing,omitempty"`
	// Fetches the contract keys into the caches to speed up the command processing.
	// Should only contain contract keys that are expected to be resolved during interpretation of the commands.
	// Keys of disclosed contracts do not need prefetching.
	//
	// Optional
	PrefetchContractKeys []*v2.PrefetchContractKey `protobuf:"bytes,15,rep,name=prefetch_contract_keys,json=prefetchContractKeys,proto3" json:"prefetch_contract_keys,omitempty"`
	// Hints to improve the accuracy of traffic cost estimation.
	// The estimation logic assumes that this node will be used for the execution of the transaction
	// If another node is used instead, the estimation may be less precise.
	// Request amplification is not accounted for in the estimation: each amplified request will
	// result in the cost of the confirmation request to be charged additionally.
	//
	// Optional - Traffic cost estimation is enabled by default if this field is not set
	// To turn off cost estimation, set the CostEstimationHints#disabled field to true
	EstimateTrafficCost *CostEstimationHints `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PrepareSubmissionRequest) Descriptor deprecated

func (*PrepareSubmissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use PrepareSubmissionRequest.ProtoReflect.Descriptor instead.

func (*PrepareSubmissionRequest) GetActAs

func (x *PrepareSubmissionRequest) GetActAs() []string

func (*PrepareSubmissionRequest) GetCommandId

func (x *PrepareSubmissionRequest) GetCommandId() string

func (*PrepareSubmissionRequest) GetCommands

func (x *PrepareSubmissionRequest) GetCommands() []*v2.Command

func (*PrepareSubmissionRequest) GetDisclosedContracts

func (x *PrepareSubmissionRequest) GetDisclosedContracts() []*v2.DisclosedContract

func (*PrepareSubmissionRequest) GetEstimateTrafficCost

func (x *PrepareSubmissionRequest) GetEstimateTrafficCost() *CostEstimationHints

func (*PrepareSubmissionRequest) GetMaxRecordTime

func (x *PrepareSubmissionRequest) GetMaxRecordTime() *timestamppb.Timestamp

func (*PrepareSubmissionRequest) GetMinLedgerTime

func (x *PrepareSubmissionRequest) GetMinLedgerTime() *MinLedgerTime

func (*PrepareSubmissionRequest) GetPackageIdSelectionPreference

func (x *PrepareSubmissionRequest) GetPackageIdSelectionPreference() []string

func (*PrepareSubmissionRequest) GetPrefetchContractKeys

func (x *PrepareSubmissionRequest) GetPrefetchContractKeys() []*v2.PrefetchContractKey

func (*PrepareSubmissionRequest) GetReadAs

func (x *PrepareSubmissionRequest) GetReadAs() []string

func (*PrepareSubmissionRequest) GetSynchronizerId

func (x *PrepareSubmissionRequest) GetSynchronizerId() string

func (*PrepareSubmissionRequest) GetUserId

func (x *PrepareSubmissionRequest) GetUserId() string

func (*PrepareSubmissionRequest) GetVerboseHashing

func (x *PrepareSubmissionRequest) GetVerboseHashing() bool

func (*PrepareSubmissionRequest) ProtoMessage

func (*PrepareSubmissionRequest) ProtoMessage()

func (*PrepareSubmissionRequest) ProtoReflect

func (x *PrepareSubmissionRequest) ProtoReflect() protoreflect.Message

func (*PrepareSubmissionRequest) Reset

func (x *PrepareSubmissionRequest) Reset()

func (*PrepareSubmissionRequest) String

func (x *PrepareSubmissionRequest) String() string

type PrepareSubmissionResponse

type PrepareSubmissionResponse struct {

	// The interpreted transaction, it represents the ledger changes necessary to execute the commands specified in the request.
	// Clients MUST display the content of the transaction to the user for them to validate before signing the hash if the preparing participant is not trusted.
	PreparedTransaction *PreparedTransaction `protobuf:"bytes,1,opt,name=prepared_transaction,json=preparedTransaction,proto3" json:"prepared_transaction,omitempty"`
	// Hash of the transaction, this is what needs to be signed by the party to authorize the transaction.
	// Only provided for convenience, clients MUST recompute the hash from the raw transaction if the preparing participant is not trusted.
	// May be removed in future versions
	PreparedTransactionHash []byte `` /* 132-byte string literal not displayed */
	// The hashing scheme version used when building the hash
	HashingSchemeVersion HashingSchemeVersion `` /* 185-byte string literal not displayed */
	// Optional additional details on how the transaction was encoded and hashed. Only set if verbose_hashing = true in the request
	// Note that there are no guarantees on the stability of the format or content of this field.
	// Its content should NOT be parsed and should only be used for troubleshooting purposes.
	HashingDetails *string `protobuf:"bytes,4,opt,name=hashing_details,json=hashingDetails,proto3,oneof" json:"hashing_details,omitempty"`
	// Traffic cost estimation of the prepared transaction
	// Optional
	CostEstimation *CostEstimation `protobuf:"bytes,5,opt,name=cost_estimation,json=costEstimation,proto3,oneof" json:"cost_estimation,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareSubmissionResponse) Descriptor deprecated

func (*PrepareSubmissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use PrepareSubmissionResponse.ProtoReflect.Descriptor instead.

func (*PrepareSubmissionResponse) GetCostEstimation

func (x *PrepareSubmissionResponse) GetCostEstimation() *CostEstimation

func (*PrepareSubmissionResponse) GetHashingDetails

func (x *PrepareSubmissionResponse) GetHashingDetails() string

func (*PrepareSubmissionResponse) GetHashingSchemeVersion

func (x *PrepareSubmissionResponse) GetHashingSchemeVersion() HashingSchemeVersion

func (*PrepareSubmissionResponse) GetPreparedTransaction

func (x *PrepareSubmissionResponse) GetPreparedTransaction() *PreparedTransaction

func (*PrepareSubmissionResponse) GetPreparedTransactionHash

func (x *PrepareSubmissionResponse) GetPreparedTransactionHash() []byte

func (*PrepareSubmissionResponse) ProtoMessage

func (*PrepareSubmissionResponse) ProtoMessage()

func (*PrepareSubmissionResponse) ProtoReflect

func (*PrepareSubmissionResponse) Reset

func (x *PrepareSubmissionResponse) Reset()

func (*PrepareSubmissionResponse) String

func (x *PrepareSubmissionResponse) String() string

type PreparedTransaction

type PreparedTransaction struct {

	// Daml Transaction representing the ledger effect if executed. See below
	Transaction *DamlTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// Metadata context necessary to execute the transaction
	Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

* Prepared Transaction Message

func (*PreparedTransaction) Descriptor deprecated

func (*PreparedTransaction) Descriptor() ([]byte, []int)

Deprecated: Use PreparedTransaction.ProtoReflect.Descriptor instead.

func (*PreparedTransaction) GetMetadata

func (x *PreparedTransaction) GetMetadata() *Metadata

func (*PreparedTransaction) GetTransaction

func (x *PreparedTransaction) GetTransaction() *DamlTransaction

func (*PreparedTransaction) ProtoMessage

func (*PreparedTransaction) ProtoMessage()

func (*PreparedTransaction) ProtoReflect

func (x *PreparedTransaction) ProtoReflect() protoreflect.Message

func (*PreparedTransaction) Reset

func (x *PreparedTransaction) Reset()

func (*PreparedTransaction) String

func (x *PreparedTransaction) String() string

type SinglePartySignatures

type SinglePartySignatures struct {

	// Submitting party
	// Required
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// Signatures
	// Required
	Signatures []*v2.Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

Signatures provided by a single party

func (*SinglePartySignatures) Descriptor deprecated

func (*SinglePartySignatures) Descriptor() ([]byte, []int)

Deprecated: Use SinglePartySignatures.ProtoReflect.Descriptor instead.

func (*SinglePartySignatures) GetParty

func (x *SinglePartySignatures) GetParty() string

func (*SinglePartySignatures) GetSignatures

func (x *SinglePartySignatures) GetSignatures() []*v2.Signature

func (*SinglePartySignatures) ProtoMessage

func (*SinglePartySignatures) ProtoMessage()

func (*SinglePartySignatures) ProtoReflect

func (x *SinglePartySignatures) ProtoReflect() protoreflect.Message

func (*SinglePartySignatures) Reset

func (x *SinglePartySignatures) Reset()

func (*SinglePartySignatures) String

func (x *SinglePartySignatures) String() string

type UnimplementedInteractiveSubmissionServiceServer

type UnimplementedInteractiveSubmissionServiceServer struct{}

UnimplementedInteractiveSubmissionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedInteractiveSubmissionServiceServer) ExecuteSubmission

func (UnimplementedInteractiveSubmissionServiceServer) GetPreferredPackages

func (UnimplementedInteractiveSubmissionServiceServer) PrepareSubmission

type UnsafeInteractiveSubmissionServiceServer

type UnsafeInteractiveSubmissionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeInteractiveSubmissionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InteractiveSubmissionServiceServer will result in compilation errors.

Directories

Path Synopsis
transaction
v1

Jump to

Keyboard shortcuts

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