diff --git a/go/gen/flowctl/v1/common.pb.go b/go/gen/flowctl/v1/common.pb.go index 2ebb527..8aad6ed 100644 --- a/go/gen/flowctl/v1/common.pb.go +++ b/go/gen/flowctl/v1/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: flowctl/v1/common.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/consumer.pb.go b/go/gen/flowctl/v1/consumer.pb.go index 26034ad..f2feb0d 100644 --- a/go/gen/flowctl/v1/consumer.pb.go +++ b/go/gen/flowctl/v1/consumer.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: flowctl/v1/consumer.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/consumer_grpc.pb.go b/go/gen/flowctl/v1/consumer_grpc.pb.go index 7924b15..6cd6910 100644 --- a/go/gen/flowctl/v1/consumer_grpc.pb.go +++ b/go/gen/flowctl/v1/consumer_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: flowctl/v1/consumer.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/control_plane.pb.go b/go/gen/flowctl/v1/control_plane.pb.go index 7952ff4..1144010 100644 --- a/go/gen/flowctl/v1/control_plane.pb.go +++ b/go/gen/flowctl/v1/control_plane.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: flowctl/v1/control_plane.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/control_plane_grpc.pb.go b/go/gen/flowctl/v1/control_plane_grpc.pb.go index fffa822..11c1686 100644 --- a/go/gen/flowctl/v1/control_plane_grpc.pb.go +++ b/go/gen/flowctl/v1/control_plane_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: flowctl/v1/control_plane.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/processor.pb.go b/go/gen/flowctl/v1/processor.pb.go index 9f4d690..19711dd 100644 --- a/go/gen/flowctl/v1/processor.pb.go +++ b/go/gen/flowctl/v1/processor.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: flowctl/v1/processor.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/processor_grpc.pb.go b/go/gen/flowctl/v1/processor_grpc.pb.go index df4a569..883132e 100644 --- a/go/gen/flowctl/v1/processor_grpc.pb.go +++ b/go/gen/flowctl/v1/processor_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: flowctl/v1/processor.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/source.pb.go b/go/gen/flowctl/v1/source.pb.go index 25d11f0..ca2c85a 100644 --- a/go/gen/flowctl/v1/source.pb.go +++ b/go/gen/flowctl/v1/source.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: flowctl/v1/source.proto package flowctlv1 diff --git a/go/gen/flowctl/v1/source_grpc.pb.go b/go/gen/flowctl/v1/source_grpc.pb.go index 9adf81e..64e4120 100644 --- a/go/gen/flowctl/v1/source_grpc.pb.go +++ b/go/gen/flowctl/v1/source_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: flowctl/v1/source.proto package flowctlv1 diff --git a/go/gen/stellar/v1/account_balances.pb.go b/go/gen/stellar/v1/account_balances.pb.go index c1cb197..379f404 100644 --- a/go/gen/stellar/v1/account_balances.pb.go +++ b/go/gen/stellar/v1/account_balances.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: stellar/v1/account_balances.proto package stellarv1 diff --git a/go/gen/stellar/v1/account_balances_grpc.pb.go b/go/gen/stellar/v1/account_balances_grpc.pb.go index 5c7eb8c..906998f 100644 --- a/go/gen/stellar/v1/account_balances_grpc.pb.go +++ b/go/gen/stellar/v1/account_balances_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: stellar/v1/account_balances.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_data.pb.go b/go/gen/stellar/v1/contract_data.pb.go index 77c39ab..9884672 100644 --- a/go/gen/stellar/v1/contract_data.pb.go +++ b/go/gen/stellar/v1/contract_data.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: stellar/v1/contract_data.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_data_grpc.pb.go b/go/gen/stellar/v1/contract_data_grpc.pb.go index a310f6a..629bd6a 100644 --- a/go/gen/stellar/v1/contract_data_grpc.pb.go +++ b/go/gen/stellar/v1/contract_data_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: stellar/v1/contract_data.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_events.pb.go b/go/gen/stellar/v1/contract_events.pb.go index 1f3b442..a09cc9d 100644 --- a/go/gen/stellar/v1/contract_events.pb.go +++ b/go/gen/stellar/v1/contract_events.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: stellar/v1/contract_events.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_events_grpc.pb.go b/go/gen/stellar/v1/contract_events_grpc.pb.go index 32f03d0..c2fd1c2 100644 --- a/go/gen/stellar/v1/contract_events_grpc.pb.go +++ b/go/gen/stellar/v1/contract_events_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: stellar/v1/contract_events.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_invocation.pb.go b/go/gen/stellar/v1/contract_invocation.pb.go new file mode 100644 index 0000000..e21d473 --- /dev/null +++ b/go/gen/stellar/v1/contract_invocation.pb.go @@ -0,0 +1,679 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.8 +// protoc v6.31.1 +// source: stellar/v1/contract_invocation.proto + +package stellarv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ContractInvocationEvent represents a Soroban contract invocation on the Stellar network. +// It captures the complete execution context including function calls, diagnostic events, +// cross-contract calls, and state changes. +type ContractInvocationEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Core metadata + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + LedgerSequence uint32 `protobuf:"varint,2,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + TransactionIndex uint32 `protobuf:"varint,3,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` + OperationIndex uint32 `protobuf:"varint,4,opt,name=operation_index,json=operationIndex,proto3" json:"operation_index,omitempty"` + TransactionHash string `protobuf:"bytes,5,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` + // Contract invocation details + ContractId string `protobuf:"bytes,6,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + InvokingAccount string `protobuf:"bytes,7,opt,name=invoking_account,json=invokingAccount,proto3" json:"invoking_account,omitempty"` + FunctionName string `protobuf:"bytes,8,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` + // Function arguments in JSON-encoded format + // Each argument is a JSON string representing the decoded ScVal + Arguments []string `protobuf:"bytes,9,rep,name=arguments,proto3" json:"arguments,omitempty"` + // Execution results + Successful bool `protobuf:"varint,10,opt,name=successful,proto3" json:"successful,omitempty"` + // Rich execution context + DiagnosticEvents []*DiagnosticEvent `protobuf:"bytes,11,rep,name=diagnostic_events,json=diagnosticEvents,proto3" json:"diagnostic_events,omitempty"` + ContractCalls []*ContractCall `protobuf:"bytes,12,rep,name=contract_calls,json=contractCalls,proto3" json:"contract_calls,omitempty"` + StateChanges []*StateChange `protobuf:"bytes,13,rep,name=state_changes,json=stateChanges,proto3" json:"state_changes,omitempty"` + TtlExtensions []*TtlExtension `protobuf:"bytes,14,rep,name=ttl_extensions,json=ttlExtensions,proto3" json:"ttl_extensions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractInvocationEvent) Reset() { + *x = ContractInvocationEvent{} + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractInvocationEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractInvocationEvent) ProtoMessage() {} + +func (x *ContractInvocationEvent) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractInvocationEvent.ProtoReflect.Descriptor instead. +func (*ContractInvocationEvent) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_invocation_proto_rawDescGZIP(), []int{0} +} + +func (x *ContractInvocationEvent) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *ContractInvocationEvent) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *ContractInvocationEvent) GetTransactionIndex() uint32 { + if x != nil { + return x.TransactionIndex + } + return 0 +} + +func (x *ContractInvocationEvent) GetOperationIndex() uint32 { + if x != nil { + return x.OperationIndex + } + return 0 +} + +func (x *ContractInvocationEvent) GetTransactionHash() string { + if x != nil { + return x.TransactionHash + } + return "" +} + +func (x *ContractInvocationEvent) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *ContractInvocationEvent) GetInvokingAccount() string { + if x != nil { + return x.InvokingAccount + } + return "" +} + +func (x *ContractInvocationEvent) GetFunctionName() string { + if x != nil { + return x.FunctionName + } + return "" +} + +func (x *ContractInvocationEvent) GetArguments() []string { + if x != nil { + return x.Arguments + } + return nil +} + +func (x *ContractInvocationEvent) GetSuccessful() bool { + if x != nil { + return x.Successful + } + return false +} + +func (x *ContractInvocationEvent) GetDiagnosticEvents() []*DiagnosticEvent { + if x != nil { + return x.DiagnosticEvents + } + return nil +} + +func (x *ContractInvocationEvent) GetContractCalls() []*ContractCall { + if x != nil { + return x.ContractCalls + } + return nil +} + +func (x *ContractInvocationEvent) GetStateChanges() []*StateChange { + if x != nil { + return x.StateChanges + } + return nil +} + +func (x *ContractInvocationEvent) GetTtlExtensions() []*TtlExtension { + if x != nil { + return x.TtlExtensions + } + return nil +} + +// DiagnosticEvent represents a diagnostic event emitted during contract execution. +// These events provide insights into contract behavior and can contain custom data +// emitted by the contract for debugging and monitoring purposes. +type DiagnosticEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // Topics as JSON-encoded strings + Topics []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` + // Event data as JSON-encoded string + Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DiagnosticEvent) Reset() { + *x = DiagnosticEvent{} + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DiagnosticEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiagnosticEvent) ProtoMessage() {} + +func (x *DiagnosticEvent) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiagnosticEvent.ProtoReflect.Descriptor instead. +func (*DiagnosticEvent) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_invocation_proto_rawDescGZIP(), []int{1} +} + +func (x *DiagnosticEvent) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *DiagnosticEvent) GetTopics() []string { + if x != nil { + return x.Topics + } + return nil +} + +func (x *DiagnosticEvent) GetData() string { + if x != nil { + return x.Data + } + return "" +} + +// ContractCall represents a contract-to-contract invocation. +// This captures the execution tree of cross-contract calls, which is crucial +// for understanding complex DeFi interactions and contract composition patterns. +type ContractCall struct { + state protoimpl.MessageState `protogen:"open.v1"` + FromContract string `protobuf:"bytes,1,opt,name=from_contract,json=fromContract,proto3" json:"from_contract,omitempty"` + ToContract string `protobuf:"bytes,2,opt,name=to_contract,json=toContract,proto3" json:"to_contract,omitempty"` + Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` + // Arguments as JSON-encoded strings + Arguments []string `protobuf:"bytes,4,rep,name=arguments,proto3" json:"arguments,omitempty"` + CallDepth int32 `protobuf:"varint,5,opt,name=call_depth,json=callDepth,proto3" json:"call_depth,omitempty"` + // Authorization type: "source_account", "contract", or "inferred" + AuthType string `protobuf:"bytes,6,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"` + Successful bool `protobuf:"varint,7,opt,name=successful,proto3" json:"successful,omitempty"` + ExecutionOrder int32 `protobuf:"varint,8,opt,name=execution_order,json=executionOrder,proto3" json:"execution_order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractCall) Reset() { + *x = ContractCall{} + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractCall) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractCall) ProtoMessage() {} + +func (x *ContractCall) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractCall.ProtoReflect.Descriptor instead. +func (*ContractCall) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_invocation_proto_rawDescGZIP(), []int{2} +} + +func (x *ContractCall) GetFromContract() string { + if x != nil { + return x.FromContract + } + return "" +} + +func (x *ContractCall) GetToContract() string { + if x != nil { + return x.ToContract + } + return "" +} + +func (x *ContractCall) GetFunction() string { + if x != nil { + return x.Function + } + return "" +} + +func (x *ContractCall) GetArguments() []string { + if x != nil { + return x.Arguments + } + return nil +} + +func (x *ContractCall) GetCallDepth() int32 { + if x != nil { + return x.CallDepth + } + return 0 +} + +func (x *ContractCall) GetAuthType() string { + if x != nil { + return x.AuthType + } + return "" +} + +func (x *ContractCall) GetSuccessful() bool { + if x != nil { + return x.Successful + } + return false +} + +func (x *ContractCall) GetExecutionOrder() int32 { + if x != nil { + return x.ExecutionOrder + } + return 0 +} + +// StateChange represents a contract storage modification. +// Tracking state changes enables audit trails and understanding of contract +// storage access patterns. +type StateChange struct { + state protoimpl.MessageState `protogen:"open.v1"` + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // Storage key as JSON-encoded string + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + // Old value as JSON-encoded string (empty for "create" operations) + OldValue string `protobuf:"bytes,3,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"` + // New value as JSON-encoded string (empty for "delete" operations) + NewValue string `protobuf:"bytes,4,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` + // Operation type: "create", "update", or "delete" + Operation string `protobuf:"bytes,5,opt,name=operation,proto3" json:"operation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StateChange) Reset() { + *x = StateChange{} + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StateChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StateChange) ProtoMessage() {} + +func (x *StateChange) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StateChange.ProtoReflect.Descriptor instead. +func (*StateChange) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_invocation_proto_rawDescGZIP(), []int{3} +} + +func (x *StateChange) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *StateChange) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *StateChange) GetOldValue() string { + if x != nil { + return x.OldValue + } + return "" +} + +func (x *StateChange) GetNewValue() string { + if x != nil { + return x.NewValue + } + return "" +} + +func (x *StateChange) GetOperation() string { + if x != nil { + return x.Operation + } + return "" +} + +// TtlExtension represents a Time-To-Live extension for contract storage. +// Soroban contracts have TTLs on their state entries, and tracking extensions +// helps understand contract maintenance patterns and storage rent costs. +type TtlExtension struct { + state protoimpl.MessageState `protogen:"open.v1"` + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + OldTtl uint32 `protobuf:"varint,2,opt,name=old_ttl,json=oldTtl,proto3" json:"old_ttl,omitempty"` + NewTtl uint32 `protobuf:"varint,3,opt,name=new_ttl,json=newTtl,proto3" json:"new_ttl,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TtlExtension) Reset() { + *x = TtlExtension{} + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TtlExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TtlExtension) ProtoMessage() {} + +func (x *TtlExtension) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TtlExtension.ProtoReflect.Descriptor instead. +func (*TtlExtension) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_invocation_proto_rawDescGZIP(), []int{4} +} + +func (x *TtlExtension) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *TtlExtension) GetOldTtl() uint32 { + if x != nil { + return x.OldTtl + } + return 0 +} + +func (x *TtlExtension) GetNewTtl() uint32 { + if x != nil { + return x.NewTtl + } + return 0 +} + +// ContractInvocationBatch is a collection of contract invocations from a single ledger. +// This is the message type returned by the processor. +type ContractInvocationBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + Invocations []*ContractInvocationEvent `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"` + // Metadata about the batch + LedgerSequence uint32 `protobuf:"varint,2,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + InvocationCount int32 `protobuf:"varint,3,opt,name=invocation_count,json=invocationCount,proto3" json:"invocation_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractInvocationBatch) Reset() { + *x = ContractInvocationBatch{} + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractInvocationBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractInvocationBatch) ProtoMessage() {} + +func (x *ContractInvocationBatch) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_invocation_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractInvocationBatch.ProtoReflect.Descriptor instead. +func (*ContractInvocationBatch) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_invocation_proto_rawDescGZIP(), []int{5} +} + +func (x *ContractInvocationBatch) GetInvocations() []*ContractInvocationEvent { + if x != nil { + return x.Invocations + } + return nil +} + +func (x *ContractInvocationBatch) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *ContractInvocationBatch) GetInvocationCount() int32 { + if x != nil { + return x.InvocationCount + } + return 0 +} + +var File_stellar_v1_contract_invocation_proto protoreflect.FileDescriptor + +const file_stellar_v1_contract_invocation_proto_rawDesc = "" + + "\n" + + "$stellar/v1/contract_invocation.proto\x12\n" + + "stellar.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb6\x05\n" + + "\x17ContractInvocationEvent\x128\n" + + "\ttimestamp\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12'\n" + + "\x0fledger_sequence\x18\x02 \x01(\rR\x0eledgerSequence\x12+\n" + + "\x11transaction_index\x18\x03 \x01(\rR\x10transactionIndex\x12'\n" + + "\x0foperation_index\x18\x04 \x01(\rR\x0eoperationIndex\x12)\n" + + "\x10transaction_hash\x18\x05 \x01(\tR\x0ftransactionHash\x12\x1f\n" + + "\vcontract_id\x18\x06 \x01(\tR\n" + + "contractId\x12)\n" + + "\x10invoking_account\x18\a \x01(\tR\x0finvokingAccount\x12#\n" + + "\rfunction_name\x18\b \x01(\tR\ffunctionName\x12\x1c\n" + + "\targuments\x18\t \x03(\tR\targuments\x12\x1e\n" + + "\n" + + "successful\x18\n" + + " \x01(\bR\n" + + "successful\x12H\n" + + "\x11diagnostic_events\x18\v \x03(\v2\x1b.stellar.v1.DiagnosticEventR\x10diagnosticEvents\x12?\n" + + "\x0econtract_calls\x18\f \x03(\v2\x18.stellar.v1.ContractCallR\rcontractCalls\x12<\n" + + "\rstate_changes\x18\r \x03(\v2\x17.stellar.v1.StateChangeR\fstateChanges\x12?\n" + + "\x0ettl_extensions\x18\x0e \x03(\v2\x18.stellar.v1.TtlExtensionR\rttlExtensions\"^\n" + + "\x0fDiagnosticEvent\x12\x1f\n" + + "\vcontract_id\x18\x01 \x01(\tR\n" + + "contractId\x12\x16\n" + + "\x06topics\x18\x02 \x03(\tR\x06topics\x12\x12\n" + + "\x04data\x18\x03 \x01(\tR\x04data\"\x93\x02\n" + + "\fContractCall\x12#\n" + + "\rfrom_contract\x18\x01 \x01(\tR\ffromContract\x12\x1f\n" + + "\vto_contract\x18\x02 \x01(\tR\n" + + "toContract\x12\x1a\n" + + "\bfunction\x18\x03 \x01(\tR\bfunction\x12\x1c\n" + + "\targuments\x18\x04 \x03(\tR\targuments\x12\x1d\n" + + "\n" + + "call_depth\x18\x05 \x01(\x05R\tcallDepth\x12\x1b\n" + + "\tauth_type\x18\x06 \x01(\tR\bauthType\x12\x1e\n" + + "\n" + + "successful\x18\a \x01(\bR\n" + + "successful\x12'\n" + + "\x0fexecution_order\x18\b \x01(\x05R\x0eexecutionOrder\"\x98\x01\n" + + "\vStateChange\x12\x1f\n" + + "\vcontract_id\x18\x01 \x01(\tR\n" + + "contractId\x12\x10\n" + + "\x03key\x18\x02 \x01(\tR\x03key\x12\x1b\n" + + "\told_value\x18\x03 \x01(\tR\boldValue\x12\x1b\n" + + "\tnew_value\x18\x04 \x01(\tR\bnewValue\x12\x1c\n" + + "\toperation\x18\x05 \x01(\tR\toperation\"a\n" + + "\fTtlExtension\x12\x1f\n" + + "\vcontract_id\x18\x01 \x01(\tR\n" + + "contractId\x12\x17\n" + + "\aold_ttl\x18\x02 \x01(\rR\x06oldTtl\x12\x17\n" + + "\anew_ttl\x18\x03 \x01(\rR\x06newTtl\"\xb4\x01\n" + + "\x17ContractInvocationBatch\x12E\n" + + "\vinvocations\x18\x01 \x03(\v2#.stellar.v1.ContractInvocationEventR\vinvocations\x12'\n" + + "\x0fledger_sequence\x18\x02 \x01(\rR\x0eledgerSequence\x12)\n" + + "\x10invocation_count\x18\x03 \x01(\x05R\x0finvocationCountB;Z9github.com/withObsrvr/flow-proto/gen/stellar/v1;stellarv1b\x06proto3" + +var ( + file_stellar_v1_contract_invocation_proto_rawDescOnce sync.Once + file_stellar_v1_contract_invocation_proto_rawDescData []byte +) + +func file_stellar_v1_contract_invocation_proto_rawDescGZIP() []byte { + file_stellar_v1_contract_invocation_proto_rawDescOnce.Do(func() { + file_stellar_v1_contract_invocation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stellar_v1_contract_invocation_proto_rawDesc), len(file_stellar_v1_contract_invocation_proto_rawDesc))) + }) + return file_stellar_v1_contract_invocation_proto_rawDescData +} + +var file_stellar_v1_contract_invocation_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_stellar_v1_contract_invocation_proto_goTypes = []any{ + (*ContractInvocationEvent)(nil), // 0: stellar.v1.ContractInvocationEvent + (*DiagnosticEvent)(nil), // 1: stellar.v1.DiagnosticEvent + (*ContractCall)(nil), // 2: stellar.v1.ContractCall + (*StateChange)(nil), // 3: stellar.v1.StateChange + (*TtlExtension)(nil), // 4: stellar.v1.TtlExtension + (*ContractInvocationBatch)(nil), // 5: stellar.v1.ContractInvocationBatch + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp +} +var file_stellar_v1_contract_invocation_proto_depIdxs = []int32{ + 6, // 0: stellar.v1.ContractInvocationEvent.timestamp:type_name -> google.protobuf.Timestamp + 1, // 1: stellar.v1.ContractInvocationEvent.diagnostic_events:type_name -> stellar.v1.DiagnosticEvent + 2, // 2: stellar.v1.ContractInvocationEvent.contract_calls:type_name -> stellar.v1.ContractCall + 3, // 3: stellar.v1.ContractInvocationEvent.state_changes:type_name -> stellar.v1.StateChange + 4, // 4: stellar.v1.ContractInvocationEvent.ttl_extensions:type_name -> stellar.v1.TtlExtension + 0, // 5: stellar.v1.ContractInvocationBatch.invocations:type_name -> stellar.v1.ContractInvocationEvent + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_stellar_v1_contract_invocation_proto_init() } +func file_stellar_v1_contract_invocation_proto_init() { + if File_stellar_v1_contract_invocation_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_stellar_v1_contract_invocation_proto_rawDesc), len(file_stellar_v1_contract_invocation_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_stellar_v1_contract_invocation_proto_goTypes, + DependencyIndexes: file_stellar_v1_contract_invocation_proto_depIdxs, + MessageInfos: file_stellar_v1_contract_invocation_proto_msgTypes, + }.Build() + File_stellar_v1_contract_invocation_proto = out.File + file_stellar_v1_contract_invocation_proto_goTypes = nil + file_stellar_v1_contract_invocation_proto_depIdxs = nil +} diff --git a/go/gen/stellar/v1/raw_ledger.pb.go b/go/gen/stellar/v1/raw_ledger.pb.go index adf846e..fd44ff6 100644 --- a/go/gen/stellar/v1/raw_ledger.pb.go +++ b/go/gen/stellar/v1/raw_ledger.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: stellar/v1/raw_ledger.proto package stellarv1 diff --git a/go/gen/stellar/v1/raw_ledger_grpc.pb.go b/go/gen/stellar/v1/raw_ledger_grpc.pb.go index d02e525..b4ccd86 100644 --- a/go/gen/stellar/v1/raw_ledger_grpc.pb.go +++ b/go/gen/stellar/v1/raw_ledger_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.1 +// - protoc v6.31.1 // source: stellar/v1/raw_ledger.proto package stellarv1 diff --git a/go/gen/stellar/v1/token_transfers.pb.go b/go/gen/stellar/v1/token_transfers.pb.go index 0038efd..3f4cbe8 100644 --- a/go/gen/stellar/v1/token_transfers.pb.go +++ b/go/gen/stellar/v1/token_transfers.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.32.1 +// protoc-gen-go v1.36.8 +// protoc v6.31.1 // source: stellar/v1/token_transfers.proto package stellarv1