From 676b54c60efe8bda1d01e9f727a2d1ea679f0981 Mon Sep 17 00:00:00 2001 From: Tillman Mosley III Date: Tue, 21 Apr 2026 05:11:58 -0400 Subject: [PATCH 1/3] Updates --- Makefile | 21 +- flake.nix | 2 +- go.mod | 17 +- go.sum | 62 +- go/gen/consumer/consumer.pb.go | 4 +- go/gen/consumer/consumer_grpc.pb.go | 22 +- go/gen/flow/v1/common.pb.go | 4 +- go/gen/flow/v1/envelope.pb.go | 6 +- go/gen/flow/v1/processor_service.pb.go | 4 +- go/gen/flow/v1/processor_service_grpc.pb.go | 8 +- go/gen/flow/v1/source_service.pb.go | 4 +- go/gen/flow/v1/source_service_grpc.pb.go | 8 +- go/gen/flowctl/v1/common.pb.go | 4 +- go/gen/flowctl/v1/consumer.pb.go | 4 +- go/gen/flowctl/v1/consumer_grpc.pb.go | 12 +- go/gen/flowctl/v1/control_plane.pb.go | 4 +- go/gen/flowctl/v1/control_plane_grpc.pb.go | 18 +- go/gen/flowctl/v1/processor.pb.go | 4 +- go/gen/flowctl/v1/processor_grpc.pb.go | 12 +- go/gen/flowctl/v1/source.pb.go | 4 +- go/gen/flowctl/v1/source_grpc.pb.go | 16 +- go/gen/processor/processor.pb.go | 4 +- go/gen/processor/processor_grpc.pb.go | 20 +- go/gen/source/source.pb.go | 4 +- go/gen/source/source_grpc.pb.go | 24 +- go/gen/stellar/v1/account_balances.pb.go | 4 +- go/gen/stellar/v1/account_balances_grpc.pb.go | 12 +- go/gen/stellar/v1/contract_data.pb.go | 4 +- go/gen/stellar/v1/contract_data_grpc.pb.go | 14 +- go/gen/stellar/v1/contract_events.pb.go | 4 +- go/gen/stellar/v1/contract_events_grpc.pb.go | 12 +- go/gen/stellar/v1/contract_invocation.pb.go | 6 +- go/gen/stellar/v1/contract_state.pb.go | 485 ++++++++++++ go/gen/stellar/v1/contract_state_grpc.pb.go | 213 ++++++ go/gen/stellar/v1/defi_position.pb.go | 722 ++++++++++++++++++ go/gen/stellar/v1/dex_swap.pb.go | 378 +++++++++ go/gen/stellar/v1/liquidity_pool_events.pb.go | 599 +++++++++++++++ .../v1/liquidity_pool_events_grpc.pb.go | 214 ++++++ go/gen/stellar/v1/raw_ledger.pb.go | 4 +- go/gen/stellar/v1/raw_ledger_grpc.pb.go | 14 +- ingest/asset/asset.pb.go | 229 ++++++ .../token_transfer/token_transfer_event.pb.go | 681 +++++++++++++++++ proto/ingest/asset/asset.proto | 2 +- .../token_transfer/token_transfer_event.proto | 2 +- proto/stellar/v1/contract_invocation.proto | 2 +- proto/stellar/v1/contract_state.proto | 80 ++ proto/stellar/v1/defi_position.proto | 99 +++ proto/stellar/v1/dex_swap.proto | 51 ++ proto/stellar/v1/liquidity_pool_events.proto | 89 +++ 49 files changed, 4035 insertions(+), 177 deletions(-) create mode 100644 go/gen/stellar/v1/contract_state.pb.go create mode 100644 go/gen/stellar/v1/contract_state_grpc.pb.go create mode 100644 go/gen/stellar/v1/defi_position.pb.go create mode 100644 go/gen/stellar/v1/dex_swap.pb.go create mode 100644 go/gen/stellar/v1/liquidity_pool_events.pb.go create mode 100644 go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go create mode 100644 ingest/asset/asset.pb.go create mode 100644 ingest/processors/token_transfer/token_transfer_event.pb.go create mode 100644 proto/stellar/v1/contract_state.proto create mode 100644 proto/stellar/v1/defi_position.proto create mode 100644 proto/stellar/v1/dex_swap.proto create mode 100644 proto/stellar/v1/liquidity_pool_events.proto diff --git a/Makefile b/Makefile index e5a4ed6..5c62058 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ FLOWCTL_PROTOS := $(shell find $(PROTO_DIR)/flowctl -name '*.proto' 2>/dev/null) STELLAR_PROTOS := $(shell find $(PROTO_DIR)/stellar -name '*.proto' 2>/dev/null) ALL_NEW_PROTOS := $(FLOWCTL_PROTOS) $(STELLAR_PROTOS) +# Ingest protos (shared types used by legacy flow/v1) +INGEST_PROTOS := $(shell find $(PROTO_DIR)/ingest -name '*.proto' 2>/dev/null) + # Legacy protos (for backward compatibility during transition) LEGACY_PROTOS := $(shell find $(PROTO_DIR)/processor $(PROTO_DIR)/source $(PROTO_DIR)/consumer $(PROTO_DIR)/flow -name '*.proto' 2>/dev/null) @@ -28,8 +31,24 @@ proto-new: @echo "✓ Generated $(words $(ALL_NEW_PROTOS)) proto files" @echo "✓ Output: $(GO_OUT)/flowctl/v1/ and $(GO_OUT)/stellar/v1/" +## Generate ingest protos (shared types, generated into proto/ tree per go_package) +proto-ingest: + @echo "→ Generating ingest proto stubs..." + @if [ -n "$(INGEST_PROTOS)" ]; then \ + protoc \ + -I=$(PROTO_DIR) \ + --go_out=. \ + --go_opt=paths=source_relative \ + --go-grpc_out=. \ + --go-grpc_opt=paths=source_relative \ + $(INGEST_PROTOS); \ + echo "✓ Generated $(words $(INGEST_PROTOS)) ingest proto files"; \ + else \ + echo "No ingest protos found"; \ + fi + ## Generate legacy protos (for backward compatibility) -proto-legacy: +proto-legacy: proto-ingest @echo "→ Generating legacy proto stubs..." @mkdir -p $(GO_OUT) @if [ -n "$(LEGACY_PROTOS)" ]; then \ diff --git a/flake.nix b/flake.nix index b096b62..c06622e 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ in { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ - go # Go 1.25.4 + go_1_26 # Go 1.26.x protobuf # protoc protoc-gen-go protoc-gen-go-grpc diff --git a/go.mod b/go.mod index 4045f92..5447fef 100644 --- a/go.mod +++ b/go.mod @@ -1,18 +1,15 @@ module github.com/withObsrvr/flow-proto -go 1.24 - -toolchain go1.24.6 +go 1.26.1 require ( - github.com/golang/protobuf v1.5.4 - google.golang.org/grpc v1.71.0 - google.golang.org/protobuf v1.36.6 + google.golang.org/grpc v1.79.2 + google.golang.org/protobuf v1.36.11 ) require ( - golang.org/x/net v0.34.0 // indirect - golang.org/x/sys v0.29.0 // indirect - golang.org/x/text v0.21.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect + golang.org/x/net v0.48.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/text v0.32.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect ) diff --git a/go.sum b/go.sum index 95d86ac..25c7c0f 100644 --- a/go.sum +++ b/go.sum @@ -1,36 +1,38 @@ -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stellar/go-stellar-sdk v0.0.0-20251205214652-e0b536a526bc h1:rB/QpGk5Bv5s0ZkmTyxAAAB5pBuZnbh4PAxNqroPWI0= -github.com/stellar/go-stellar-sdk v0.0.0-20251205214652-e0b536a526bc/go.mod h1:fZPcxQZw1I0zZ+X76uFcVPqmQCaYbWc87lDFW/kQJaY= -go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= -go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY= -go.opentelemetry.io/otel v1.34.0/go.mod h1:OWFPOQ+h4G8xpyjgqo4SxJYdDQ/qmRH+wivy7zzx9oI= -go.opentelemetry.io/otel/metric v1.34.0 h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ= -go.opentelemetry.io/otel/metric v1.34.0/go.mod h1:CEDrp0fy2D0MvkXE+dPV7cMi8tWZwX3dmaIhwPOaqHE= -go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= -go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= -go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= -go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= -go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k= -go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= -golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= -golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f h1:OxYkA3wjPsZyBylwymxSHa7ViiW1Sml4ToBrncvFehI= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f/go.mod h1:+2Yz8+CLJbIfL9z73EW45avw8Lmge3xVElCP9zEKi50= -google.golang.org/grpc v1.71.0 h1:kF77BGdPTQ4/JZWMlb9VpJ5pa25aqvVqogsxNHHdeBg= -google.golang.org/grpc v1.71.0/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec= -google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= -google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= +golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= +golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= +golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= +golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= +google.golang.org/grpc v1.79.2 h1:fRMD94s2tITpyJGtBBn7MkMseNpOZU8ZxgC3MMBaXRU= +google.golang.org/grpc v1.79.2/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= diff --git a/go/gen/consumer/consumer.pb.go b/go/gen/consumer/consumer.pb.go index 489319c..729997e 100644 --- a/go/gen/consumer/consumer.pb.go +++ b/go/gen/consumer/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.11 +// protoc v7.34.0 // source: consumer/consumer.proto package consumer diff --git a/go/gen/consumer/consumer_grpc.pb.go b/go/gen/consumer/consumer_grpc.pb.go index 3a528df..ade18ad 100644 --- a/go/gen/consumer/consumer_grpc.pb.go +++ b/go/gen/consumer/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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: consumer/consumer.proto package consumer @@ -173,28 +173,28 @@ type ConsumerServiceServer interface { type UnimplementedConsumerServiceServer struct{} func (UnimplementedConsumerServiceServer) GetCapabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") + return nil, status.Error(codes.Unimplemented, "method GetCapabilities not implemented") } func (UnimplementedConsumerServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented") + return nil, status.Error(codes.Unimplemented, "method Configure not implemented") } func (UnimplementedConsumerServiceServer) Consume(context.Context, *ConsumeRequest) (*ConsumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Consume not implemented") + return nil, status.Error(codes.Unimplemented, "method Consume not implemented") } func (UnimplementedConsumerServiceServer) BatchConsume(context.Context, *BatchConsumeRequest) (*BatchConsumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BatchConsume not implemented") + return nil, status.Error(codes.Unimplemented, "method BatchConsume not implemented") } func (UnimplementedConsumerServiceServer) StreamConsume(grpc.BidiStreamingServer[ConsumeRequest, ConsumeResponse]) error { - return status.Errorf(codes.Unimplemented, "method StreamConsume not implemented") + return status.Error(codes.Unimplemented, "method StreamConsume not implemented") } func (UnimplementedConsumerServiceServer) CheckHealth(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckHealth not implemented") + return nil, status.Error(codes.Unimplemented, "method CheckHealth not implemented") } func (UnimplementedConsumerServiceServer) GetMetrics(context.Context, *MetricsRequest) (*MetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") + return nil, status.Error(codes.Unimplemented, "method GetMetrics not implemented") } func (UnimplementedConsumerServiceServer) Control(context.Context, *LifecycleRequest) (*LifecycleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Control not implemented") + return nil, status.Error(codes.Unimplemented, "method Control not implemented") } func (UnimplementedConsumerServiceServer) mustEmbedUnimplementedConsumerServiceServer() {} func (UnimplementedConsumerServiceServer) testEmbeddedByValue() {} @@ -207,7 +207,7 @@ type UnsafeConsumerServiceServer interface { } func RegisterConsumerServiceServer(s grpc.ServiceRegistrar, srv ConsumerServiceServer) { - // If the following call pancis, it indicates UnimplementedConsumerServiceServer was + // If the following call panics, it indicates UnimplementedConsumerServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flow/v1/common.pb.go b/go/gen/flow/v1/common.pb.go index a93cb24..2705ddb 100644 --- a/go/gen/flow/v1/common.pb.go +++ b/go/gen/flow/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.11 +// protoc v7.34.0 // source: flow/v1/common.proto package flowv1 diff --git a/go/gen/flow/v1/envelope.pb.go b/go/gen/flow/v1/envelope.pb.go index 8d7308b..f4c3f60 100644 --- a/go/gen/flow/v1/envelope.pb.go +++ b/go/gen/flow/v1/envelope.pb.go @@ -1,13 +1,13 @@ // 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.11 +// protoc v7.34.0 // source: flow/v1/envelope.proto package flowv1 import ( - token_transfer "github.com/withObsrvr/flow-proto/proto/ingest/processors/token_transfer" + token_transfer "github.com/withObsrvr/flow-proto/ingest/processors/token_transfer" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" diff --git a/go/gen/flow/v1/processor_service.pb.go b/go/gen/flow/v1/processor_service.pb.go index 32d15fa..1085b25 100644 --- a/go/gen/flow/v1/processor_service.pb.go +++ b/go/gen/flow/v1/processor_service.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.11 +// protoc v7.34.0 // source: flow/v1/processor_service.proto package flowv1 diff --git a/go/gen/flow/v1/processor_service_grpc.pb.go b/go/gen/flow/v1/processor_service_grpc.pb.go index ab672d4..4463dd7 100644 --- a/go/gen/flow/v1/processor_service_grpc.pb.go +++ b/go/gen/flow/v1/processor_service_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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: flow/v1/processor_service.proto package flowv1 @@ -68,7 +68,7 @@ type ProcessorServiceServer interface { type UnimplementedProcessorServiceServer struct{} func (UnimplementedProcessorServiceServer) Transform(grpc.BidiStreamingServer[Envelope, Envelope]) error { - return status.Errorf(codes.Unimplemented, "method Transform not implemented") + return status.Error(codes.Unimplemented, "method Transform not implemented") } func (UnimplementedProcessorServiceServer) mustEmbedUnimplementedProcessorServiceServer() {} func (UnimplementedProcessorServiceServer) testEmbeddedByValue() {} @@ -81,7 +81,7 @@ type UnsafeProcessorServiceServer interface { } func RegisterProcessorServiceServer(s grpc.ServiceRegistrar, srv ProcessorServiceServer) { - // If the following call pancis, it indicates UnimplementedProcessorServiceServer was + // If the following call panics, it indicates UnimplementedProcessorServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flow/v1/source_service.pb.go b/go/gen/flow/v1/source_service.pb.go index 49b5bad..6686301 100644 --- a/go/gen/flow/v1/source_service.pb.go +++ b/go/gen/flow/v1/source_service.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.11 +// protoc v7.34.0 // source: flow/v1/source_service.proto package flowv1 diff --git a/go/gen/flow/v1/source_service_grpc.pb.go b/go/gen/flow/v1/source_service_grpc.pb.go index 9a12273..d583db7 100644 --- a/go/gen/flow/v1/source_service_grpc.pb.go +++ b/go/gen/flow/v1/source_service_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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: flow/v1/source_service.proto package flowv1 @@ -68,7 +68,7 @@ type SourceServiceServer interface { type UnimplementedSourceServiceServer struct{} func (UnimplementedSourceServiceServer) Stream(grpc.BidiStreamingServer[Ack, Envelope]) error { - return status.Errorf(codes.Unimplemented, "method Stream not implemented") + return status.Error(codes.Unimplemented, "method Stream not implemented") } func (UnimplementedSourceServiceServer) mustEmbedUnimplementedSourceServiceServer() {} func (UnimplementedSourceServiceServer) testEmbeddedByValue() {} @@ -81,7 +81,7 @@ type UnsafeSourceServiceServer interface { } func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer) { - // If the following call pancis, it indicates UnimplementedSourceServiceServer was + // If the following call panics, it indicates UnimplementedSourceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/common.pb.go b/go/gen/flowctl/v1/common.pb.go index 2ebb527..39ac8d4 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.11 +// protoc v7.34.0 // 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..4fb3199 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.11 +// protoc v7.34.0 // 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..4501464 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: flowctl/v1/consumer.proto package flowctlv1 @@ -107,13 +107,13 @@ type ConsumerServiceServer interface { type UnimplementedConsumerServiceServer struct{} func (UnimplementedConsumerServiceServer) GetInfo(context.Context, *emptypb.Empty) (*ComponentInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedConsumerServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedConsumerServiceServer) Consume(grpc.ClientStreamingServer[Event, ConsumeResponse]) error { - return status.Errorf(codes.Unimplemented, "method Consume not implemented") + return status.Error(codes.Unimplemented, "method Consume not implemented") } func (UnimplementedConsumerServiceServer) mustEmbedUnimplementedConsumerServiceServer() {} func (UnimplementedConsumerServiceServer) testEmbeddedByValue() {} @@ -126,7 +126,7 @@ type UnsafeConsumerServiceServer interface { } func RegisterConsumerServiceServer(s grpc.ServiceRegistrar, srv ConsumerServiceServer) { - // If the following call pancis, it indicates UnimplementedConsumerServiceServer was + // If the following call panics, it indicates UnimplementedConsumerServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/control_plane.pb.go b/go/gen/flowctl/v1/control_plane.pb.go index 7952ff4..6f6d376 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.11 +// protoc v7.34.0 // 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..f55c899 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: flowctl/v1/control_plane.proto package flowctlv1 @@ -147,22 +147,22 @@ type ControlPlaneServiceServer interface { type UnimplementedControlPlaneServiceServer struct{} func (UnimplementedControlPlaneServiceServer) RegisterComponent(context.Context, *RegisterRequest) (*RegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterComponent not implemented") + return nil, status.Error(codes.Unimplemented, "method RegisterComponent not implemented") } func (UnimplementedControlPlaneServiceServer) UnregisterComponent(context.Context, *UnregisterRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnregisterComponent not implemented") + return nil, status.Error(codes.Unimplemented, "method UnregisterComponent not implemented") } func (UnimplementedControlPlaneServiceServer) DiscoverComponents(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiscoverComponents not implemented") + return nil, status.Error(codes.Unimplemented, "method DiscoverComponents not implemented") } func (UnimplementedControlPlaneServiceServer) Heartbeat(context.Context, *HeartbeatRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Heartbeat not implemented") + return nil, status.Error(codes.Unimplemented, "method Heartbeat not implemented") } func (UnimplementedControlPlaneServiceServer) GetComponentStatus(context.Context, *ComponentStatusRequest) (*ComponentStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetComponentStatus not implemented") + return nil, status.Error(codes.Unimplemented, "method GetComponentStatus not implemented") } func (UnimplementedControlPlaneServiceServer) ListComponents(context.Context, *ListComponentsRequest) (*ListComponentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListComponents not implemented") + return nil, status.Error(codes.Unimplemented, "method ListComponents not implemented") } func (UnimplementedControlPlaneServiceServer) mustEmbedUnimplementedControlPlaneServiceServer() {} func (UnimplementedControlPlaneServiceServer) testEmbeddedByValue() {} @@ -175,7 +175,7 @@ type UnsafeControlPlaneServiceServer interface { } func RegisterControlPlaneServiceServer(s grpc.ServiceRegistrar, srv ControlPlaneServiceServer) { - // If the following call pancis, it indicates UnimplementedControlPlaneServiceServer was + // If the following call panics, it indicates UnimplementedControlPlaneServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/processor.pb.go b/go/gen/flowctl/v1/processor.pb.go index 9f4d690..63106a1 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.11 +// protoc v7.34.0 // 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..35a99c2 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: flowctl/v1/processor.proto package flowctlv1 @@ -109,13 +109,13 @@ type ProcessorServiceServer interface { type UnimplementedProcessorServiceServer struct{} func (UnimplementedProcessorServiceServer) GetInfo(context.Context, *emptypb.Empty) (*ComponentInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedProcessorServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedProcessorServiceServer) Process(grpc.BidiStreamingServer[Event, Event]) error { - return status.Errorf(codes.Unimplemented, "method Process not implemented") + return status.Error(codes.Unimplemented, "method Process not implemented") } func (UnimplementedProcessorServiceServer) mustEmbedUnimplementedProcessorServiceServer() {} func (UnimplementedProcessorServiceServer) testEmbeddedByValue() {} @@ -128,7 +128,7 @@ type UnsafeProcessorServiceServer interface { } func RegisterProcessorServiceServer(s grpc.ServiceRegistrar, srv ProcessorServiceServer) { - // If the following call pancis, it indicates UnimplementedProcessorServiceServer was + // If the following call panics, it indicates UnimplementedProcessorServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/source.pb.go b/go/gen/flowctl/v1/source.pb.go index 25d11f0..23f2634 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.11 +// protoc v7.34.0 // 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..2025260 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: flowctl/v1/source.proto package flowctlv1 @@ -143,19 +143,19 @@ type SourceServiceServer interface { type UnimplementedSourceServiceServer struct{} func (UnimplementedSourceServiceServer) GetInfo(context.Context, *emptypb.Empty) (*ComponentInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedSourceServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedSourceServiceServer) StreamEvents(*StreamRequest, grpc.ServerStreamingServer[Event]) error { - return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented") + return status.Error(codes.Unimplemented, "method StreamEvents not implemented") } func (UnimplementedSourceServiceServer) GetState(context.Context, *StateRequest) (*StateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") + return nil, status.Error(codes.Unimplemented, "method GetState not implemented") } func (UnimplementedSourceServiceServer) SaveState(context.Context, *SaveStateRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SaveState not implemented") + return nil, status.Error(codes.Unimplemented, "method SaveState not implemented") } func (UnimplementedSourceServiceServer) mustEmbedUnimplementedSourceServiceServer() {} func (UnimplementedSourceServiceServer) testEmbeddedByValue() {} @@ -168,7 +168,7 @@ type UnsafeSourceServiceServer interface { } func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer) { - // If the following call pancis, it indicates UnimplementedSourceServiceServer was + // If the following call panics, it indicates UnimplementedSourceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/processor/processor.pb.go b/go/gen/processor/processor.pb.go index 8590494..10af8ad 100644 --- a/go/gen/processor/processor.pb.go +++ b/go/gen/processor/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.11 +// protoc v7.34.0 // source: processor/processor.proto package processor diff --git a/go/gen/processor/processor_grpc.pb.go b/go/gen/processor/processor_grpc.pb.go index a715113..e4add8f 100644 --- a/go/gen/processor/processor_grpc.pb.go +++ b/go/gen/processor/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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: processor/processor.proto package processor @@ -163,25 +163,25 @@ type ProcessorServiceServer interface { type UnimplementedProcessorServiceServer struct{} func (UnimplementedProcessorServiceServer) GetCapabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") + return nil, status.Error(codes.Unimplemented, "method GetCapabilities not implemented") } func (UnimplementedProcessorServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented") + return nil, status.Error(codes.Unimplemented, "method Configure not implemented") } func (UnimplementedProcessorServiceServer) Process(grpc.BidiStreamingServer[DataMessage, DataMessage]) error { - return status.Errorf(codes.Unimplemented, "method Process not implemented") + return status.Error(codes.Unimplemented, "method Process not implemented") } func (UnimplementedProcessorServiceServer) ProcessWithControl(grpc.BidiStreamingServer[ProcessControlMessage, ProcessControlMessage]) error { - return status.Errorf(codes.Unimplemented, "method ProcessWithControl not implemented") + return status.Error(codes.Unimplemented, "method ProcessWithControl not implemented") } func (UnimplementedProcessorServiceServer) GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") + return nil, status.Error(codes.Unimplemented, "method GetState not implemented") } func (UnimplementedProcessorServiceServer) CheckHealth(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckHealth not implemented") + return nil, status.Error(codes.Unimplemented, "method CheckHealth not implemented") } func (UnimplementedProcessorServiceServer) ProcessSingle(context.Context, *DataMessage) (*DataMessage, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessSingle not implemented") + return nil, status.Error(codes.Unimplemented, "method ProcessSingle not implemented") } func (UnimplementedProcessorServiceServer) mustEmbedUnimplementedProcessorServiceServer() {} func (UnimplementedProcessorServiceServer) testEmbeddedByValue() {} @@ -194,7 +194,7 @@ type UnsafeProcessorServiceServer interface { } func RegisterProcessorServiceServer(s grpc.ServiceRegistrar, srv ProcessorServiceServer) { - // If the following call pancis, it indicates UnimplementedProcessorServiceServer was + // If the following call panics, it indicates UnimplementedProcessorServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/source/source.pb.go b/go/gen/source/source.pb.go index 3ada261..2ff3969 100644 --- a/go/gen/source/source.pb.go +++ b/go/gen/source/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.11 +// protoc v7.34.0 // source: source/source.proto package source diff --git a/go/gen/source/source_grpc.pb.go b/go/gen/source/source_grpc.pb.go index 6021c7e..c08cc49 100644 --- a/go/gen/source/source_grpc.pb.go +++ b/go/gen/source/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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: source/source.proto package source @@ -195,31 +195,31 @@ type SourceServiceServer interface { type UnimplementedSourceServiceServer struct{} func (UnimplementedSourceServiceServer) GetCapabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") + return nil, status.Error(codes.Unimplemented, "method GetCapabilities not implemented") } func (UnimplementedSourceServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented") + return nil, status.Error(codes.Unimplemented, "method Configure not implemented") } func (UnimplementedSourceServiceServer) StartStreaming(*StartRequest, grpc.ServerStreamingServer[DataMessage]) error { - return status.Errorf(codes.Unimplemented, "method StartStreaming not implemented") + return status.Error(codes.Unimplemented, "method StartStreaming not implemented") } func (UnimplementedSourceServiceServer) StopStreaming(context.Context, *StopRequest) (*StopResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopStreaming not implemented") + return nil, status.Error(codes.Unimplemented, "method StopStreaming not implemented") } func (UnimplementedSourceServiceServer) GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") + return nil, status.Error(codes.Unimplemented, "method GetState not implemented") } func (UnimplementedSourceServiceServer) SetState(context.Context, *SetStateRequest) (*SetStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetState not implemented") + return nil, status.Error(codes.Unimplemented, "method SetState not implemented") } func (UnimplementedSourceServiceServer) CheckHealth(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckHealth not implemented") + return nil, status.Error(codes.Unimplemented, "method CheckHealth not implemented") } func (UnimplementedSourceServiceServer) GetSnapshot(context.Context, *SnapshotRequest) (*SnapshotResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSnapshot not implemented") + return nil, status.Error(codes.Unimplemented, "method GetSnapshot not implemented") } func (UnimplementedSourceServiceServer) InteractiveStreaming(grpc.BidiStreamingServer[StreamCommand, DataMessage]) error { - return status.Errorf(codes.Unimplemented, "method InteractiveStreaming not implemented") + return status.Error(codes.Unimplemented, "method InteractiveStreaming not implemented") } func (UnimplementedSourceServiceServer) mustEmbedUnimplementedSourceServiceServer() {} func (UnimplementedSourceServiceServer) testEmbeddedByValue() {} @@ -232,7 +232,7 @@ type UnsafeSourceServiceServer interface { } func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer) { - // If the following call pancis, it indicates UnimplementedSourceServiceServer was + // If the following call panics, it indicates UnimplementedSourceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/account_balances.pb.go b/go/gen/stellar/v1/account_balances.pb.go index c1cb197..923c375 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.11 +// protoc v7.34.0 // 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..43ddc87 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: stellar/v1/account_balances.proto package stellarv1 @@ -112,13 +112,13 @@ type AccountBalanceServiceServer interface { type UnimplementedAccountBalanceServiceServer struct{} func (UnimplementedAccountBalanceServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedAccountBalanceServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedAccountBalanceServiceServer) StreamAccountBalances(*StreamAccountBalancesRequest, grpc.ServerStreamingServer[AccountBalance]) error { - return status.Errorf(codes.Unimplemented, "method StreamAccountBalances not implemented") + return status.Error(codes.Unimplemented, "method StreamAccountBalances not implemented") } func (UnimplementedAccountBalanceServiceServer) mustEmbedUnimplementedAccountBalanceServiceServer() {} func (UnimplementedAccountBalanceServiceServer) testEmbeddedByValue() {} @@ -131,7 +131,7 @@ type UnsafeAccountBalanceServiceServer interface { } func RegisterAccountBalanceServiceServer(s grpc.ServiceRegistrar, srv AccountBalanceServiceServer) { - // If the following call pancis, it indicates UnimplementedAccountBalanceServiceServer was + // If the following call panics, it indicates UnimplementedAccountBalanceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/contract_data.pb.go b/go/gen/stellar/v1/contract_data.pb.go index 77c39ab..b4f5b3c 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.11 +// protoc v7.34.0 // 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..34a2272 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: stellar/v1/contract_data.proto package stellarv1 @@ -117,16 +117,16 @@ type ContractDataServiceServer interface { type UnimplementedContractDataServiceServer struct{} func (UnimplementedContractDataServiceServer) GetServiceInfo(context.Context, *emptypb.Empty) (*ServiceInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServiceInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetServiceInfo not implemented") } func (UnimplementedContractDataServiceServer) GetStatus(context.Context, *emptypb.Empty) (*ProcessingStatus, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") + return nil, status.Error(codes.Unimplemented, "method GetStatus not implemented") } func (UnimplementedContractDataServiceServer) GetFilterConfig(context.Context, *emptypb.Empty) (*FilterConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFilterConfig not implemented") + return nil, status.Error(codes.Unimplemented, "method GetFilterConfig not implemented") } func (UnimplementedContractDataServiceServer) UpdateFilterConfig(context.Context, *FilterConfig) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateFilterConfig not implemented") + return nil, status.Error(codes.Unimplemented, "method UpdateFilterConfig not implemented") } func (UnimplementedContractDataServiceServer) mustEmbedUnimplementedContractDataServiceServer() {} func (UnimplementedContractDataServiceServer) testEmbeddedByValue() {} @@ -139,7 +139,7 @@ type UnsafeContractDataServiceServer interface { } func RegisterContractDataServiceServer(s grpc.ServiceRegistrar, srv ContractDataServiceServer) { - // If the following call pancis, it indicates UnimplementedContractDataServiceServer was + // If the following call panics, it indicates UnimplementedContractDataServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/contract_events.pb.go b/go/gen/stellar/v1/contract_events.pb.go index 1f3b442..bf6c9ce 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.11 +// protoc v7.34.0 // 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..7f4937f 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: stellar/v1/contract_events.proto package stellarv1 @@ -112,13 +112,13 @@ type ContractEventServiceServer interface { type UnimplementedContractEventServiceServer struct{} func (UnimplementedContractEventServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedContractEventServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedContractEventServiceServer) GetContractEvents(*GetContractEventsRequest, grpc.ServerStreamingServer[ContractEvent]) error { - return status.Errorf(codes.Unimplemented, "method GetContractEvents not implemented") + return status.Error(codes.Unimplemented, "method GetContractEvents not implemented") } func (UnimplementedContractEventServiceServer) mustEmbedUnimplementedContractEventServiceServer() {} func (UnimplementedContractEventServiceServer) testEmbeddedByValue() {} @@ -131,7 +131,7 @@ type UnsafeContractEventServiceServer interface { } func RegisterContractEventServiceServer(s grpc.ServiceRegistrar, srv ContractEventServiceServer) { - // If the following call pancis, it indicates UnimplementedContractEventServiceServer was + // If the following call panics, it indicates UnimplementedContractEventServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/contract_invocation.pb.go b/go/gen/stellar/v1/contract_invocation.pb.go index a0dac30..cc1f218 100644 --- a/go/gen/stellar/v1/contract_invocation.pb.go +++ b/go/gen/stellar/v1/contract_invocation.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.11 +// protoc v7.34.0 // source: stellar/v1/contract_invocation.proto package stellarv1 @@ -616,7 +616,7 @@ const file_stellar_v1_contract_invocation_proto_rawDesc = "" + "\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" + "\x10invocation_count\x18\x03 \x01(\x05R\x0finvocationCountB>ZZ stellar.v1.Durability + 2, // 1: stellar.v1.ContractStateEvent.meta:type_name -> stellar.v1.ContractStateMeta + 1, // 2: stellar.v1.ContractStateEventBatch.events:type_name -> stellar.v1.ContractStateEvent + 5, // 3: stellar.v1.ContractStateService.GetInfo:input_type -> google.protobuf.Empty + 6, // 4: stellar.v1.ContractStateService.HealthCheck:input_type -> flowctl.v1.HealthCheckRequest + 3, // 5: stellar.v1.ContractStateService.GetContractStateEvents:input_type -> stellar.v1.GetContractStateEventsRequest + 7, // 6: stellar.v1.ContractStateService.GetInfo:output_type -> flowctl.v1.ComponentInfo + 8, // 7: stellar.v1.ContractStateService.HealthCheck:output_type -> flowctl.v1.HealthCheckResponse + 1, // 8: stellar.v1.ContractStateService.GetContractStateEvents:output_type -> stellar.v1.ContractStateEvent + 6, // [6:9] is the sub-list for method output_type + 3, // [3:6] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_stellar_v1_contract_state_proto_init() } +func file_stellar_v1_contract_state_proto_init() { + if File_stellar_v1_contract_state_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_state_proto_rawDesc), len(file_stellar_v1_contract_state_proto_rawDesc)), + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stellar_v1_contract_state_proto_goTypes, + DependencyIndexes: file_stellar_v1_contract_state_proto_depIdxs, + EnumInfos: file_stellar_v1_contract_state_proto_enumTypes, + MessageInfos: file_stellar_v1_contract_state_proto_msgTypes, + }.Build() + File_stellar_v1_contract_state_proto = out.File + file_stellar_v1_contract_state_proto_goTypes = nil + file_stellar_v1_contract_state_proto_depIdxs = nil +} diff --git a/go/gen/stellar/v1/contract_state_grpc.pb.go b/go/gen/stellar/v1/contract_state_grpc.pb.go new file mode 100644 index 0000000..7cedb09 --- /dev/null +++ b/go/gen/stellar/v1/contract_state_grpc.pb.go @@ -0,0 +1,213 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.6.0 +// - protoc v7.34.0 +// source: stellar/v1/contract_state.proto + +package stellarv1 + +import ( + context "context" + v1 "github.com/withObsrvr/flow-proto/go/gen/flowctl/v1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ContractStateService_GetInfo_FullMethodName = "/stellar.v1.ContractStateService/GetInfo" + ContractStateService_HealthCheck_FullMethodName = "/stellar.v1.ContractStateService/HealthCheck" + ContractStateService_GetContractStateEvents_FullMethodName = "/stellar.v1.ContractStateService/GetContractStateEvents" +) + +// ContractStateServiceClient is the client API for ContractStateService 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. +// +// ContractStateService streams Stellar Soroban contract state mutations. +type ContractStateServiceClient interface { + // Get service information + GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.ComponentInfo, error) + // Health check + HealthCheck(ctx context.Context, in *v1.HealthCheckRequest, opts ...grpc.CallOption) (*v1.HealthCheckResponse, error) + // Stream contract state events + GetContractStateEvents(ctx context.Context, in *GetContractStateEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ContractStateEvent], error) +} + +type contractStateServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewContractStateServiceClient(cc grpc.ClientConnInterface) ContractStateServiceClient { + return &contractStateServiceClient{cc} +} + +func (c *contractStateServiceClient) GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.ComponentInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1.ComponentInfo) + err := c.cc.Invoke(ctx, ContractStateService_GetInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractStateServiceClient) HealthCheck(ctx context.Context, in *v1.HealthCheckRequest, opts ...grpc.CallOption) (*v1.HealthCheckResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1.HealthCheckResponse) + err := c.cc.Invoke(ctx, ContractStateService_HealthCheck_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractStateServiceClient) GetContractStateEvents(ctx context.Context, in *GetContractStateEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ContractStateEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ContractStateService_ServiceDesc.Streams[0], ContractStateService_GetContractStateEvents_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[GetContractStateEventsRequest, ContractStateEvent]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ContractStateService_GetContractStateEventsClient = grpc.ServerStreamingClient[ContractStateEvent] + +// ContractStateServiceServer is the server API for ContractStateService service. +// All implementations must embed UnimplementedContractStateServiceServer +// for forward compatibility. +// +// ContractStateService streams Stellar Soroban contract state mutations. +type ContractStateServiceServer interface { + // Get service information + GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) + // Health check + HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) + // Stream contract state events + GetContractStateEvents(*GetContractStateEventsRequest, grpc.ServerStreamingServer[ContractStateEvent]) error + mustEmbedUnimplementedContractStateServiceServer() +} + +// UnimplementedContractStateServiceServer 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. +type UnimplementedContractStateServiceServer struct{} + +func (UnimplementedContractStateServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") +} +func (UnimplementedContractStateServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") +} +func (UnimplementedContractStateServiceServer) GetContractStateEvents(*GetContractStateEventsRequest, grpc.ServerStreamingServer[ContractStateEvent]) error { + return status.Error(codes.Unimplemented, "method GetContractStateEvents not implemented") +} +func (UnimplementedContractStateServiceServer) mustEmbedUnimplementedContractStateServiceServer() {} +func (UnimplementedContractStateServiceServer) testEmbeddedByValue() {} + +// UnsafeContractStateServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ContractStateServiceServer will +// result in compilation errors. +type UnsafeContractStateServiceServer interface { + mustEmbedUnimplementedContractStateServiceServer() +} + +func RegisterContractStateServiceServer(s grpc.ServiceRegistrar, srv ContractStateServiceServer) { + // If the following call panics, it indicates UnimplementedContractStateServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ContractStateService_ServiceDesc, srv) +} + +func _ContractStateService_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractStateServiceServer).GetInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ContractStateService_GetInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractStateServiceServer).GetInfo(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ContractStateService_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.HealthCheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractStateServiceServer).HealthCheck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ContractStateService_HealthCheck_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractStateServiceServer).HealthCheck(ctx, req.(*v1.HealthCheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ContractStateService_GetContractStateEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetContractStateEventsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ContractStateServiceServer).GetContractStateEvents(m, &grpc.GenericServerStream[GetContractStateEventsRequest, ContractStateEvent]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ContractStateService_GetContractStateEventsServer = grpc.ServerStreamingServer[ContractStateEvent] + +// ContractStateService_ServiceDesc is the grpc.ServiceDesc for ContractStateService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ContractStateService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "stellar.v1.ContractStateService", + HandlerType: (*ContractStateServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetInfo", + Handler: _ContractStateService_GetInfo_Handler, + }, + { + MethodName: "HealthCheck", + Handler: _ContractStateService_HealthCheck_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetContractStateEvents", + Handler: _ContractStateService_GetContractStateEvents_Handler, + ServerStreams: true, + }, + }, + Metadata: "stellar/v1/contract_state.proto", +} diff --git a/go/gen/stellar/v1/defi_position.pb.go b/go/gen/stellar/v1/defi_position.pb.go new file mode 100644 index 0000000..abf9fd1 --- /dev/null +++ b/go/gen/stellar/v1/defi_position.pb.go @@ -0,0 +1,722 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v7.34.0 +// source: stellar/v1/defi_position.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) +) + +// Protocol identifies the DeFi protocol a position belongs to. +type Protocol int32 + +const ( + Protocol_PROTOCOL_UNKNOWN Protocol = 0 + Protocol_PROTOCOL_BLEND Protocol = 1 + Protocol_PROTOCOL_SOROSWAP Protocol = 2 + Protocol_PROTOCOL_AQUARIUS Protocol = 3 + Protocol_PROTOCOL_FXDAO Protocol = 4 + Protocol_PROTOCOL_PHOENIX Protocol = 5 +) + +// Enum value maps for Protocol. +var ( + Protocol_name = map[int32]string{ + 0: "PROTOCOL_UNKNOWN", + 1: "PROTOCOL_BLEND", + 2: "PROTOCOL_SOROSWAP", + 3: "PROTOCOL_AQUARIUS", + 4: "PROTOCOL_FXDAO", + 5: "PROTOCOL_PHOENIX", + } + Protocol_value = map[string]int32{ + "PROTOCOL_UNKNOWN": 0, + "PROTOCOL_BLEND": 1, + "PROTOCOL_SOROSWAP": 2, + "PROTOCOL_AQUARIUS": 3, + "PROTOCOL_FXDAO": 4, + "PROTOCOL_PHOENIX": 5, + } +) + +func (x Protocol) Enum() *Protocol { + p := new(Protocol) + *p = x + return p +} + +func (x Protocol) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_stellar_v1_defi_position_proto_enumTypes[0].Descriptor() +} + +func (Protocol) Type() protoreflect.EnumType { + return &file_stellar_v1_defi_position_proto_enumTypes[0] +} + +func (x Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Protocol.Descriptor instead. +func (Protocol) EnumDescriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{0} +} + +// PositionType classifies the nature of a DeFi position. +type PositionType int32 + +const ( + PositionType_POSITION_TYPE_UNKNOWN PositionType = 0 + PositionType_POSITION_TYPE_LENDING PositionType = 1 + PositionType_POSITION_TYPE_BORROWING PositionType = 2 + PositionType_POSITION_TYPE_LP PositionType = 3 + PositionType_POSITION_TYPE_VAULT PositionType = 4 +) + +// Enum value maps for PositionType. +var ( + PositionType_name = map[int32]string{ + 0: "POSITION_TYPE_UNKNOWN", + 1: "POSITION_TYPE_LENDING", + 2: "POSITION_TYPE_BORROWING", + 3: "POSITION_TYPE_LP", + 4: "POSITION_TYPE_VAULT", + } + PositionType_value = map[string]int32{ + "POSITION_TYPE_UNKNOWN": 0, + "POSITION_TYPE_LENDING": 1, + "POSITION_TYPE_BORROWING": 2, + "POSITION_TYPE_LP": 3, + "POSITION_TYPE_VAULT": 4, + } +) + +func (x PositionType) Enum() *PositionType { + p := new(PositionType) + *p = x + return p +} + +func (x PositionType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PositionType) Descriptor() protoreflect.EnumDescriptor { + return file_stellar_v1_defi_position_proto_enumTypes[1].Descriptor() +} + +func (PositionType) Type() protoreflect.EnumType { + return &file_stellar_v1_defi_position_proto_enumTypes[1] +} + +func (x PositionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PositionType.Descriptor instead. +func (PositionType) EnumDescriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{1} +} + +// PositionAsset represents an individual asset within a position. +type PositionAsset struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetCode string `protobuf:"bytes,1,opt,name=asset_code,json=assetCode,proto3" json:"asset_code,omitempty"` + AssetIssuer string `protobuf:"bytes,2,opt,name=asset_issuer,json=assetIssuer,proto3" json:"asset_issuer,omitempty"` + ContractId string `protobuf:"bytes,3,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // For Soroban token contracts + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // Decimal string, preserves precision + ValueUsd string `protobuf:"bytes,5,opt,name=value_usd,json=valueUsd,proto3" json:"value_usd,omitempty"` // USD value as decimal string + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PositionAsset) Reset() { + *x = PositionAsset{} + mi := &file_stellar_v1_defi_position_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PositionAsset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PositionAsset) ProtoMessage() {} + +func (x *PositionAsset) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_defi_position_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 PositionAsset.ProtoReflect.Descriptor instead. +func (*PositionAsset) Descriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{0} +} + +func (x *PositionAsset) GetAssetCode() string { + if x != nil { + return x.AssetCode + } + return "" +} + +func (x *PositionAsset) GetAssetIssuer() string { + if x != nil { + return x.AssetIssuer + } + return "" +} + +func (x *PositionAsset) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *PositionAsset) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *PositionAsset) GetValueUsd() string { + if x != nil { + return x.ValueUsd + } + return "" +} + +// DeFiPosition represents a user's position in a single DeFi protocol. +type DeFiPosition struct { + state protoimpl.MessageState `protogen:"open.v1"` + // User address (G... or C...) + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Protocol this position belongs to + Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=stellar.v1.Protocol" json:"protocol,omitempty"` + // Type of position + PositionType PositionType `protobuf:"varint,3,opt,name=position_type,json=positionType,proto3,enum=stellar.v1.PositionType" json:"position_type,omitempty"` + // Assets in this position + Assets []*PositionAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"` + // Aggregated values (decimal strings) + TotalValue string `protobuf:"bytes,5,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` // Current total value + TotalDeposited string `protobuf:"bytes,6,opt,name=total_deposited,json=totalDeposited,proto3" json:"total_deposited,omitempty"` // Total deposit value + TotalBorrowed string `protobuf:"bytes,7,opt,name=total_borrowed,json=totalBorrowed,proto3" json:"total_borrowed,omitempty"` // Total borrowed value (if applicable) + CurrentReturn string `protobuf:"bytes,8,opt,name=current_return,json=currentReturn,proto3" json:"current_return,omitempty"` // Current return/yield (if applicable) + // Health factor for lending/borrowing positions (optional) + HealthFactor *string `protobuf:"bytes,9,opt,name=health_factor,json=healthFactor,proto3,oneof" json:"health_factor,omitempty"` + // Protocol-specific metadata (extensible per reviewer feedback) + Metadata map[string]string `protobuf:"bytes,10,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // Position metadata + Meta *DeFiPositionMeta `protobuf:"bytes,15,opt,name=meta,proto3" json:"meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeFiPosition) Reset() { + *x = DeFiPosition{} + mi := &file_stellar_v1_defi_position_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeFiPosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeFiPosition) ProtoMessage() {} + +func (x *DeFiPosition) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_defi_position_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 DeFiPosition.ProtoReflect.Descriptor instead. +func (*DeFiPosition) Descriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{1} +} + +func (x *DeFiPosition) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *DeFiPosition) GetProtocol() Protocol { + if x != nil { + return x.Protocol + } + return Protocol_PROTOCOL_UNKNOWN +} + +func (x *DeFiPosition) GetPositionType() PositionType { + if x != nil { + return x.PositionType + } + return PositionType_POSITION_TYPE_UNKNOWN +} + +func (x *DeFiPosition) GetAssets() []*PositionAsset { + if x != nil { + return x.Assets + } + return nil +} + +func (x *DeFiPosition) GetTotalValue() string { + if x != nil { + return x.TotalValue + } + return "" +} + +func (x *DeFiPosition) GetTotalDeposited() string { + if x != nil { + return x.TotalDeposited + } + return "" +} + +func (x *DeFiPosition) GetTotalBorrowed() string { + if x != nil { + return x.TotalBorrowed + } + return "" +} + +func (x *DeFiPosition) GetCurrentReturn() string { + if x != nil { + return x.CurrentReturn + } + return "" +} + +func (x *DeFiPosition) GetHealthFactor() string { + if x != nil && x.HealthFactor != nil { + return *x.HealthFactor + } + return "" +} + +func (x *DeFiPosition) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *DeFiPosition) GetMeta() *DeFiPositionMeta { + if x != nil { + return x.Meta + } + return nil +} + +// DeFiPositionMeta contains context about when this position was observed. +type DeFiPositionMeta struct { + state protoimpl.MessageState `protogen:"open.v1"` + LedgerSequence uint32 `protobuf:"varint,1,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + LedgerClosedAt int64 `protobuf:"varint,2,opt,name=ledger_closed_at,json=ledgerClosedAt,proto3" json:"ledger_closed_at,omitempty"` // Unix timestamp + ObservedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeFiPositionMeta) Reset() { + *x = DeFiPositionMeta{} + mi := &file_stellar_v1_defi_position_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeFiPositionMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeFiPositionMeta) ProtoMessage() {} + +func (x *DeFiPositionMeta) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_defi_position_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 DeFiPositionMeta.ProtoReflect.Descriptor instead. +func (*DeFiPositionMeta) Descriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{2} +} + +func (x *DeFiPositionMeta) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *DeFiPositionMeta) GetLedgerClosedAt() int64 { + if x != nil { + return x.LedgerClosedAt + } + return 0 +} + +func (x *DeFiPositionMeta) GetObservedAt() *timestamppb.Timestamp { + if x != nil { + return x.ObservedAt + } + return nil +} + +// DeFiPositionBatch represents positions extracted from a single ledger. +type DeFiPositionBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + Positions []*DeFiPosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeFiPositionBatch) Reset() { + *x = DeFiPositionBatch{} + mi := &file_stellar_v1_defi_position_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeFiPositionBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeFiPositionBatch) ProtoMessage() {} + +func (x *DeFiPositionBatch) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_defi_position_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 DeFiPositionBatch.ProtoReflect.Descriptor instead. +func (*DeFiPositionBatch) Descriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{3} +} + +func (x *DeFiPositionBatch) GetPositions() []*DeFiPosition { + if x != nil { + return x.Positions + } + return nil +} + +// AggregatedPosition represents a user's total DeFi exposure across protocols. +type AggregatedPosition struct { + state protoimpl.MessageState `protogen:"open.v1"` + // User address + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // All positions across protocols + Positions []*DeFiPosition `protobuf:"bytes,2,rep,name=positions,proto3" json:"positions,omitempty"` + // Aggregated totals (decimal strings) + TotalValue string `protobuf:"bytes,3,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` + TotalDeposited string `protobuf:"bytes,4,opt,name=total_deposited,json=totalDeposited,proto3" json:"total_deposited,omitempty"` + TotalBorrowed string `protobuf:"bytes,5,opt,name=total_borrowed,json=totalBorrowed,proto3" json:"total_borrowed,omitempty"` + // Observation context + Meta *DeFiPositionMeta `protobuf:"bytes,10,opt,name=meta,proto3" json:"meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AggregatedPosition) Reset() { + *x = AggregatedPosition{} + mi := &file_stellar_v1_defi_position_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AggregatedPosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AggregatedPosition) ProtoMessage() {} + +func (x *AggregatedPosition) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_defi_position_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 AggregatedPosition.ProtoReflect.Descriptor instead. +func (*AggregatedPosition) Descriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{4} +} + +func (x *AggregatedPosition) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *AggregatedPosition) GetPositions() []*DeFiPosition { + if x != nil { + return x.Positions + } + return nil +} + +func (x *AggregatedPosition) GetTotalValue() string { + if x != nil { + return x.TotalValue + } + return "" +} + +func (x *AggregatedPosition) GetTotalDeposited() string { + if x != nil { + return x.TotalDeposited + } + return "" +} + +func (x *AggregatedPosition) GetTotalBorrowed() string { + if x != nil { + return x.TotalBorrowed + } + return "" +} + +func (x *AggregatedPosition) GetMeta() *DeFiPositionMeta { + if x != nil { + return x.Meta + } + return nil +} + +// AggregatedPositionBatch represents aggregated positions from a single ledger. +type AggregatedPositionBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + Positions []*AggregatedPosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AggregatedPositionBatch) Reset() { + *x = AggregatedPositionBatch{} + mi := &file_stellar_v1_defi_position_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AggregatedPositionBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AggregatedPositionBatch) ProtoMessage() {} + +func (x *AggregatedPositionBatch) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_defi_position_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 AggregatedPositionBatch.ProtoReflect.Descriptor instead. +func (*AggregatedPositionBatch) Descriptor() ([]byte, []int) { + return file_stellar_v1_defi_position_proto_rawDescGZIP(), []int{5} +} + +func (x *AggregatedPositionBatch) GetPositions() []*AggregatedPosition { + if x != nil { + return x.Positions + } + return nil +} + +var File_stellar_v1_defi_position_proto protoreflect.FileDescriptor + +const file_stellar_v1_defi_position_proto_rawDesc = "" + + "\n" + + "\x1estellar/v1/defi_position.proto\x12\n" + + "stellar.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x01\n" + + "\rPositionAsset\x12\x1d\n" + + "\n" + + "asset_code\x18\x01 \x01(\tR\tassetCode\x12!\n" + + "\fasset_issuer\x18\x02 \x01(\tR\vassetIssuer\x12\x1f\n" + + "\vcontract_id\x18\x03 \x01(\tR\n" + + "contractId\x12\x16\n" + + "\x06amount\x18\x04 \x01(\tR\x06amount\x12\x1b\n" + + "\tvalue_usd\x18\x05 \x01(\tR\bvalueUsd\"\xd3\x04\n" + + "\fDeFiPosition\x12\x18\n" + + "\aaddress\x18\x01 \x01(\tR\aaddress\x120\n" + + "\bprotocol\x18\x02 \x01(\x0e2\x14.stellar.v1.ProtocolR\bprotocol\x12=\n" + + "\rposition_type\x18\x03 \x01(\x0e2\x18.stellar.v1.PositionTypeR\fpositionType\x121\n" + + "\x06assets\x18\x04 \x03(\v2\x19.stellar.v1.PositionAssetR\x06assets\x12\x1f\n" + + "\vtotal_value\x18\x05 \x01(\tR\n" + + "totalValue\x12'\n" + + "\x0ftotal_deposited\x18\x06 \x01(\tR\x0etotalDeposited\x12%\n" + + "\x0etotal_borrowed\x18\a \x01(\tR\rtotalBorrowed\x12%\n" + + "\x0ecurrent_return\x18\b \x01(\tR\rcurrentReturn\x12(\n" + + "\rhealth_factor\x18\t \x01(\tH\x00R\fhealthFactor\x88\x01\x01\x12B\n" + + "\bmetadata\x18\n" + + " \x03(\v2&.stellar.v1.DeFiPosition.MetadataEntryR\bmetadata\x120\n" + + "\x04meta\x18\x0f \x01(\v2\x1c.stellar.v1.DeFiPositionMetaR\x04meta\x1a;\n" + + "\rMetadataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x10\n" + + "\x0e_health_factor\"\xa2\x01\n" + + "\x10DeFiPositionMeta\x12'\n" + + "\x0fledger_sequence\x18\x01 \x01(\rR\x0eledgerSequence\x12(\n" + + "\x10ledger_closed_at\x18\x02 \x01(\x03R\x0eledgerClosedAt\x12;\n" + + "\vobserved_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "observedAt\"K\n" + + "\x11DeFiPositionBatch\x126\n" + + "\tpositions\x18\x01 \x03(\v2\x18.stellar.v1.DeFiPositionR\tpositions\"\x89\x02\n" + + "\x12AggregatedPosition\x12\x18\n" + + "\aaddress\x18\x01 \x01(\tR\aaddress\x126\n" + + "\tpositions\x18\x02 \x03(\v2\x18.stellar.v1.DeFiPositionR\tpositions\x12\x1f\n" + + "\vtotal_value\x18\x03 \x01(\tR\n" + + "totalValue\x12'\n" + + "\x0ftotal_deposited\x18\x04 \x01(\tR\x0etotalDeposited\x12%\n" + + "\x0etotal_borrowed\x18\x05 \x01(\tR\rtotalBorrowed\x120\n" + + "\x04meta\x18\n" + + " \x01(\v2\x1c.stellar.v1.DeFiPositionMetaR\x04meta\"W\n" + + "\x17AggregatedPositionBatch\x12<\n" + + "\tpositions\x18\x01 \x03(\v2\x1e.stellar.v1.AggregatedPositionR\tpositions*\x8c\x01\n" + + "\bProtocol\x12\x14\n" + + "\x10PROTOCOL_UNKNOWN\x10\x00\x12\x12\n" + + "\x0ePROTOCOL_BLEND\x10\x01\x12\x15\n" + + "\x11PROTOCOL_SOROSWAP\x10\x02\x12\x15\n" + + "\x11PROTOCOL_AQUARIUS\x10\x03\x12\x12\n" + + "\x0ePROTOCOL_FXDAO\x10\x04\x12\x14\n" + + "\x10PROTOCOL_PHOENIX\x10\x05*\x90\x01\n" + + "\fPositionType\x12\x19\n" + + "\x15POSITION_TYPE_UNKNOWN\x10\x00\x12\x19\n" + + "\x15POSITION_TYPE_LENDING\x10\x01\x12\x1b\n" + + "\x17POSITION_TYPE_BORROWING\x10\x02\x12\x14\n" + + "\x10POSITION_TYPE_LP\x10\x03\x12\x17\n" + + "\x13POSITION_TYPE_VAULT\x10\x04B>Z stellar.v1.Protocol + 1, // 1: stellar.v1.DeFiPosition.position_type:type_name -> stellar.v1.PositionType + 2, // 2: stellar.v1.DeFiPosition.assets:type_name -> stellar.v1.PositionAsset + 8, // 3: stellar.v1.DeFiPosition.metadata:type_name -> stellar.v1.DeFiPosition.MetadataEntry + 4, // 4: stellar.v1.DeFiPosition.meta:type_name -> stellar.v1.DeFiPositionMeta + 9, // 5: stellar.v1.DeFiPositionMeta.observed_at:type_name -> google.protobuf.Timestamp + 3, // 6: stellar.v1.DeFiPositionBatch.positions:type_name -> stellar.v1.DeFiPosition + 3, // 7: stellar.v1.AggregatedPosition.positions:type_name -> stellar.v1.DeFiPosition + 4, // 8: stellar.v1.AggregatedPosition.meta:type_name -> stellar.v1.DeFiPositionMeta + 6, // 9: stellar.v1.AggregatedPositionBatch.positions:type_name -> stellar.v1.AggregatedPosition + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_stellar_v1_defi_position_proto_init() } +func file_stellar_v1_defi_position_proto_init() { + if File_stellar_v1_defi_position_proto != nil { + return + } + file_stellar_v1_defi_position_proto_msgTypes[1].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_stellar_v1_defi_position_proto_rawDesc), len(file_stellar_v1_defi_position_proto_rawDesc)), + NumEnums: 2, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_stellar_v1_defi_position_proto_goTypes, + DependencyIndexes: file_stellar_v1_defi_position_proto_depIdxs, + EnumInfos: file_stellar_v1_defi_position_proto_enumTypes, + MessageInfos: file_stellar_v1_defi_position_proto_msgTypes, + }.Build() + File_stellar_v1_defi_position_proto = out.File + file_stellar_v1_defi_position_proto_goTypes = nil + file_stellar_v1_defi_position_proto_depIdxs = nil +} diff --git a/go/gen/stellar/v1/dex_swap.pb.go b/go/gen/stellar/v1/dex_swap.pb.go new file mode 100644 index 0000000..0b1935e --- /dev/null +++ b/go/gen/stellar/v1/dex_swap.pb.go @@ -0,0 +1,378 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v7.34.0 +// source: stellar/v1/dex_swap.proto + +package stellarv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// DexSwap represents a normalized DEX swap across any Stellar protocol. +type DexSwap struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Account that performed the swap + Trader string `protobuf:"bytes,1,opt,name=trader,proto3" json:"trader,omitempty"` + // Sold side + SoldAssetCode string `protobuf:"bytes,2,opt,name=sold_asset_code,json=soldAssetCode,proto3" json:"sold_asset_code,omitempty"` + SoldAssetIssuer string `protobuf:"bytes,3,opt,name=sold_asset_issuer,json=soldAssetIssuer,proto3" json:"sold_asset_issuer,omitempty"` + SoldContractId string `protobuf:"bytes,4,opt,name=sold_contract_id,json=soldContractId,proto3" json:"sold_contract_id,omitempty"` + SoldAmount string `protobuf:"bytes,5,opt,name=sold_amount,json=soldAmount,proto3" json:"sold_amount,omitempty"` // Decimal string + // Bought side + BoughtAssetCode string `protobuf:"bytes,6,opt,name=bought_asset_code,json=boughtAssetCode,proto3" json:"bought_asset_code,omitempty"` + BoughtAssetIssuer string `protobuf:"bytes,7,opt,name=bought_asset_issuer,json=boughtAssetIssuer,proto3" json:"bought_asset_issuer,omitempty"` + BoughtContractId string `protobuf:"bytes,8,opt,name=bought_contract_id,json=boughtContractId,proto3" json:"bought_contract_id,omitempty"` + BoughtAmount string `protobuf:"bytes,9,opt,name=bought_amount,json=boughtAmount,proto3" json:"bought_amount,omitempty"` // Decimal string + // Protocol that facilitated this swap + Protocol Protocol `protobuf:"varint,10,opt,name=protocol,proto3,enum=stellar.v1.Protocol" json:"protocol,omitempty"` + // Pool or pair ID (protocol-specific) + PoolId string `protobuf:"bytes,11,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` + // Swap route (for multi-hop swaps) + Route []string `protobuf:"bytes,12,rep,name=route,proto3" json:"route,omitempty"` + // Event metadata + Meta *DexSwapMeta `protobuf:"bytes,15,opt,name=meta,proto3" json:"meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DexSwap) Reset() { + *x = DexSwap{} + mi := &file_stellar_v1_dex_swap_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DexSwap) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DexSwap) ProtoMessage() {} + +func (x *DexSwap) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_dex_swap_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 DexSwap.ProtoReflect.Descriptor instead. +func (*DexSwap) Descriptor() ([]byte, []int) { + return file_stellar_v1_dex_swap_proto_rawDescGZIP(), []int{0} +} + +func (x *DexSwap) GetTrader() string { + if x != nil { + return x.Trader + } + return "" +} + +func (x *DexSwap) GetSoldAssetCode() string { + if x != nil { + return x.SoldAssetCode + } + return "" +} + +func (x *DexSwap) GetSoldAssetIssuer() string { + if x != nil { + return x.SoldAssetIssuer + } + return "" +} + +func (x *DexSwap) GetSoldContractId() string { + if x != nil { + return x.SoldContractId + } + return "" +} + +func (x *DexSwap) GetSoldAmount() string { + if x != nil { + return x.SoldAmount + } + return "" +} + +func (x *DexSwap) GetBoughtAssetCode() string { + if x != nil { + return x.BoughtAssetCode + } + return "" +} + +func (x *DexSwap) GetBoughtAssetIssuer() string { + if x != nil { + return x.BoughtAssetIssuer + } + return "" +} + +func (x *DexSwap) GetBoughtContractId() string { + if x != nil { + return x.BoughtContractId + } + return "" +} + +func (x *DexSwap) GetBoughtAmount() string { + if x != nil { + return x.BoughtAmount + } + return "" +} + +func (x *DexSwap) GetProtocol() Protocol { + if x != nil { + return x.Protocol + } + return Protocol_PROTOCOL_UNKNOWN +} + +func (x *DexSwap) GetPoolId() string { + if x != nil { + return x.PoolId + } + return "" +} + +func (x *DexSwap) GetRoute() []string { + if x != nil { + return x.Route + } + return nil +} + +func (x *DexSwap) GetMeta() *DexSwapMeta { + if x != nil { + return x.Meta + } + return nil +} + +// DexSwapMeta contains chronological context for the swap. +type DexSwapMeta struct { + state protoimpl.MessageState `protogen:"open.v1"` + LedgerSequence uint32 `protobuf:"varint,1,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + LedgerClosedAt int64 `protobuf:"varint,2,opt,name=ledger_closed_at,json=ledgerClosedAt,proto3" json:"ledger_closed_at,omitempty"` // Unix timestamp + TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + TxSuccessful bool `protobuf:"varint,5,opt,name=tx_successful,json=txSuccessful,proto3" json:"tx_successful,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DexSwapMeta) Reset() { + *x = DexSwapMeta{} + mi := &file_stellar_v1_dex_swap_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DexSwapMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DexSwapMeta) ProtoMessage() {} + +func (x *DexSwapMeta) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_dex_swap_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 DexSwapMeta.ProtoReflect.Descriptor instead. +func (*DexSwapMeta) Descriptor() ([]byte, []int) { + return file_stellar_v1_dex_swap_proto_rawDescGZIP(), []int{1} +} + +func (x *DexSwapMeta) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *DexSwapMeta) GetLedgerClosedAt() int64 { + if x != nil { + return x.LedgerClosedAt + } + return 0 +} + +func (x *DexSwapMeta) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +func (x *DexSwapMeta) GetTxIndex() uint32 { + if x != nil { + return x.TxIndex + } + return 0 +} + +func (x *DexSwapMeta) GetTxSuccessful() bool { + if x != nil { + return x.TxSuccessful + } + return false +} + +// DexSwapBatch represents swaps extracted from a single ledger. +type DexSwapBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + Swaps []*DexSwap `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DexSwapBatch) Reset() { + *x = DexSwapBatch{} + mi := &file_stellar_v1_dex_swap_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DexSwapBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DexSwapBatch) ProtoMessage() {} + +func (x *DexSwapBatch) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_dex_swap_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 DexSwapBatch.ProtoReflect.Descriptor instead. +func (*DexSwapBatch) Descriptor() ([]byte, []int) { + return file_stellar_v1_dex_swap_proto_rawDescGZIP(), []int{2} +} + +func (x *DexSwapBatch) GetSwaps() []*DexSwap { + if x != nil { + return x.Swaps + } + return nil +} + +var File_stellar_v1_dex_swap_proto protoreflect.FileDescriptor + +const file_stellar_v1_dex_swap_proto_rawDesc = "" + + "\n" + + "\x19stellar/v1/dex_swap.proto\x12\n" + + "stellar.v1\x1a\x1estellar/v1/defi_position.proto\"\xfd\x03\n" + + "\aDexSwap\x12\x16\n" + + "\x06trader\x18\x01 \x01(\tR\x06trader\x12&\n" + + "\x0fsold_asset_code\x18\x02 \x01(\tR\rsoldAssetCode\x12*\n" + + "\x11sold_asset_issuer\x18\x03 \x01(\tR\x0fsoldAssetIssuer\x12(\n" + + "\x10sold_contract_id\x18\x04 \x01(\tR\x0esoldContractId\x12\x1f\n" + + "\vsold_amount\x18\x05 \x01(\tR\n" + + "soldAmount\x12*\n" + + "\x11bought_asset_code\x18\x06 \x01(\tR\x0fboughtAssetCode\x12.\n" + + "\x13bought_asset_issuer\x18\a \x01(\tR\x11boughtAssetIssuer\x12,\n" + + "\x12bought_contract_id\x18\b \x01(\tR\x10boughtContractId\x12#\n" + + "\rbought_amount\x18\t \x01(\tR\fboughtAmount\x120\n" + + "\bprotocol\x18\n" + + " \x01(\x0e2\x14.stellar.v1.ProtocolR\bprotocol\x12\x17\n" + + "\apool_id\x18\v \x01(\tR\x06poolId\x12\x14\n" + + "\x05route\x18\f \x03(\tR\x05route\x12+\n" + + "\x04meta\x18\x0f \x01(\v2\x17.stellar.v1.DexSwapMetaR\x04meta\"\xb9\x01\n" + + "\vDexSwapMeta\x12'\n" + + "\x0fledger_sequence\x18\x01 \x01(\rR\x0eledgerSequence\x12(\n" + + "\x10ledger_closed_at\x18\x02 \x01(\x03R\x0eledgerClosedAt\x12\x17\n" + + "\atx_hash\x18\x03 \x01(\tR\x06txHash\x12\x19\n" + + "\btx_index\x18\x04 \x01(\rR\atxIndex\x12#\n" + + "\rtx_successful\x18\x05 \x01(\bR\ftxSuccessful\"9\n" + + "\fDexSwapBatch\x12)\n" + + "\x05swaps\x18\x01 \x03(\v2\x13.stellar.v1.DexSwapR\x05swapsB>Z stellar.v1.Protocol + 1, // 1: stellar.v1.DexSwap.meta:type_name -> stellar.v1.DexSwapMeta + 0, // 2: stellar.v1.DexSwapBatch.swaps:type_name -> stellar.v1.DexSwap + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_stellar_v1_dex_swap_proto_init() } +func file_stellar_v1_dex_swap_proto_init() { + if File_stellar_v1_dex_swap_proto != nil { + return + } + file_stellar_v1_defi_position_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_stellar_v1_dex_swap_proto_rawDesc), len(file_stellar_v1_dex_swap_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_stellar_v1_dex_swap_proto_goTypes, + DependencyIndexes: file_stellar_v1_dex_swap_proto_depIdxs, + MessageInfos: file_stellar_v1_dex_swap_proto_msgTypes, + }.Build() + File_stellar_v1_dex_swap_proto = out.File + file_stellar_v1_dex_swap_proto_goTypes = nil + file_stellar_v1_dex_swap_proto_depIdxs = nil +} diff --git a/go/gen/stellar/v1/liquidity_pool_events.pb.go b/go/gen/stellar/v1/liquidity_pool_events.pb.go new file mode 100644 index 0000000..443d78a --- /dev/null +++ b/go/gen/stellar/v1/liquidity_pool_events.pb.go @@ -0,0 +1,599 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v7.34.0 +// source: stellar/v1/liquidity_pool_events.proto + +package stellarv1 + +import ( + v1 "github.com/withObsrvr/flow-proto/go/gen/flowctl/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + 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) +) + +// LiquidityPoolEvent represents a liquidity pool operation. +type LiquidityPoolEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Operation type: "deposit", "withdraw", or "trade" + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // Pool ID (hex-encoded) + PoolId string `protobuf:"bytes,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` + // Account performing the operation + Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` + // Assets involved in the operation + Assets []*PoolAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"` + // Shares minted (deposit) or burned (withdraw) + Shares string `protobuf:"bytes,5,opt,name=shares,proto3" json:"shares,omitempty"` + // Pool reserves before the operation + ReservesBefore []*ReserveAmount `protobuf:"bytes,6,rep,name=reserves_before,json=reservesBefore,proto3" json:"reserves_before,omitempty"` + // Pool reserves after the operation + ReservesAfter []*ReserveAmount `protobuf:"bytes,7,rep,name=reserves_after,json=reservesAfter,proto3" json:"reserves_after,omitempty"` + // Event metadata + Meta *LiquidityPoolEventMeta `protobuf:"bytes,10,opt,name=meta,proto3" json:"meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LiquidityPoolEvent) Reset() { + *x = LiquidityPoolEvent{} + mi := &file_stellar_v1_liquidity_pool_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LiquidityPoolEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiquidityPoolEvent) ProtoMessage() {} + +func (x *LiquidityPoolEvent) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_liquidity_pool_events_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 LiquidityPoolEvent.ProtoReflect.Descriptor instead. +func (*LiquidityPoolEvent) Descriptor() ([]byte, []int) { + return file_stellar_v1_liquidity_pool_events_proto_rawDescGZIP(), []int{0} +} + +func (x *LiquidityPoolEvent) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *LiquidityPoolEvent) GetPoolId() string { + if x != nil { + return x.PoolId + } + return "" +} + +func (x *LiquidityPoolEvent) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *LiquidityPoolEvent) GetAssets() []*PoolAsset { + if x != nil { + return x.Assets + } + return nil +} + +func (x *LiquidityPoolEvent) GetShares() string { + if x != nil { + return x.Shares + } + return "" +} + +func (x *LiquidityPoolEvent) GetReservesBefore() []*ReserveAmount { + if x != nil { + return x.ReservesBefore + } + return nil +} + +func (x *LiquidityPoolEvent) GetReservesAfter() []*ReserveAmount { + if x != nil { + return x.ReservesAfter + } + return nil +} + +func (x *LiquidityPoolEvent) GetMeta() *LiquidityPoolEventMeta { + if x != nil { + return x.Meta + } + return nil +} + +// PoolAsset represents an asset and amount in a pool operation. +type PoolAsset struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetType string `protobuf:"bytes,1,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` + AssetCode string `protobuf:"bytes,2,opt,name=asset_code,json=assetCode,proto3" json:"asset_code,omitempty"` + AssetIssuer string `protobuf:"bytes,3,opt,name=asset_issuer,json=assetIssuer,proto3" json:"asset_issuer,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PoolAsset) Reset() { + *x = PoolAsset{} + mi := &file_stellar_v1_liquidity_pool_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PoolAsset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoolAsset) ProtoMessage() {} + +func (x *PoolAsset) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_liquidity_pool_events_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 PoolAsset.ProtoReflect.Descriptor instead. +func (*PoolAsset) Descriptor() ([]byte, []int) { + return file_stellar_v1_liquidity_pool_events_proto_rawDescGZIP(), []int{1} +} + +func (x *PoolAsset) GetAssetType() string { + if x != nil { + return x.AssetType + } + return "" +} + +func (x *PoolAsset) GetAssetCode() string { + if x != nil { + return x.AssetCode + } + return "" +} + +func (x *PoolAsset) GetAssetIssuer() string { + if x != nil { + return x.AssetIssuer + } + return "" +} + +func (x *PoolAsset) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +// ReserveAmount represents a pool reserve. +type ReserveAmount struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetType string `protobuf:"bytes,1,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` + AssetCode string `protobuf:"bytes,2,opt,name=asset_code,json=assetCode,proto3" json:"asset_code,omitempty"` + AssetIssuer string `protobuf:"bytes,3,opt,name=asset_issuer,json=assetIssuer,proto3" json:"asset_issuer,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReserveAmount) Reset() { + *x = ReserveAmount{} + mi := &file_stellar_v1_liquidity_pool_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReserveAmount) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReserveAmount) ProtoMessage() {} + +func (x *ReserveAmount) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_liquidity_pool_events_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 ReserveAmount.ProtoReflect.Descriptor instead. +func (*ReserveAmount) Descriptor() ([]byte, []int) { + return file_stellar_v1_liquidity_pool_events_proto_rawDescGZIP(), []int{2} +} + +func (x *ReserveAmount) GetAssetType() string { + if x != nil { + return x.AssetType + } + return "" +} + +func (x *ReserveAmount) GetAssetCode() string { + if x != nil { + return x.AssetCode + } + return "" +} + +func (x *ReserveAmount) GetAssetIssuer() string { + if x != nil { + return x.AssetIssuer + } + return "" +} + +func (x *ReserveAmount) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +// LiquidityPoolEventMeta contains chronological context for the event. +type LiquidityPoolEventMeta struct { + state protoimpl.MessageState `protogen:"open.v1"` + LedgerSequence uint32 `protobuf:"varint,1,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + LedgerClosedAt int64 `protobuf:"varint,2,opt,name=ledger_closed_at,json=ledgerClosedAt,proto3" json:"ledger_closed_at,omitempty"` // Unix timestamp + TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + OperationIndex uint32 `protobuf:"varint,5,opt,name=operation_index,json=operationIndex,proto3" json:"operation_index,omitempty"` + TxSuccessful bool `protobuf:"varint,6,opt,name=tx_successful,json=txSuccessful,proto3" json:"tx_successful,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LiquidityPoolEventMeta) Reset() { + *x = LiquidityPoolEventMeta{} + mi := &file_stellar_v1_liquidity_pool_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LiquidityPoolEventMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiquidityPoolEventMeta) ProtoMessage() {} + +func (x *LiquidityPoolEventMeta) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_liquidity_pool_events_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 LiquidityPoolEventMeta.ProtoReflect.Descriptor instead. +func (*LiquidityPoolEventMeta) Descriptor() ([]byte, []int) { + return file_stellar_v1_liquidity_pool_events_proto_rawDescGZIP(), []int{3} +} + +func (x *LiquidityPoolEventMeta) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *LiquidityPoolEventMeta) GetLedgerClosedAt() int64 { + if x != nil { + return x.LedgerClosedAt + } + return 0 +} + +func (x *LiquidityPoolEventMeta) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +func (x *LiquidityPoolEventMeta) GetTxIndex() uint32 { + if x != nil { + return x.TxIndex + } + return 0 +} + +func (x *LiquidityPoolEventMeta) GetOperationIndex() uint32 { + if x != nil { + return x.OperationIndex + } + return 0 +} + +func (x *LiquidityPoolEventMeta) GetTxSuccessful() bool { + if x != nil { + return x.TxSuccessful + } + return false +} + +// GetLiquidityPoolEventsRequest defines filtering for liquidity pool events. +type GetLiquidityPoolEventsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + StartLedger uint32 `protobuf:"varint,1,opt,name=start_ledger,json=startLedger,proto3" json:"start_ledger,omitempty"` + EndLedger uint32 `protobuf:"varint,2,opt,name=end_ledger,json=endLedger,proto3" json:"end_ledger,omitempty"` // 0 for continuous streaming + // Optional filters + PoolIds []string `protobuf:"bytes,3,rep,name=pool_ids,json=poolIds,proto3" json:"pool_ids,omitempty"` // Filter by specific pool IDs + EventTypes []string `protobuf:"bytes,4,rep,name=event_types,json=eventTypes,proto3" json:"event_types,omitempty"` // Filter by operation type (deposit, withdraw, trade) + IncludeFailed bool `protobuf:"varint,5,opt,name=include_failed,json=includeFailed,proto3" json:"include_failed,omitempty"` // Include events from failed transactions + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetLiquidityPoolEventsRequest) Reset() { + *x = GetLiquidityPoolEventsRequest{} + mi := &file_stellar_v1_liquidity_pool_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetLiquidityPoolEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLiquidityPoolEventsRequest) ProtoMessage() {} + +func (x *GetLiquidityPoolEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_liquidity_pool_events_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 GetLiquidityPoolEventsRequest.ProtoReflect.Descriptor instead. +func (*GetLiquidityPoolEventsRequest) Descriptor() ([]byte, []int) { + return file_stellar_v1_liquidity_pool_events_proto_rawDescGZIP(), []int{4} +} + +func (x *GetLiquidityPoolEventsRequest) GetStartLedger() uint32 { + if x != nil { + return x.StartLedger + } + return 0 +} + +func (x *GetLiquidityPoolEventsRequest) GetEndLedger() uint32 { + if x != nil { + return x.EndLedger + } + return 0 +} + +func (x *GetLiquidityPoolEventsRequest) GetPoolIds() []string { + if x != nil { + return x.PoolIds + } + return nil +} + +func (x *GetLiquidityPoolEventsRequest) GetEventTypes() []string { + if x != nil { + return x.EventTypes + } + return nil +} + +func (x *GetLiquidityPoolEventsRequest) GetIncludeFailed() bool { + if x != nil { + return x.IncludeFailed + } + return false +} + +// LiquidityPoolEventBatch represents a batch of events from a single ledger. +type LiquidityPoolEventBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + Events []*LiquidityPoolEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LiquidityPoolEventBatch) Reset() { + *x = LiquidityPoolEventBatch{} + mi := &file_stellar_v1_liquidity_pool_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LiquidityPoolEventBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiquidityPoolEventBatch) ProtoMessage() {} + +func (x *LiquidityPoolEventBatch) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_liquidity_pool_events_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 LiquidityPoolEventBatch.ProtoReflect.Descriptor instead. +func (*LiquidityPoolEventBatch) Descriptor() ([]byte, []int) { + return file_stellar_v1_liquidity_pool_events_proto_rawDescGZIP(), []int{5} +} + +func (x *LiquidityPoolEventBatch) GetEvents() []*LiquidityPoolEvent { + if x != nil { + return x.Events + } + return nil +} + +var File_stellar_v1_liquidity_pool_events_proto protoreflect.FileDescriptor + +const file_stellar_v1_liquidity_pool_events_proto_rawDesc = "" + + "\n" + + "&stellar/v1/liquidity_pool_events.proto\x12\n" + + "stellar.v1\x1a\x17flowctl/v1/common.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xe0\x02\n" + + "\x12LiquidityPoolEvent\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12\x17\n" + + "\apool_id\x18\x02 \x01(\tR\x06poolId\x12\x18\n" + + "\aaccount\x18\x03 \x01(\tR\aaccount\x12-\n" + + "\x06assets\x18\x04 \x03(\v2\x15.stellar.v1.PoolAssetR\x06assets\x12\x16\n" + + "\x06shares\x18\x05 \x01(\tR\x06shares\x12B\n" + + "\x0freserves_before\x18\x06 \x03(\v2\x19.stellar.v1.ReserveAmountR\x0ereservesBefore\x12@\n" + + "\x0ereserves_after\x18\a \x03(\v2\x19.stellar.v1.ReserveAmountR\rreservesAfter\x126\n" + + "\x04meta\x18\n" + + " \x01(\v2\".stellar.v1.LiquidityPoolEventMetaR\x04meta\"\x84\x01\n" + + "\tPoolAsset\x12\x1d\n" + + "\n" + + "asset_type\x18\x01 \x01(\tR\tassetType\x12\x1d\n" + + "\n" + + "asset_code\x18\x02 \x01(\tR\tassetCode\x12!\n" + + "\fasset_issuer\x18\x03 \x01(\tR\vassetIssuer\x12\x16\n" + + "\x06amount\x18\x04 \x01(\tR\x06amount\"\x88\x01\n" + + "\rReserveAmount\x12\x1d\n" + + "\n" + + "asset_type\x18\x01 \x01(\tR\tassetType\x12\x1d\n" + + "\n" + + "asset_code\x18\x02 \x01(\tR\tassetCode\x12!\n" + + "\fasset_issuer\x18\x03 \x01(\tR\vassetIssuer\x12\x16\n" + + "\x06amount\x18\x04 \x01(\tR\x06amount\"\xed\x01\n" + + "\x16LiquidityPoolEventMeta\x12'\n" + + "\x0fledger_sequence\x18\x01 \x01(\rR\x0eledgerSequence\x12(\n" + + "\x10ledger_closed_at\x18\x02 \x01(\x03R\x0eledgerClosedAt\x12\x17\n" + + "\atx_hash\x18\x03 \x01(\tR\x06txHash\x12\x19\n" + + "\btx_index\x18\x04 \x01(\rR\atxIndex\x12'\n" + + "\x0foperation_index\x18\x05 \x01(\rR\x0eoperationIndex\x12#\n" + + "\rtx_successful\x18\x06 \x01(\bR\ftxSuccessful\"\xc4\x01\n" + + "\x1dGetLiquidityPoolEventsRequest\x12!\n" + + "\fstart_ledger\x18\x01 \x01(\rR\vstartLedger\x12\x1d\n" + + "\n" + + "end_ledger\x18\x02 \x01(\rR\tendLedger\x12\x19\n" + + "\bpool_ids\x18\x03 \x03(\tR\apoolIds\x12\x1f\n" + + "\vevent_types\x18\x04 \x03(\tR\n" + + "eventTypes\x12%\n" + + "\x0einclude_failed\x18\x05 \x01(\bR\rincludeFailed\"Q\n" + + "\x17LiquidityPoolEventBatch\x126\n" + + "\x06events\x18\x01 \x03(\v2\x1e.stellar.v1.LiquidityPoolEventR\x06events2\x90\x02\n" + + "\x19LiquidityPoolEventService\x12<\n" + + "\aGetInfo\x12\x16.google.protobuf.Empty\x1a\x19.flowctl.v1.ComponentInfo\x12N\n" + + "\vHealthCheck\x12\x1e.flowctl.v1.HealthCheckRequest\x1a\x1f.flowctl.v1.HealthCheckResponse\x12e\n" + + "\x16GetLiquidityPoolEvents\x12).stellar.v1.GetLiquidityPoolEventsRequest\x1a\x1e.stellar.v1.LiquidityPoolEvent0\x01B>Z stellar.v1.PoolAsset + 2, // 1: stellar.v1.LiquidityPoolEvent.reserves_before:type_name -> stellar.v1.ReserveAmount + 2, // 2: stellar.v1.LiquidityPoolEvent.reserves_after:type_name -> stellar.v1.ReserveAmount + 3, // 3: stellar.v1.LiquidityPoolEvent.meta:type_name -> stellar.v1.LiquidityPoolEventMeta + 0, // 4: stellar.v1.LiquidityPoolEventBatch.events:type_name -> stellar.v1.LiquidityPoolEvent + 6, // 5: stellar.v1.LiquidityPoolEventService.GetInfo:input_type -> google.protobuf.Empty + 7, // 6: stellar.v1.LiquidityPoolEventService.HealthCheck:input_type -> flowctl.v1.HealthCheckRequest + 4, // 7: stellar.v1.LiquidityPoolEventService.GetLiquidityPoolEvents:input_type -> stellar.v1.GetLiquidityPoolEventsRequest + 8, // 8: stellar.v1.LiquidityPoolEventService.GetInfo:output_type -> flowctl.v1.ComponentInfo + 9, // 9: stellar.v1.LiquidityPoolEventService.HealthCheck:output_type -> flowctl.v1.HealthCheckResponse + 0, // 10: stellar.v1.LiquidityPoolEventService.GetLiquidityPoolEvents:output_type -> stellar.v1.LiquidityPoolEvent + 8, // [8:11] is the sub-list for method output_type + 5, // [5:8] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_stellar_v1_liquidity_pool_events_proto_init() } +func file_stellar_v1_liquidity_pool_events_proto_init() { + if File_stellar_v1_liquidity_pool_events_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_liquidity_pool_events_proto_rawDesc), len(file_stellar_v1_liquidity_pool_events_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stellar_v1_liquidity_pool_events_proto_goTypes, + DependencyIndexes: file_stellar_v1_liquidity_pool_events_proto_depIdxs, + MessageInfos: file_stellar_v1_liquidity_pool_events_proto_msgTypes, + }.Build() + File_stellar_v1_liquidity_pool_events_proto = out.File + file_stellar_v1_liquidity_pool_events_proto_goTypes = nil + file_stellar_v1_liquidity_pool_events_proto_depIdxs = nil +} diff --git a/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go b/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go new file mode 100644 index 0000000..7141196 --- /dev/null +++ b/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go @@ -0,0 +1,214 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.6.0 +// - protoc v7.34.0 +// source: stellar/v1/liquidity_pool_events.proto + +package stellarv1 + +import ( + context "context" + v1 "github.com/withObsrvr/flow-proto/go/gen/flowctl/v1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + LiquidityPoolEventService_GetInfo_FullMethodName = "/stellar.v1.LiquidityPoolEventService/GetInfo" + LiquidityPoolEventService_HealthCheck_FullMethodName = "/stellar.v1.LiquidityPoolEventService/HealthCheck" + LiquidityPoolEventService_GetLiquidityPoolEvents_FullMethodName = "/stellar.v1.LiquidityPoolEventService/GetLiquidityPoolEvents" +) + +// LiquidityPoolEventServiceClient is the client API for LiquidityPoolEventService 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. +// +// LiquidityPoolEventService streams Stellar liquidity pool events. +type LiquidityPoolEventServiceClient interface { + // Get service information + GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.ComponentInfo, error) + // Health check + HealthCheck(ctx context.Context, in *v1.HealthCheckRequest, opts ...grpc.CallOption) (*v1.HealthCheckResponse, error) + // Stream liquidity pool events + GetLiquidityPoolEvents(ctx context.Context, in *GetLiquidityPoolEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LiquidityPoolEvent], error) +} + +type liquidityPoolEventServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewLiquidityPoolEventServiceClient(cc grpc.ClientConnInterface) LiquidityPoolEventServiceClient { + return &liquidityPoolEventServiceClient{cc} +} + +func (c *liquidityPoolEventServiceClient) GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.ComponentInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1.ComponentInfo) + err := c.cc.Invoke(ctx, LiquidityPoolEventService_GetInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *liquidityPoolEventServiceClient) HealthCheck(ctx context.Context, in *v1.HealthCheckRequest, opts ...grpc.CallOption) (*v1.HealthCheckResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1.HealthCheckResponse) + err := c.cc.Invoke(ctx, LiquidityPoolEventService_HealthCheck_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *liquidityPoolEventServiceClient) GetLiquidityPoolEvents(ctx context.Context, in *GetLiquidityPoolEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LiquidityPoolEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &LiquidityPoolEventService_ServiceDesc.Streams[0], LiquidityPoolEventService_GetLiquidityPoolEvents_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[GetLiquidityPoolEventsRequest, LiquidityPoolEvent]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type LiquidityPoolEventService_GetLiquidityPoolEventsClient = grpc.ServerStreamingClient[LiquidityPoolEvent] + +// LiquidityPoolEventServiceServer is the server API for LiquidityPoolEventService service. +// All implementations must embed UnimplementedLiquidityPoolEventServiceServer +// for forward compatibility. +// +// LiquidityPoolEventService streams Stellar liquidity pool events. +type LiquidityPoolEventServiceServer interface { + // Get service information + GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) + // Health check + HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) + // Stream liquidity pool events + GetLiquidityPoolEvents(*GetLiquidityPoolEventsRequest, grpc.ServerStreamingServer[LiquidityPoolEvent]) error + mustEmbedUnimplementedLiquidityPoolEventServiceServer() +} + +// UnimplementedLiquidityPoolEventServiceServer 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. +type UnimplementedLiquidityPoolEventServiceServer struct{} + +func (UnimplementedLiquidityPoolEventServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") +} +func (UnimplementedLiquidityPoolEventServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") +} +func (UnimplementedLiquidityPoolEventServiceServer) GetLiquidityPoolEvents(*GetLiquidityPoolEventsRequest, grpc.ServerStreamingServer[LiquidityPoolEvent]) error { + return status.Error(codes.Unimplemented, "method GetLiquidityPoolEvents not implemented") +} +func (UnimplementedLiquidityPoolEventServiceServer) mustEmbedUnimplementedLiquidityPoolEventServiceServer() { +} +func (UnimplementedLiquidityPoolEventServiceServer) testEmbeddedByValue() {} + +// UnsafeLiquidityPoolEventServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to LiquidityPoolEventServiceServer will +// result in compilation errors. +type UnsafeLiquidityPoolEventServiceServer interface { + mustEmbedUnimplementedLiquidityPoolEventServiceServer() +} + +func RegisterLiquidityPoolEventServiceServer(s grpc.ServiceRegistrar, srv LiquidityPoolEventServiceServer) { + // If the following call panics, it indicates UnimplementedLiquidityPoolEventServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&LiquidityPoolEventService_ServiceDesc, srv) +} + +func _LiquidityPoolEventService_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LiquidityPoolEventServiceServer).GetInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: LiquidityPoolEventService_GetInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LiquidityPoolEventServiceServer).GetInfo(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _LiquidityPoolEventService_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.HealthCheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LiquidityPoolEventServiceServer).HealthCheck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: LiquidityPoolEventService_HealthCheck_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LiquidityPoolEventServiceServer).HealthCheck(ctx, req.(*v1.HealthCheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LiquidityPoolEventService_GetLiquidityPoolEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetLiquidityPoolEventsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(LiquidityPoolEventServiceServer).GetLiquidityPoolEvents(m, &grpc.GenericServerStream[GetLiquidityPoolEventsRequest, LiquidityPoolEvent]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type LiquidityPoolEventService_GetLiquidityPoolEventsServer = grpc.ServerStreamingServer[LiquidityPoolEvent] + +// LiquidityPoolEventService_ServiceDesc is the grpc.ServiceDesc for LiquidityPoolEventService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var LiquidityPoolEventService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "stellar.v1.LiquidityPoolEventService", + HandlerType: (*LiquidityPoolEventServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetInfo", + Handler: _LiquidityPoolEventService_GetInfo_Handler, + }, + { + MethodName: "HealthCheck", + Handler: _LiquidityPoolEventService_HealthCheck_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetLiquidityPoolEvents", + Handler: _LiquidityPoolEventService_GetLiquidityPoolEvents_Handler, + ServerStreams: true, + }, + }, + Metadata: "stellar/v1/liquidity_pool_events.proto", +} diff --git a/go/gen/stellar/v1/raw_ledger.pb.go b/go/gen/stellar/v1/raw_ledger.pb.go index adf846e..150ba43 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.11 +// protoc v7.34.0 // 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..c1f862a 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-gen-go-grpc v1.6.0 +// - protoc v7.34.0 // source: stellar/v1/raw_ledger.proto package stellarv1 @@ -127,16 +127,16 @@ type RawLedgerServiceServer interface { type UnimplementedRawLedgerServiceServer struct{} func (UnimplementedRawLedgerServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedRawLedgerServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedRawLedgerServiceServer) StreamRawLedgers(*StreamLedgersRequest, grpc.ServerStreamingServer[RawLedger]) error { - return status.Errorf(codes.Unimplemented, "method StreamRawLedgers not implemented") + return status.Error(codes.Unimplemented, "method StreamRawLedgers not implemented") } func (UnimplementedRawLedgerServiceServer) GetLedgerRange(context.Context, *GetLedgerRangeRequest) (*GetLedgerRangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLedgerRange not implemented") + return nil, status.Error(codes.Unimplemented, "method GetLedgerRange not implemented") } func (UnimplementedRawLedgerServiceServer) mustEmbedUnimplementedRawLedgerServiceServer() {} func (UnimplementedRawLedgerServiceServer) testEmbeddedByValue() {} @@ -149,7 +149,7 @@ type UnsafeRawLedgerServiceServer interface { } func RegisterRawLedgerServiceServer(s grpc.ServiceRegistrar, srv RawLedgerServiceServer) { - // If the following call pancis, it indicates UnimplementedRawLedgerServiceServer was + // If the following call panics, it indicates UnimplementedRawLedgerServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/ingest/asset/asset.pb.go b/ingest/asset/asset.pb.go new file mode 100644 index 0000000..bd22e4e --- /dev/null +++ b/ingest/asset/asset.pb.go @@ -0,0 +1,229 @@ +// Copied from stellar/go/protos/ingest/asset/asset.proto +// Needed as a dependency for token_transfer_event.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v7.34.0 +// source: ingest/asset/asset.proto + +package asset + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type IssuedAsset struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetCode string `protobuf:"bytes,1,opt,name=asset_code,json=assetCode,proto3" json:"asset_code,omitempty"` // Asset code (e.g., USD, BTC) + Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // Issuer account address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IssuedAsset) Reset() { + *x = IssuedAsset{} + mi := &file_ingest_asset_asset_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IssuedAsset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IssuedAsset) ProtoMessage() {} + +func (x *IssuedAsset) ProtoReflect() protoreflect.Message { + mi := &file_ingest_asset_asset_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 IssuedAsset.ProtoReflect.Descriptor instead. +func (*IssuedAsset) Descriptor() ([]byte, []int) { + return file_ingest_asset_asset_proto_rawDescGZIP(), []int{0} +} + +func (x *IssuedAsset) GetAssetCode() string { + if x != nil { + return x.AssetCode + } + return "" +} + +func (x *IssuedAsset) GetIssuer() string { + if x != nil { + return x.Issuer + } + return "" +} + +// Asset message that can represent either a native asset or an issued asset +type Asset struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to AssetType: + // + // *Asset_Native + // *Asset_IssuedAsset + AssetType isAsset_AssetType `protobuf_oneof:"asset_type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Asset) Reset() { + *x = Asset{} + mi := &file_ingest_asset_asset_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Asset) ProtoMessage() {} + +func (x *Asset) ProtoReflect() protoreflect.Message { + mi := &file_ingest_asset_asset_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 Asset.ProtoReflect.Descriptor instead. +func (*Asset) Descriptor() ([]byte, []int) { + return file_ingest_asset_asset_proto_rawDescGZIP(), []int{1} +} + +func (x *Asset) GetAssetType() isAsset_AssetType { + if x != nil { + return x.AssetType + } + return nil +} + +func (x *Asset) GetNative() bool { + if x != nil { + if x, ok := x.AssetType.(*Asset_Native); ok { + return x.Native + } + } + return false +} + +func (x *Asset) GetIssuedAsset() *IssuedAsset { + if x != nil { + if x, ok := x.AssetType.(*Asset_IssuedAsset); ok { + return x.IssuedAsset + } + } + return nil +} + +type isAsset_AssetType interface { + isAsset_AssetType() +} + +type Asset_Native struct { + Native bool `protobuf:"varint,1,opt,name=native,proto3,oneof"` // Native asset (XLM) +} + +type Asset_IssuedAsset struct { + IssuedAsset *IssuedAsset `protobuf:"bytes,2,opt,name=issued_asset,json=issuedAsset,proto3,oneof"` // Issued asset - via classic operations. +} + +func (*Asset_Native) isAsset_AssetType() {} + +func (*Asset_IssuedAsset) isAsset_AssetType() {} + +var File_ingest_asset_asset_proto protoreflect.FileDescriptor + +const file_ingest_asset_asset_proto_rawDesc = "" + + "\n" + + "\x18ingest/asset/asset.proto\x12\x05asset\"D\n" + + "\vIssuedAsset\x12\x1d\n" + + "\n" + + "asset_code\x18\x01 \x01(\tR\tassetCode\x12\x16\n" + + "\x06issuer\x18\x02 \x01(\tR\x06issuer\"h\n" + + "\x05Asset\x12\x18\n" + + "\x06native\x18\x01 \x01(\bH\x00R\x06native\x127\n" + + "\fissued_asset\x18\x02 \x01(\v2\x12.asset.IssuedAssetH\x00R\vissuedAssetB\f\n" + + "\n" + + "asset_typeB5Z3github.com/withObsrvr/flow-proto/ingest/asset;assetb\x06proto3" + +var ( + file_ingest_asset_asset_proto_rawDescOnce sync.Once + file_ingest_asset_asset_proto_rawDescData []byte +) + +func file_ingest_asset_asset_proto_rawDescGZIP() []byte { + file_ingest_asset_asset_proto_rawDescOnce.Do(func() { + file_ingest_asset_asset_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ingest_asset_asset_proto_rawDesc), len(file_ingest_asset_asset_proto_rawDesc))) + }) + return file_ingest_asset_asset_proto_rawDescData +} + +var file_ingest_asset_asset_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_ingest_asset_asset_proto_goTypes = []any{ + (*IssuedAsset)(nil), // 0: asset.IssuedAsset + (*Asset)(nil), // 1: asset.Asset +} +var file_ingest_asset_asset_proto_depIdxs = []int32{ + 0, // 0: asset.Asset.issued_asset:type_name -> asset.IssuedAsset + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_ingest_asset_asset_proto_init() } +func file_ingest_asset_asset_proto_init() { + if File_ingest_asset_asset_proto != nil { + return + } + file_ingest_asset_asset_proto_msgTypes[1].OneofWrappers = []any{ + (*Asset_Native)(nil), + (*Asset_IssuedAsset)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_ingest_asset_asset_proto_rawDesc), len(file_ingest_asset_asset_proto_rawDesc)), + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ingest_asset_asset_proto_goTypes, + DependencyIndexes: file_ingest_asset_asset_proto_depIdxs, + MessageInfos: file_ingest_asset_asset_proto_msgTypes, + }.Build() + File_ingest_asset_asset_proto = out.File + file_ingest_asset_asset_proto_goTypes = nil + file_ingest_asset_asset_proto_depIdxs = nil +} diff --git a/ingest/processors/token_transfer/token_transfer_event.pb.go b/ingest/processors/token_transfer/token_transfer_event.pb.go new file mode 100644 index 0000000..a825744 --- /dev/null +++ b/ingest/processors/token_transfer/token_transfer_event.pb.go @@ -0,0 +1,681 @@ +// Copied from stellar/go/protos/ingest/processors/token_transfer/token_transfer_event.proto +// Defines the event message this processor will PRODUCE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v7.34.0 +// source: ingest/processors/token_transfer/token_transfer_event.proto + +package token_transfer + +import ( + asset "github.com/withObsrvr/flow-proto/ingest/asset" + 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) +) + +// EventMeta message +type EventMeta struct { + state protoimpl.MessageState `protogen:"open.v1"` + LedgerSequence uint32 `protobuf:"varint,1,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + ClosedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"` + TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // Index of transaction within this ledger. This is 1-indexed as per SEP-35 + TransactionIndex uint32 `protobuf:"varint,4,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` + // Index of operation within the transaction, if it is not a fee event. This is 1-indexed as per SEP-35 + OperationIndex *uint32 `protobuf:"varint,5,opt,name=operation_index,json=operationIndex,proto3,oneof" json:"operation_index,omitempty"` + // For a classic operation, this contract_address is the ContractID as derived from asset + // For a smart contract event, this contractId is the id of the contract emiting the core event + ContractAddress string `protobuf:"bytes,6,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EventMeta) Reset() { + *x = EventMeta{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventMeta) ProtoMessage() {} + +func (x *EventMeta) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_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 EventMeta.ProtoReflect.Descriptor instead. +func (*EventMeta) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{0} +} + +func (x *EventMeta) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *EventMeta) GetClosedAt() *timestamppb.Timestamp { + if x != nil { + return x.ClosedAt + } + return nil +} + +func (x *EventMeta) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +func (x *EventMeta) GetTransactionIndex() uint32 { + if x != nil { + return x.TransactionIndex + } + return 0 +} + +func (x *EventMeta) GetOperationIndex() uint32 { + if x != nil && x.OperationIndex != nil { + return *x.OperationIndex + } + return 0 +} + +func (x *EventMeta) GetContractAddress() string { + if x != nil { + return x.ContractAddress + } + return "" +} + +type Transfer struct { + state protoimpl.MessageState `protogen:"open.v1"` + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` + Asset *asset.Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` // Asset can be native or issued. For custom tokens, it will be absent + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Transfer) Reset() { + *x = Transfer{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Transfer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Transfer) ProtoMessage() {} + +func (x *Transfer) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_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 Transfer.ProtoReflect.Descriptor instead. +func (*Transfer) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{1} +} + +func (x *Transfer) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *Transfer) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *Transfer) GetAsset() *asset.Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *Transfer) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type Mint struct { + state protoimpl.MessageState `protogen:"open.v1"` + To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + Asset *asset.Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // Asset can be native or issued. For custom tokens, it will be absent + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Mint) Reset() { + *x = Mint{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Mint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Mint) ProtoMessage() {} + +func (x *Mint) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_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 Mint.ProtoReflect.Descriptor instead. +func (*Mint) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{2} +} + +func (x *Mint) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *Mint) GetAsset() *asset.Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *Mint) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type Burn struct { + state protoimpl.MessageState `protogen:"open.v1"` + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Asset *asset.Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // Asset can be native or issued. For custom tokens, it will be absent + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Burn) Reset() { + *x = Burn{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Burn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Burn) ProtoMessage() {} + +func (x *Burn) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_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 Burn.ProtoReflect.Descriptor instead. +func (*Burn) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{3} +} + +func (x *Burn) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *Burn) GetAsset() *asset.Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *Burn) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type Clawback struct { + state protoimpl.MessageState `protogen:"open.v1"` + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Asset *asset.Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // Asset can be native or issued. For custom tokens, it will be absent + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Clawback) Reset() { + *x = Clawback{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Clawback) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Clawback) ProtoMessage() {} + +func (x *Clawback) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_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 Clawback.ProtoReflect.Descriptor instead. +func (*Clawback) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{4} +} + +func (x *Clawback) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *Clawback) GetAsset() *asset.Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *Clawback) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type Fee struct { + state protoimpl.MessageState `protogen:"open.v1"` + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Asset *asset.Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // Asset can be native or issued. For custom tokens, it will be absent + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Fee) Reset() { + *x = Fee{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Fee) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Fee) ProtoMessage() {} + +func (x *Fee) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_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 Fee.ProtoReflect.Descriptor instead. +func (*Fee) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{5} +} + +func (x *Fee) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *Fee) GetAsset() *asset.Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *Fee) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type TokenTransferEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + Meta *EventMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + // Types that are valid to be assigned to Event: + // + // *TokenTransferEvent_Transfer + // *TokenTransferEvent_Mint + // *TokenTransferEvent_Burn + // *TokenTransferEvent_Clawback + // *TokenTransferEvent_Fee + Event isTokenTransferEvent_Event `protobuf_oneof:"event"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TokenTransferEvent) Reset() { + *x = TokenTransferEvent{} + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TokenTransferEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TokenTransferEvent) ProtoMessage() {} + +func (x *TokenTransferEvent) ProtoReflect() protoreflect.Message { + mi := &file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[6] + 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 TokenTransferEvent.ProtoReflect.Descriptor instead. +func (*TokenTransferEvent) Descriptor() ([]byte, []int) { + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP(), []int{6} +} + +func (x *TokenTransferEvent) GetMeta() *EventMeta { + if x != nil { + return x.Meta + } + return nil +} + +func (x *TokenTransferEvent) GetEvent() isTokenTransferEvent_Event { + if x != nil { + return x.Event + } + return nil +} + +func (x *TokenTransferEvent) GetTransfer() *Transfer { + if x != nil { + if x, ok := x.Event.(*TokenTransferEvent_Transfer); ok { + return x.Transfer + } + } + return nil +} + +func (x *TokenTransferEvent) GetMint() *Mint { + if x != nil { + if x, ok := x.Event.(*TokenTransferEvent_Mint); ok { + return x.Mint + } + } + return nil +} + +func (x *TokenTransferEvent) GetBurn() *Burn { + if x != nil { + if x, ok := x.Event.(*TokenTransferEvent_Burn); ok { + return x.Burn + } + } + return nil +} + +func (x *TokenTransferEvent) GetClawback() *Clawback { + if x != nil { + if x, ok := x.Event.(*TokenTransferEvent_Clawback); ok { + return x.Clawback + } + } + return nil +} + +func (x *TokenTransferEvent) GetFee() *Fee { + if x != nil { + if x, ok := x.Event.(*TokenTransferEvent_Fee); ok { + return x.Fee + } + } + return nil +} + +type isTokenTransferEvent_Event interface { + isTokenTransferEvent_Event() +} + +type TokenTransferEvent_Transfer struct { + Transfer *Transfer `protobuf:"bytes,2,opt,name=transfer,proto3,oneof"` +} + +type TokenTransferEvent_Mint struct { + Mint *Mint `protobuf:"bytes,3,opt,name=mint,proto3,oneof"` +} + +type TokenTransferEvent_Burn struct { + Burn *Burn `protobuf:"bytes,4,opt,name=burn,proto3,oneof"` +} + +type TokenTransferEvent_Clawback struct { + Clawback *Clawback `protobuf:"bytes,5,opt,name=clawback,proto3,oneof"` +} + +type TokenTransferEvent_Fee struct { + Fee *Fee `protobuf:"bytes,6,opt,name=fee,proto3,oneof"` +} + +func (*TokenTransferEvent_Transfer) isTokenTransferEvent_Event() {} + +func (*TokenTransferEvent_Mint) isTokenTransferEvent_Event() {} + +func (*TokenTransferEvent_Burn) isTokenTransferEvent_Event() {} + +func (*TokenTransferEvent_Clawback) isTokenTransferEvent_Event() {} + +func (*TokenTransferEvent_Fee) isTokenTransferEvent_Event() {} + +var File_ingest_processors_token_transfer_token_transfer_event_proto protoreflect.FileDescriptor + +const file_ingest_processors_token_transfer_token_transfer_event_proto_rawDesc = "" + + "\n" + + ";ingest/processors/token_transfer/token_transfer_event.proto\x12\x0etoken_transfer\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18ingest/asset/asset.proto\"\xa0\x02\n" + + "\tEventMeta\x12'\n" + + "\x0fledger_sequence\x18\x01 \x01(\rR\x0eledgerSequence\x127\n" + + "\tclosed_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\bclosedAt\x12\x17\n" + + "\atx_hash\x18\x03 \x01(\tR\x06txHash\x12+\n" + + "\x11transaction_index\x18\x04 \x01(\rR\x10transactionIndex\x12,\n" + + "\x0foperation_index\x18\x05 \x01(\rH\x00R\x0eoperationIndex\x88\x01\x01\x12)\n" + + "\x10contract_address\x18\x06 \x01(\tR\x0fcontractAddressB\x12\n" + + "\x10_operation_index\"j\n" + + "\bTransfer\x12\x12\n" + + "\x04from\x18\x01 \x01(\tR\x04from\x12\x0e\n" + + "\x02to\x18\x02 \x01(\tR\x02to\x12\"\n" + + "\x05asset\x18\x03 \x01(\v2\f.asset.AssetR\x05asset\x12\x16\n" + + "\x06amount\x18\x04 \x01(\tR\x06amount\"R\n" + + "\x04Mint\x12\x0e\n" + + "\x02to\x18\x01 \x01(\tR\x02to\x12\"\n" + + "\x05asset\x18\x02 \x01(\v2\f.asset.AssetR\x05asset\x12\x16\n" + + "\x06amount\x18\x03 \x01(\tR\x06amount\"V\n" + + "\x04Burn\x12\x12\n" + + "\x04from\x18\x01 \x01(\tR\x04from\x12\"\n" + + "\x05asset\x18\x02 \x01(\v2\f.asset.AssetR\x05asset\x12\x16\n" + + "\x06amount\x18\x03 \x01(\tR\x06amount\"Z\n" + + "\bClawback\x12\x12\n" + + "\x04from\x18\x01 \x01(\tR\x04from\x12\"\n" + + "\x05asset\x18\x02 \x01(\v2\f.asset.AssetR\x05asset\x12\x16\n" + + "\x06amount\x18\x03 \x01(\tR\x06amount\"U\n" + + "\x03Fee\x12\x12\n" + + "\x04from\x18\x01 \x01(\tR\x04from\x12\"\n" + + "\x05asset\x18\x02 \x01(\v2\f.asset.AssetR\x05asset\x12\x16\n" + + "\x06amount\x18\x03 \x01(\tR\x06amount\"\xbd\x02\n" + + "\x12TokenTransferEvent\x12-\n" + + "\x04meta\x18\x01 \x01(\v2\x19.token_transfer.EventMetaR\x04meta\x126\n" + + "\btransfer\x18\x02 \x01(\v2\x18.token_transfer.TransferH\x00R\btransfer\x12*\n" + + "\x04mint\x18\x03 \x01(\v2\x14.token_transfer.MintH\x00R\x04mint\x12*\n" + + "\x04burn\x18\x04 \x01(\v2\x14.token_transfer.BurnH\x00R\x04burn\x126\n" + + "\bclawback\x18\x05 \x01(\v2\x18.token_transfer.ClawbackH\x00R\bclawback\x12'\n" + + "\x03fee\x18\x06 \x01(\v2\x13.token_transfer.FeeH\x00R\x03feeB\a\n" + + "\x05eventBRZPgithub.com/withObsrvr/flow-proto/ingest/processors/token_transfer;token_transferb\x06proto3" + +var ( + file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescOnce sync.Once + file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescData []byte +) + +func file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescGZIP() []byte { + file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescOnce.Do(func() { + file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ingest_processors_token_transfer_token_transfer_event_proto_rawDesc), len(file_ingest_processors_token_transfer_token_transfer_event_proto_rawDesc))) + }) + return file_ingest_processors_token_transfer_token_transfer_event_proto_rawDescData +} + +var file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_ingest_processors_token_transfer_token_transfer_event_proto_goTypes = []any{ + (*EventMeta)(nil), // 0: token_transfer.EventMeta + (*Transfer)(nil), // 1: token_transfer.Transfer + (*Mint)(nil), // 2: token_transfer.Mint + (*Burn)(nil), // 3: token_transfer.Burn + (*Clawback)(nil), // 4: token_transfer.Clawback + (*Fee)(nil), // 5: token_transfer.Fee + (*TokenTransferEvent)(nil), // 6: token_transfer.TokenTransferEvent + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*asset.Asset)(nil), // 8: asset.Asset +} +var file_ingest_processors_token_transfer_token_transfer_event_proto_depIdxs = []int32{ + 7, // 0: token_transfer.EventMeta.closed_at:type_name -> google.protobuf.Timestamp + 8, // 1: token_transfer.Transfer.asset:type_name -> asset.Asset + 8, // 2: token_transfer.Mint.asset:type_name -> asset.Asset + 8, // 3: token_transfer.Burn.asset:type_name -> asset.Asset + 8, // 4: token_transfer.Clawback.asset:type_name -> asset.Asset + 8, // 5: token_transfer.Fee.asset:type_name -> asset.Asset + 0, // 6: token_transfer.TokenTransferEvent.meta:type_name -> token_transfer.EventMeta + 1, // 7: token_transfer.TokenTransferEvent.transfer:type_name -> token_transfer.Transfer + 2, // 8: token_transfer.TokenTransferEvent.mint:type_name -> token_transfer.Mint + 3, // 9: token_transfer.TokenTransferEvent.burn:type_name -> token_transfer.Burn + 4, // 10: token_transfer.TokenTransferEvent.clawback:type_name -> token_transfer.Clawback + 5, // 11: token_transfer.TokenTransferEvent.fee:type_name -> token_transfer.Fee + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_ingest_processors_token_transfer_token_transfer_event_proto_init() } +func file_ingest_processors_token_transfer_token_transfer_event_proto_init() { + if File_ingest_processors_token_transfer_token_transfer_event_proto != nil { + return + } + file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[0].OneofWrappers = []any{} + file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes[6].OneofWrappers = []any{ + (*TokenTransferEvent_Transfer)(nil), + (*TokenTransferEvent_Mint)(nil), + (*TokenTransferEvent_Burn)(nil), + (*TokenTransferEvent_Clawback)(nil), + (*TokenTransferEvent_Fee)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_ingest_processors_token_transfer_token_transfer_event_proto_rawDesc), len(file_ingest_processors_token_transfer_token_transfer_event_proto_rawDesc)), + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ingest_processors_token_transfer_token_transfer_event_proto_goTypes, + DependencyIndexes: file_ingest_processors_token_transfer_token_transfer_event_proto_depIdxs, + MessageInfos: file_ingest_processors_token_transfer_token_transfer_event_proto_msgTypes, + }.Build() + File_ingest_processors_token_transfer_token_transfer_event_proto = out.File + file_ingest_processors_token_transfer_token_transfer_event_proto_goTypes = nil + file_ingest_processors_token_transfer_token_transfer_event_proto_depIdxs = nil +} diff --git a/proto/ingest/asset/asset.proto b/proto/ingest/asset/asset.proto index 16f57df..bbcd9a3 100644 --- a/proto/ingest/asset/asset.proto +++ b/proto/ingest/asset/asset.proto @@ -5,7 +5,7 @@ syntax = "proto3"; package asset; -option go_package = "github.com/withObsrvr/flow-proto/proto/ingest/asset;asset"; +option go_package = "github.com/withObsrvr/flow-proto/ingest/asset;asset"; message IssuedAsset { diff --git a/proto/ingest/processors/token_transfer/token_transfer_event.proto b/proto/ingest/processors/token_transfer/token_transfer_event.proto index 568152b..85a74e2 100644 --- a/proto/ingest/processors/token_transfer/token_transfer_event.proto +++ b/proto/ingest/processors/token_transfer/token_transfer_event.proto @@ -11,7 +11,7 @@ import "google/protobuf/timestamp.proto"; import "ingest/asset/asset.proto"; // Asset message -option go_package = "github.com/withObsrvr/flow-proto/proto/ingest/processors/token_transfer;token_transfer"; +option go_package = "github.com/withObsrvr/flow-proto/ingest/processors/token_transfer;token_transfer"; // EventMeta message diff --git a/proto/stellar/v1/contract_invocation.proto b/proto/stellar/v1/contract_invocation.proto index c0907ba..5b35562 100644 --- a/proto/stellar/v1/contract_invocation.proto +++ b/proto/stellar/v1/contract_invocation.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package stellar.v1; -option go_package = "github.com/withObsrvr/flow-proto/gen/stellar/v1;stellarv1"; +option go_package = "github.com/withObsrvr/flow-proto/go/gen/stellar/v1;stellarv1"; import "google/protobuf/timestamp.proto"; diff --git a/proto/stellar/v1/contract_state.proto b/proto/stellar/v1/contract_state.proto new file mode 100644 index 0000000..cc4d89e --- /dev/null +++ b/proto/stellar/v1/contract_state.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package stellar.v1; + +option go_package = "github.com/withObsrvr/flow-proto/go/gen/stellar/v1;stellarv1"; + +import "flowctl/v1/common.proto"; +import "google/protobuf/empty.proto"; + +// ContractStateService streams Stellar Soroban contract state mutations. +service ContractStateService { + // Get service information + rpc GetInfo(google.protobuf.Empty) returns (flowctl.v1.ComponentInfo); + + // Health check + rpc HealthCheck(flowctl.v1.HealthCheckRequest) returns (flowctl.v1.HealthCheckResponse); + + // Stream contract state events + rpc GetContractStateEvents(GetContractStateEventsRequest) returns (stream ContractStateEvent); +} + +// Durability of contract data entries. +enum Durability { + // Persistent data (survives across ledger boundaries until TTL expires) + DURABILITY_PERSISTENT = 0; + + // Temporary data (cheaper, shorter TTL) + DURABILITY_TEMPORARY = 1; +} + +// ContractStateEvent represents a contract data state change in a ledger. +message ContractStateEvent { + // Contract ID (strkey-encoded, C... address) + string contract_id = 1; + + // Hash of the ledger key + string ledger_key_hash = 2; + + // Durability of the contract data entry + Durability durability = 3; + + // Operation type: "create", "update", or "delete" + string operation = 4; + + // Key (base64-encoded XDR) + string key_xdr = 5; + + // Value (base64-encoded XDR, empty for deletes) + string val_xdr = 6; + + // Key symbol (if the key is a simple symbol, extracted for convenience) + string key_symbol = 7; + + // Event metadata + ContractStateMeta meta = 10; +} + +// ContractStateMeta contains chronological context for the event. +message ContractStateMeta { + uint32 ledger_sequence = 1; + int64 ledger_closed_at = 2; // Unix timestamp + string tx_hash = 3; + uint32 tx_index = 4; +} + +// GetContractStateEventsRequest defines filtering for contract state events. +message GetContractStateEventsRequest { + uint32 start_ledger = 1; + uint32 end_ledger = 2; // 0 for continuous streaming + + // Optional filters + repeated string contract_ids = 3; // Filter by specific contract IDs + repeated string key_symbols = 4; // Filter by key symbol + bool include_failed = 5; // Include events from failed transactions +} + +// ContractStateEventBatch represents a batch of events from a single ledger. +message ContractStateEventBatch { + repeated ContractStateEvent events = 1; +} diff --git a/proto/stellar/v1/defi_position.proto b/proto/stellar/v1/defi_position.proto new file mode 100644 index 0000000..d513ab5 --- /dev/null +++ b/proto/stellar/v1/defi_position.proto @@ -0,0 +1,99 @@ +syntax = "proto3"; + +package stellar.v1; + +option go_package = "github.com/withObsrvr/flow-proto/go/gen/stellar/v1;stellarv1"; + +import "google/protobuf/timestamp.proto"; + +// Protocol identifies the DeFi protocol a position belongs to. +enum Protocol { + PROTOCOL_UNKNOWN = 0; + PROTOCOL_BLEND = 1; + PROTOCOL_SOROSWAP = 2; + PROTOCOL_AQUARIUS = 3; + PROTOCOL_FXDAO = 4; + PROTOCOL_PHOENIX = 5; +} + +// PositionType classifies the nature of a DeFi position. +enum PositionType { + POSITION_TYPE_UNKNOWN = 0; + POSITION_TYPE_LENDING = 1; + POSITION_TYPE_BORROWING = 2; + POSITION_TYPE_LP = 3; + POSITION_TYPE_VAULT = 4; +} + +// PositionAsset represents an individual asset within a position. +message PositionAsset { + string asset_code = 1; + string asset_issuer = 2; + string contract_id = 3; // For Soroban token contracts + string amount = 4; // Decimal string, preserves precision + string value_usd = 5; // USD value as decimal string +} + +// DeFiPosition represents a user's position in a single DeFi protocol. +message DeFiPosition { + // User address (G... or C...) + string address = 1; + + // Protocol this position belongs to + Protocol protocol = 2; + + // Type of position + PositionType position_type = 3; + + // Assets in this position + repeated PositionAsset assets = 4; + + // Aggregated values (decimal strings) + string total_value = 5; // Current total value + string total_deposited = 6; // Total deposit value + string total_borrowed = 7; // Total borrowed value (if applicable) + string current_return = 8; // Current return/yield (if applicable) + + // Health factor for lending/borrowing positions (optional) + optional string health_factor = 9; + + // Protocol-specific metadata (extensible per reviewer feedback) + map metadata = 10; + + // Position metadata + DeFiPositionMeta meta = 15; +} + +// DeFiPositionMeta contains context about when this position was observed. +message DeFiPositionMeta { + uint32 ledger_sequence = 1; + int64 ledger_closed_at = 2; // Unix timestamp + google.protobuf.Timestamp observed_at = 3; +} + +// DeFiPositionBatch represents positions extracted from a single ledger. +message DeFiPositionBatch { + repeated DeFiPosition positions = 1; +} + +// AggregatedPosition represents a user's total DeFi exposure across protocols. +message AggregatedPosition { + // User address + string address = 1; + + // All positions across protocols + repeated DeFiPosition positions = 2; + + // Aggregated totals (decimal strings) + string total_value = 3; + string total_deposited = 4; + string total_borrowed = 5; + + // Observation context + DeFiPositionMeta meta = 10; +} + +// AggregatedPositionBatch represents aggregated positions from a single ledger. +message AggregatedPositionBatch { + repeated AggregatedPosition positions = 1; +} diff --git a/proto/stellar/v1/dex_swap.proto b/proto/stellar/v1/dex_swap.proto new file mode 100644 index 0000000..db8851c --- /dev/null +++ b/proto/stellar/v1/dex_swap.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; + +package stellar.v1; + +option go_package = "github.com/withObsrvr/flow-proto/go/gen/stellar/v1;stellarv1"; + +import "stellar/v1/defi_position.proto"; + +// DexSwap represents a normalized DEX swap across any Stellar protocol. +message DexSwap { + // Account that performed the swap + string trader = 1; + + // Sold side + string sold_asset_code = 2; + string sold_asset_issuer = 3; + string sold_contract_id = 4; + string sold_amount = 5; // Decimal string + + // Bought side + string bought_asset_code = 6; + string bought_asset_issuer = 7; + string bought_contract_id = 8; + string bought_amount = 9; // Decimal string + + // Protocol that facilitated this swap + Protocol protocol = 10; + + // Pool or pair ID (protocol-specific) + string pool_id = 11; + + // Swap route (for multi-hop swaps) + repeated string route = 12; + + // Event metadata + DexSwapMeta meta = 15; +} + +// DexSwapMeta contains chronological context for the swap. +message DexSwapMeta { + uint32 ledger_sequence = 1; + int64 ledger_closed_at = 2; // Unix timestamp + string tx_hash = 3; + uint32 tx_index = 4; + bool tx_successful = 5; +} + +// DexSwapBatch represents swaps extracted from a single ledger. +message DexSwapBatch { + repeated DexSwap swaps = 1; +} diff --git a/proto/stellar/v1/liquidity_pool_events.proto b/proto/stellar/v1/liquidity_pool_events.proto new file mode 100644 index 0000000..b0612c3 --- /dev/null +++ b/proto/stellar/v1/liquidity_pool_events.proto @@ -0,0 +1,89 @@ +syntax = "proto3"; + +package stellar.v1; + +option go_package = "github.com/withObsrvr/flow-proto/go/gen/stellar/v1;stellarv1"; + +import "flowctl/v1/common.proto"; +import "google/protobuf/empty.proto"; + +// LiquidityPoolEventService streams Stellar liquidity pool events. +service LiquidityPoolEventService { + // Get service information + rpc GetInfo(google.protobuf.Empty) returns (flowctl.v1.ComponentInfo); + + // Health check + rpc HealthCheck(flowctl.v1.HealthCheckRequest) returns (flowctl.v1.HealthCheckResponse); + + // Stream liquidity pool events + rpc GetLiquidityPoolEvents(GetLiquidityPoolEventsRequest) returns (stream LiquidityPoolEvent); +} + +// LiquidityPoolEvent represents a liquidity pool operation. +message LiquidityPoolEvent { + // Operation type: "deposit", "withdraw", or "trade" + string type = 1; + + // Pool ID (hex-encoded) + string pool_id = 2; + + // Account performing the operation + string account = 3; + + // Assets involved in the operation + repeated PoolAsset assets = 4; + + // Shares minted (deposit) or burned (withdraw) + string shares = 5; + + // Pool reserves before the operation + repeated ReserveAmount reserves_before = 6; + + // Pool reserves after the operation + repeated ReserveAmount reserves_after = 7; + + // Event metadata + LiquidityPoolEventMeta meta = 10; +} + +// PoolAsset represents an asset and amount in a pool operation. +message PoolAsset { + string asset_type = 1; + string asset_code = 2; + string asset_issuer = 3; + string amount = 4; +} + +// ReserveAmount represents a pool reserve. +message ReserveAmount { + string asset_type = 1; + string asset_code = 2; + string asset_issuer = 3; + string amount = 4; +} + +// LiquidityPoolEventMeta contains chronological context for the event. +message LiquidityPoolEventMeta { + uint32 ledger_sequence = 1; + int64 ledger_closed_at = 2; // Unix timestamp + string tx_hash = 3; + uint32 tx_index = 4; + uint32 operation_index = 5; + bool tx_successful = 6; +} + +// GetLiquidityPoolEventsRequest defines filtering for liquidity pool events. +message GetLiquidityPoolEventsRequest { + uint32 start_ledger = 1; + uint32 end_ledger = 2; // 0 for continuous streaming + + // Optional filters + repeated string pool_ids = 3; // Filter by specific pool IDs + repeated string event_types = 4; // Filter by operation type (deposit, withdraw, trade) + bool include_failed = 5; // Include events from failed transactions +} + +// LiquidityPoolEventBatch represents a batch of events from a single ledger. +message LiquidityPoolEventBatch { + repeated LiquidityPoolEvent events = 1; +} From 23c82068b4b8248e2ec5525e4ca63a68f8ed07b6 Mon Sep 17 00:00:00 2001 From: Tillman Mosley III Date: Tue, 21 Apr 2026 12:58:00 -0400 Subject: [PATCH 2/3] fixes and contract creation processor --- README.md | 2 +- flake.nix | 2 +- go/gen/stellar/v1/contract_created.pb.go | 630 +++++++++++++++++++++++ proto/stellar/v1/contract_created.proto | 65 +++ 4 files changed, 697 insertions(+), 2 deletions(-) create mode 100644 go/gen/stellar/v1/contract_created.pb.go create mode 100644 proto/stellar/v1/contract_created.proto diff --git a/README.md b/README.md index a5b49ec..7047779 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ nix develop # Enters development environment with all tools ``` The Nix flake provides: -- Go 1.25.4 toolchain +- Go 1.26.1 toolchain - protoc 32.1 with protoc-gen-go and protoc-gen-go-grpc plugins - Git and GNU Make diff --git a/flake.nix b/flake.nix index c06622e..f1f9ca5 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ in { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ - go_1_26 # Go 1.26.x + go # Go toolchain (currently 1.26.x on nixos-unstable) protobuf # protoc protoc-gen-go protoc-gen-go-grpc diff --git a/go/gen/stellar/v1/contract_created.pb.go b/go/gen/stellar/v1/contract_created.pb.go new file mode 100644 index 0000000..0191eb4 --- /dev/null +++ b/go/gen/stellar/v1/contract_created.pb.go @@ -0,0 +1,630 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc v6.32.1 +// source: stellar/v1/contract_created.proto + +package stellarv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type ContractCreatedEventMeta struct { + state protoimpl.MessageState `protogen:"open.v1"` + LedgerSequence uint32 `protobuf:"varint,1,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + ClosedAtUnix int64 `protobuf:"varint,2,opt,name=closed_at_unix,json=closedAtUnix,proto3" json:"closed_at_unix,omitempty"` + TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + TransactionIndex uint32 `protobuf:"varint,4,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` + OperationIndex int32 `protobuf:"varint,5,opt,name=operation_index,json=operationIndex,proto3" json:"operation_index,omitempty"` + InSuccessfulTx bool `protobuf:"varint,6,opt,name=in_successful_tx,json=inSuccessfulTx,proto3" json:"in_successful_tx,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractCreatedEventMeta) Reset() { + *x = ContractCreatedEventMeta{} + mi := &file_stellar_v1_contract_created_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractCreatedEventMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractCreatedEventMeta) ProtoMessage() {} + +func (x *ContractCreatedEventMeta) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_created_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 ContractCreatedEventMeta.ProtoReflect.Descriptor instead. +func (*ContractCreatedEventMeta) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_created_proto_rawDescGZIP(), []int{0} +} + +func (x *ContractCreatedEventMeta) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *ContractCreatedEventMeta) GetClosedAtUnix() int64 { + if x != nil { + return x.ClosedAtUnix + } + return 0 +} + +func (x *ContractCreatedEventMeta) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +func (x *ContractCreatedEventMeta) GetTransactionIndex() uint32 { + if x != nil { + return x.TransactionIndex + } + return 0 +} + +func (x *ContractCreatedEventMeta) GetOperationIndex() int32 { + if x != nil { + return x.OperationIndex + } + return 0 +} + +func (x *ContractCreatedEventMeta) GetInSuccessfulTx() bool { + if x != nil { + return x.InSuccessfulTx + } + return false +} + +type ContractCreatedStateEntry struct { + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"` + Durability string `protobuf:"bytes,4,opt,name=durability,proto3" json:"durability,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractCreatedStateEntry) Reset() { + *x = ContractCreatedStateEntry{} + mi := &file_stellar_v1_contract_created_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractCreatedStateEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractCreatedStateEntry) ProtoMessage() {} + +func (x *ContractCreatedStateEntry) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_created_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 ContractCreatedStateEntry.ProtoReflect.Descriptor instead. +func (*ContractCreatedStateEntry) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_created_proto_rawDescGZIP(), []int{1} +} + +func (x *ContractCreatedStateEntry) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *ContractCreatedStateEntry) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *ContractCreatedStateEntry) GetOperation() string { + if x != nil { + return x.Operation + } + return "" +} + +func (x *ContractCreatedStateEntry) GetDurability() string { + if x != nil { + return x.Durability + } + return "" +} + +type ContractFamilyCandidate struct { + state protoimpl.MessageState `protogen:"open.v1"` + Family string `protobuf:"bytes,1,opt,name=family,proto3" json:"family,omitempty"` + Confidence float64 `protobuf:"fixed64,2,opt,name=confidence,proto3" json:"confidence,omitempty"` + Reasons []string `protobuf:"bytes,3,rep,name=reasons,proto3" json:"reasons,omitempty"` + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` + RuleIds []string `protobuf:"bytes,5,rep,name=rule_ids,json=ruleIds,proto3" json:"rule_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractFamilyCandidate) Reset() { + *x = ContractFamilyCandidate{} + mi := &file_stellar_v1_contract_created_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractFamilyCandidate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractFamilyCandidate) ProtoMessage() {} + +func (x *ContractFamilyCandidate) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_created_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 ContractFamilyCandidate.ProtoReflect.Descriptor instead. +func (*ContractFamilyCandidate) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_created_proto_rawDescGZIP(), []int{2} +} + +func (x *ContractFamilyCandidate) GetFamily() string { + if x != nil { + return x.Family + } + return "" +} + +func (x *ContractFamilyCandidate) GetConfidence() float64 { + if x != nil { + return x.Confidence + } + return 0 +} + +func (x *ContractFamilyCandidate) GetReasons() []string { + if x != nil { + return x.Reasons + } + return nil +} + +func (x *ContractFamilyCandidate) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ContractFamilyCandidate) GetRuleIds() []string { + if x != nil { + return x.RuleIds + } + return nil +} + +type ContractCreatedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + Meta *ContractCreatedEventMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + Deployer string `protobuf:"bytes,3,opt,name=deployer,proto3" json:"deployer,omitempty"` + PreimageAddress string `protobuf:"bytes,4,opt,name=preimage_address,json=preimageAddress,proto3" json:"preimage_address,omitempty"` + SaltHex string `protobuf:"bytes,5,opt,name=salt_hex,json=saltHex,proto3" json:"salt_hex,omitempty"` + ExecutableType string `protobuf:"bytes,6,opt,name=executable_type,json=executableType,proto3" json:"executable_type,omitempty"` + WasmHash string `protobuf:"bytes,7,opt,name=wasm_hash,json=wasmHash,proto3" json:"wasm_hash,omitempty"` + CreateHostFunctionType string `protobuf:"bytes,8,opt,name=create_host_function_type,json=createHostFunctionType,proto3" json:"create_host_function_type,omitempty"` + ConstructorInvoked bool `protobuf:"varint,9,opt,name=constructor_invoked,json=constructorInvoked,proto3" json:"constructor_invoked,omitempty"` + ConstructorName string `protobuf:"bytes,10,opt,name=constructor_name,json=constructorName,proto3" json:"constructor_name,omitempty"` + ConstructorArgs []string `protobuf:"bytes,11,rep,name=constructor_args,json=constructorArgs,proto3" json:"constructor_args,omitempty"` + ContractInstanceCreated bool `protobuf:"varint,12,opt,name=contract_instance_created,json=contractInstanceCreated,proto3" json:"contract_instance_created,omitempty"` + InitializedState []*ContractCreatedStateEntry `protobuf:"bytes,13,rep,name=initialized_state,json=initializedState,proto3" json:"initialized_state,omitempty"` + TtlExtendedToLedger uint32 `protobuf:"varint,14,opt,name=ttl_extended_to_ledger,json=ttlExtendedToLedger,proto3" json:"ttl_extended_to_ledger,omitempty"` + ClassificationHint string `protobuf:"bytes,15,opt,name=classification_hint,json=classificationHint,proto3" json:"classification_hint,omitempty"` + ClassificationReasons []string `protobuf:"bytes,16,rep,name=classification_reasons,json=classificationReasons,proto3" json:"classification_reasons,omitempty"` + FamilyHint string `protobuf:"bytes,17,opt,name=family_hint,json=familyHint,proto3" json:"family_hint,omitempty"` + FamilyConfidence float64 `protobuf:"fixed64,18,opt,name=family_confidence,json=familyConfidence,proto3" json:"family_confidence,omitempty"` + FamilyReasons []string `protobuf:"bytes,19,rep,name=family_reasons,json=familyReasons,proto3" json:"family_reasons,omitempty"` + FamilyTags []string `protobuf:"bytes,20,rep,name=family_tags,json=familyTags,proto3" json:"family_tags,omitempty"` + FamilyCandidates []*ContractFamilyCandidate `protobuf:"bytes,21,rep,name=family_candidates,json=familyCandidates,proto3" json:"family_candidates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractCreatedEvent) Reset() { + *x = ContractCreatedEvent{} + mi := &file_stellar_v1_contract_created_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractCreatedEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractCreatedEvent) ProtoMessage() {} + +func (x *ContractCreatedEvent) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_created_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 ContractCreatedEvent.ProtoReflect.Descriptor instead. +func (*ContractCreatedEvent) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_created_proto_rawDescGZIP(), []int{3} +} + +func (x *ContractCreatedEvent) GetMeta() *ContractCreatedEventMeta { + if x != nil { + return x.Meta + } + return nil +} + +func (x *ContractCreatedEvent) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *ContractCreatedEvent) GetDeployer() string { + if x != nil { + return x.Deployer + } + return "" +} + +func (x *ContractCreatedEvent) GetPreimageAddress() string { + if x != nil { + return x.PreimageAddress + } + return "" +} + +func (x *ContractCreatedEvent) GetSaltHex() string { + if x != nil { + return x.SaltHex + } + return "" +} + +func (x *ContractCreatedEvent) GetExecutableType() string { + if x != nil { + return x.ExecutableType + } + return "" +} + +func (x *ContractCreatedEvent) GetWasmHash() string { + if x != nil { + return x.WasmHash + } + return "" +} + +func (x *ContractCreatedEvent) GetCreateHostFunctionType() string { + if x != nil { + return x.CreateHostFunctionType + } + return "" +} + +func (x *ContractCreatedEvent) GetConstructorInvoked() bool { + if x != nil { + return x.ConstructorInvoked + } + return false +} + +func (x *ContractCreatedEvent) GetConstructorName() string { + if x != nil { + return x.ConstructorName + } + return "" +} + +func (x *ContractCreatedEvent) GetConstructorArgs() []string { + if x != nil { + return x.ConstructorArgs + } + return nil +} + +func (x *ContractCreatedEvent) GetContractInstanceCreated() bool { + if x != nil { + return x.ContractInstanceCreated + } + return false +} + +func (x *ContractCreatedEvent) GetInitializedState() []*ContractCreatedStateEntry { + if x != nil { + return x.InitializedState + } + return nil +} + +func (x *ContractCreatedEvent) GetTtlExtendedToLedger() uint32 { + if x != nil { + return x.TtlExtendedToLedger + } + return 0 +} + +func (x *ContractCreatedEvent) GetClassificationHint() string { + if x != nil { + return x.ClassificationHint + } + return "" +} + +func (x *ContractCreatedEvent) GetClassificationReasons() []string { + if x != nil { + return x.ClassificationReasons + } + return nil +} + +func (x *ContractCreatedEvent) GetFamilyHint() string { + if x != nil { + return x.FamilyHint + } + return "" +} + +func (x *ContractCreatedEvent) GetFamilyConfidence() float64 { + if x != nil { + return x.FamilyConfidence + } + return 0 +} + +func (x *ContractCreatedEvent) GetFamilyReasons() []string { + if x != nil { + return x.FamilyReasons + } + return nil +} + +func (x *ContractCreatedEvent) GetFamilyTags() []string { + if x != nil { + return x.FamilyTags + } + return nil +} + +func (x *ContractCreatedEvent) GetFamilyCandidates() []*ContractFamilyCandidate { + if x != nil { + return x.FamilyCandidates + } + return nil +} + +type ContractCreatedBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + Events []*ContractCreatedEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + LedgerSequence uint32 `protobuf:"varint,2,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"` + EventCount int32 `protobuf:"varint,3,opt,name=event_count,json=eventCount,proto3" json:"event_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContractCreatedBatch) Reset() { + *x = ContractCreatedBatch{} + mi := &file_stellar_v1_contract_created_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractCreatedBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractCreatedBatch) ProtoMessage() {} + +func (x *ContractCreatedBatch) ProtoReflect() protoreflect.Message { + mi := &file_stellar_v1_contract_created_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 ContractCreatedBatch.ProtoReflect.Descriptor instead. +func (*ContractCreatedBatch) Descriptor() ([]byte, []int) { + return file_stellar_v1_contract_created_proto_rawDescGZIP(), []int{4} +} + +func (x *ContractCreatedBatch) GetEvents() []*ContractCreatedEvent { + if x != nil { + return x.Events + } + return nil +} + +func (x *ContractCreatedBatch) GetLedgerSequence() uint32 { + if x != nil { + return x.LedgerSequence + } + return 0 +} + +func (x *ContractCreatedBatch) GetEventCount() int32 { + if x != nil { + return x.EventCount + } + return 0 +} + +var File_stellar_v1_contract_created_proto protoreflect.FileDescriptor + +const file_stellar_v1_contract_created_proto_rawDesc = "" + + "\n" + + "!stellar/v1/contract_created.proto\x12\n" + + "stellar.v1\"\x82\x02\n" + + "\x18ContractCreatedEventMeta\x12'\n" + + "\x0fledger_sequence\x18\x01 \x01(\rR\x0eledgerSequence\x12$\n" + + "\x0eclosed_at_unix\x18\x02 \x01(\x03R\fclosedAtUnix\x12\x17\n" + + "\atx_hash\x18\x03 \x01(\tR\x06txHash\x12+\n" + + "\x11transaction_index\x18\x04 \x01(\rR\x10transactionIndex\x12'\n" + + "\x0foperation_index\x18\x05 \x01(\x05R\x0eoperationIndex\x12(\n" + + "\x10in_successful_tx\x18\x06 \x01(\bR\x0einSuccessfulTx\"\x81\x01\n" + + "\x19ContractCreatedStateEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n" + + "\toperation\x18\x03 \x01(\tR\toperation\x12\x1e\n" + + "\n" + + "durability\x18\x04 \x01(\tR\n" + + "durability\"\x9a\x01\n" + + "\x17ContractFamilyCandidate\x12\x16\n" + + "\x06family\x18\x01 \x01(\tR\x06family\x12\x1e\n" + + "\n" + + "confidence\x18\x02 \x01(\x01R\n" + + "confidence\x12\x18\n" + + "\areasons\x18\x03 \x03(\tR\areasons\x12\x12\n" + + "\x04tags\x18\x04 \x03(\tR\x04tags\x12\x19\n" + + "\brule_ids\x18\x05 \x03(\tR\aruleIds\"\xf0\a\n" + + "\x14ContractCreatedEvent\x128\n" + + "\x04meta\x18\x01 \x01(\v2$.stellar.v1.ContractCreatedEventMetaR\x04meta\x12\x1f\n" + + "\vcontract_id\x18\x02 \x01(\tR\n" + + "contractId\x12\x1a\n" + + "\bdeployer\x18\x03 \x01(\tR\bdeployer\x12)\n" + + "\x10preimage_address\x18\x04 \x01(\tR\x0fpreimageAddress\x12\x19\n" + + "\bsalt_hex\x18\x05 \x01(\tR\asaltHex\x12'\n" + + "\x0fexecutable_type\x18\x06 \x01(\tR\x0eexecutableType\x12\x1b\n" + + "\twasm_hash\x18\a \x01(\tR\bwasmHash\x129\n" + + "\x19create_host_function_type\x18\b \x01(\tR\x16createHostFunctionType\x12/\n" + + "\x13constructor_invoked\x18\t \x01(\bR\x12constructorInvoked\x12)\n" + + "\x10constructor_name\x18\n" + + " \x01(\tR\x0fconstructorName\x12)\n" + + "\x10constructor_args\x18\v \x03(\tR\x0fconstructorArgs\x12:\n" + + "\x19contract_instance_created\x18\f \x01(\bR\x17contractInstanceCreated\x12R\n" + + "\x11initialized_state\x18\r \x03(\v2%.stellar.v1.ContractCreatedStateEntryR\x10initializedState\x123\n" + + "\x16ttl_extended_to_ledger\x18\x0e \x01(\rR\x13ttlExtendedToLedger\x12/\n" + + "\x13classification_hint\x18\x0f \x01(\tR\x12classificationHint\x125\n" + + "\x16classification_reasons\x18\x10 \x03(\tR\x15classificationReasons\x12\x1f\n" + + "\vfamily_hint\x18\x11 \x01(\tR\n" + + "familyHint\x12+\n" + + "\x11family_confidence\x18\x12 \x01(\x01R\x10familyConfidence\x12%\n" + + "\x0efamily_reasons\x18\x13 \x03(\tR\rfamilyReasons\x12\x1f\n" + + "\vfamily_tags\x18\x14 \x03(\tR\n" + + "familyTags\x12P\n" + + "\x11family_candidates\x18\x15 \x03(\v2#.stellar.v1.ContractFamilyCandidateR\x10familyCandidates\"\x9a\x01\n" + + "\x14ContractCreatedBatch\x128\n" + + "\x06events\x18\x01 \x03(\v2 .stellar.v1.ContractCreatedEventR\x06events\x12'\n" + + "\x0fledger_sequence\x18\x02 \x01(\rR\x0eledgerSequence\x12\x1f\n" + + "\vevent_count\x18\x03 \x01(\x05R\n" + + "eventCountB>Z stellar.v1.ContractCreatedEventMeta + 1, // 1: stellar.v1.ContractCreatedEvent.initialized_state:type_name -> stellar.v1.ContractCreatedStateEntry + 2, // 2: stellar.v1.ContractCreatedEvent.family_candidates:type_name -> stellar.v1.ContractFamilyCandidate + 3, // 3: stellar.v1.ContractCreatedBatch.events:type_name -> stellar.v1.ContractCreatedEvent + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_stellar_v1_contract_created_proto_init() } +func file_stellar_v1_contract_created_proto_init() { + if File_stellar_v1_contract_created_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_created_proto_rawDesc), len(file_stellar_v1_contract_created_proto_rawDesc)), + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_stellar_v1_contract_created_proto_goTypes, + DependencyIndexes: file_stellar_v1_contract_created_proto_depIdxs, + MessageInfos: file_stellar_v1_contract_created_proto_msgTypes, + }.Build() + File_stellar_v1_contract_created_proto = out.File + file_stellar_v1_contract_created_proto_goTypes = nil + file_stellar_v1_contract_created_proto_depIdxs = nil +} diff --git a/proto/stellar/v1/contract_created.proto b/proto/stellar/v1/contract_created.proto new file mode 100644 index 0000000..1bf1cc8 --- /dev/null +++ b/proto/stellar/v1/contract_created.proto @@ -0,0 +1,65 @@ +syntax = "proto3"; + +package stellar.v1; + +option go_package = "github.com/withObsrvr/flow-proto/go/gen/stellar/v1;stellarv1"; + +message ContractCreatedEventMeta { + uint32 ledger_sequence = 1; + int64 closed_at_unix = 2; + string tx_hash = 3; + uint32 transaction_index = 4; + int32 operation_index = 5; + bool in_successful_tx = 6; +} + +message ContractCreatedStateEntry { + string key = 1; + string value = 2; + string operation = 3; + string durability = 4; +} + +message ContractFamilyCandidate { + string family = 1; + double confidence = 2; + repeated string reasons = 3; + repeated string tags = 4; + repeated string rule_ids = 5; +} + +message ContractCreatedEvent { + ContractCreatedEventMeta meta = 1; + + string contract_id = 2; + string deployer = 3; + string preimage_address = 4; + string salt_hex = 5; + + string executable_type = 6; + string wasm_hash = 7; + string create_host_function_type = 8; + + bool constructor_invoked = 9; + string constructor_name = 10; + repeated string constructor_args = 11; + + bool contract_instance_created = 12; + repeated ContractCreatedStateEntry initialized_state = 13; + uint32 ttl_extended_to_ledger = 14; + + string classification_hint = 15; + repeated string classification_reasons = 16; + + string family_hint = 17; + double family_confidence = 18; + repeated string family_reasons = 19; + repeated string family_tags = 20; + repeated ContractFamilyCandidate family_candidates = 21; +} + +message ContractCreatedBatch { + repeated ContractCreatedEvent events = 1; + uint32 ledger_sequence = 2; + int32 event_count = 3; +} From 15ff0713f6159eb71406d61bc5f9e10aae04026a Mon Sep 17 00:00:00 2001 From: Tillman Mosley III Date: Tue, 21 Apr 2026 13:17:42 -0400 Subject: [PATCH 3/3] update proto --- go/gen/consumer/consumer.pb.go | 4 ++-- go/gen/consumer/consumer_grpc.pb.go | 22 ++++++++--------- go/gen/flow/v1/common.pb.go | 4 ++-- go/gen/flow/v1/envelope.pb.go | 4 ++-- go/gen/flow/v1/processor_service.pb.go | 4 ++-- go/gen/flow/v1/processor_service_grpc.pb.go | 8 +++---- go/gen/flow/v1/source_service.pb.go | 4 ++-- go/gen/flow/v1/source_service_grpc.pb.go | 8 +++---- go/gen/flowctl/v1/common.pb.go | 4 ++-- go/gen/flowctl/v1/consumer.pb.go | 4 ++-- go/gen/flowctl/v1/consumer_grpc.pb.go | 12 +++++----- go/gen/flowctl/v1/control_plane.pb.go | 4 ++-- go/gen/flowctl/v1/control_plane_grpc.pb.go | 18 +++++++------- go/gen/flowctl/v1/processor.pb.go | 4 ++-- go/gen/flowctl/v1/processor_grpc.pb.go | 12 +++++----- go/gen/flowctl/v1/source.pb.go | 4 ++-- go/gen/flowctl/v1/source_grpc.pb.go | 16 ++++++------- go/gen/processor/processor.pb.go | 4 ++-- go/gen/processor/processor_grpc.pb.go | 20 ++++++++-------- go/gen/source/source.pb.go | 4 ++-- go/gen/source/source_grpc.pb.go | 24 +++++++++---------- go/gen/stellar/v1/account_balances.pb.go | 4 ++-- go/gen/stellar/v1/account_balances_grpc.pb.go | 12 +++++----- go/gen/stellar/v1/contract_data.pb.go | 4 ++-- go/gen/stellar/v1/contract_data_grpc.pb.go | 14 +++++------ go/gen/stellar/v1/contract_events.pb.go | 4 ++-- go/gen/stellar/v1/contract_events_grpc.pb.go | 12 +++++----- go/gen/stellar/v1/contract_invocation.pb.go | 4 ++-- go/gen/stellar/v1/contract_state.pb.go | 4 ++-- go/gen/stellar/v1/contract_state_grpc.pb.go | 12 +++++----- go/gen/stellar/v1/defi_position.pb.go | 4 ++-- go/gen/stellar/v1/dex_swap.pb.go | 4 ++-- go/gen/stellar/v1/liquidity_pool_events.pb.go | 4 ++-- .../v1/liquidity_pool_events_grpc.pb.go | 12 +++++----- go/gen/stellar/v1/raw_ledger.pb.go | 4 ++-- go/gen/stellar/v1/raw_ledger_grpc.pb.go | 14 +++++------ ingest/asset/asset.pb.go | 4 ++-- .../token_transfer/token_transfer_event.pb.go | 4 ++-- 38 files changed, 154 insertions(+), 154 deletions(-) diff --git a/go/gen/consumer/consumer.pb.go b/go/gen/consumer/consumer.pb.go index 729997e..489319c 100644 --- a/go/gen/consumer/consumer.pb.go +++ b/go/gen/consumer/consumer.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: consumer/consumer.proto package consumer diff --git a/go/gen/consumer/consumer_grpc.pb.go b/go/gen/consumer/consumer_grpc.pb.go index ade18ad..3a528df 100644 --- a/go/gen/consumer/consumer_grpc.pb.go +++ b/go/gen/consumer/consumer_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: consumer/consumer.proto package consumer @@ -173,28 +173,28 @@ type ConsumerServiceServer interface { type UnimplementedConsumerServiceServer struct{} func (UnimplementedConsumerServiceServer) GetCapabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetCapabilities not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") } func (UnimplementedConsumerServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) { - return nil, status.Error(codes.Unimplemented, "method Configure not implemented") + return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented") } func (UnimplementedConsumerServiceServer) Consume(context.Context, *ConsumeRequest) (*ConsumeResponse, error) { - return nil, status.Error(codes.Unimplemented, "method Consume not implemented") + return nil, status.Errorf(codes.Unimplemented, "method Consume not implemented") } func (UnimplementedConsumerServiceServer) BatchConsume(context.Context, *BatchConsumeRequest) (*BatchConsumeResponse, error) { - return nil, status.Error(codes.Unimplemented, "method BatchConsume not implemented") + return nil, status.Errorf(codes.Unimplemented, "method BatchConsume not implemented") } func (UnimplementedConsumerServiceServer) StreamConsume(grpc.BidiStreamingServer[ConsumeRequest, ConsumeResponse]) error { - return status.Error(codes.Unimplemented, "method StreamConsume not implemented") + return status.Errorf(codes.Unimplemented, "method StreamConsume not implemented") } func (UnimplementedConsumerServiceServer) CheckHealth(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method CheckHealth not implemented") + return nil, status.Errorf(codes.Unimplemented, "method CheckHealth not implemented") } func (UnimplementedConsumerServiceServer) GetMetrics(context.Context, *MetricsRequest) (*MetricsResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetMetrics not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") } func (UnimplementedConsumerServiceServer) Control(context.Context, *LifecycleRequest) (*LifecycleResponse, error) { - return nil, status.Error(codes.Unimplemented, "method Control not implemented") + return nil, status.Errorf(codes.Unimplemented, "method Control not implemented") } func (UnimplementedConsumerServiceServer) mustEmbedUnimplementedConsumerServiceServer() {} func (UnimplementedConsumerServiceServer) testEmbeddedByValue() {} @@ -207,7 +207,7 @@ type UnsafeConsumerServiceServer interface { } func RegisterConsumerServiceServer(s grpc.ServiceRegistrar, srv ConsumerServiceServer) { - // If the following call panics, it indicates UnimplementedConsumerServiceServer was + // If the following call pancis, it indicates UnimplementedConsumerServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flow/v1/common.pb.go b/go/gen/flow/v1/common.pb.go index 2705ddb..a93cb24 100644 --- a/go/gen/flow/v1/common.pb.go +++ b/go/gen/flow/v1/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: flow/v1/common.proto package flowv1 diff --git a/go/gen/flow/v1/envelope.pb.go b/go/gen/flow/v1/envelope.pb.go index f4c3f60..ec20cda 100644 --- a/go/gen/flow/v1/envelope.pb.go +++ b/go/gen/flow/v1/envelope.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: flow/v1/envelope.proto package flowv1 diff --git a/go/gen/flow/v1/processor_service.pb.go b/go/gen/flow/v1/processor_service.pb.go index 1085b25..32d15fa 100644 --- a/go/gen/flow/v1/processor_service.pb.go +++ b/go/gen/flow/v1/processor_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: flow/v1/processor_service.proto package flowv1 diff --git a/go/gen/flow/v1/processor_service_grpc.pb.go b/go/gen/flow/v1/processor_service_grpc.pb.go index 4463dd7..ab672d4 100644 --- a/go/gen/flow/v1/processor_service_grpc.pb.go +++ b/go/gen/flow/v1/processor_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: flow/v1/processor_service.proto package flowv1 @@ -68,7 +68,7 @@ type ProcessorServiceServer interface { type UnimplementedProcessorServiceServer struct{} func (UnimplementedProcessorServiceServer) Transform(grpc.BidiStreamingServer[Envelope, Envelope]) error { - return status.Error(codes.Unimplemented, "method Transform not implemented") + return status.Errorf(codes.Unimplemented, "method Transform not implemented") } func (UnimplementedProcessorServiceServer) mustEmbedUnimplementedProcessorServiceServer() {} func (UnimplementedProcessorServiceServer) testEmbeddedByValue() {} @@ -81,7 +81,7 @@ type UnsafeProcessorServiceServer interface { } func RegisterProcessorServiceServer(s grpc.ServiceRegistrar, srv ProcessorServiceServer) { - // If the following call panics, it indicates UnimplementedProcessorServiceServer was + // If the following call pancis, it indicates UnimplementedProcessorServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flow/v1/source_service.pb.go b/go/gen/flow/v1/source_service.pb.go index 6686301..49b5bad 100644 --- a/go/gen/flow/v1/source_service.pb.go +++ b/go/gen/flow/v1/source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: flow/v1/source_service.proto package flowv1 diff --git a/go/gen/flow/v1/source_service_grpc.pb.go b/go/gen/flow/v1/source_service_grpc.pb.go index d583db7..9a12273 100644 --- a/go/gen/flow/v1/source_service_grpc.pb.go +++ b/go/gen/flow/v1/source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: flow/v1/source_service.proto package flowv1 @@ -68,7 +68,7 @@ type SourceServiceServer interface { type UnimplementedSourceServiceServer struct{} func (UnimplementedSourceServiceServer) Stream(grpc.BidiStreamingServer[Ack, Envelope]) error { - return status.Error(codes.Unimplemented, "method Stream not implemented") + return status.Errorf(codes.Unimplemented, "method Stream not implemented") } func (UnimplementedSourceServiceServer) mustEmbedUnimplementedSourceServiceServer() {} func (UnimplementedSourceServiceServer) testEmbeddedByValue() {} @@ -81,7 +81,7 @@ type UnsafeSourceServiceServer interface { } func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer) { - // If the following call panics, it indicates UnimplementedSourceServiceServer was + // If the following call pancis, it indicates UnimplementedSourceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/common.pb.go b/go/gen/flowctl/v1/common.pb.go index 39ac8d4..2ebb527 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 4fb3199..26034ad 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 4501464..7924b15 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: flowctl/v1/consumer.proto package flowctlv1 @@ -107,13 +107,13 @@ type ConsumerServiceServer interface { type UnimplementedConsumerServiceServer struct{} func (UnimplementedConsumerServiceServer) GetInfo(context.Context, *emptypb.Empty) (*ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedConsumerServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedConsumerServiceServer) Consume(grpc.ClientStreamingServer[Event, ConsumeResponse]) error { - return status.Error(codes.Unimplemented, "method Consume not implemented") + return status.Errorf(codes.Unimplemented, "method Consume not implemented") } func (UnimplementedConsumerServiceServer) mustEmbedUnimplementedConsumerServiceServer() {} func (UnimplementedConsumerServiceServer) testEmbeddedByValue() {} @@ -126,7 +126,7 @@ type UnsafeConsumerServiceServer interface { } func RegisterConsumerServiceServer(s grpc.ServiceRegistrar, srv ConsumerServiceServer) { - // If the following call panics, it indicates UnimplementedConsumerServiceServer was + // If the following call pancis, it indicates UnimplementedConsumerServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/control_plane.pb.go b/go/gen/flowctl/v1/control_plane.pb.go index 6f6d376..7952ff4 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 f55c899..fffa822 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: flowctl/v1/control_plane.proto package flowctlv1 @@ -147,22 +147,22 @@ type ControlPlaneServiceServer interface { type UnimplementedControlPlaneServiceServer struct{} func (UnimplementedControlPlaneServiceServer) RegisterComponent(context.Context, *RegisterRequest) (*RegisterResponse, error) { - return nil, status.Error(codes.Unimplemented, "method RegisterComponent not implemented") + return nil, status.Errorf(codes.Unimplemented, "method RegisterComponent not implemented") } func (UnimplementedControlPlaneServiceServer) UnregisterComponent(context.Context, *UnregisterRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method UnregisterComponent not implemented") + return nil, status.Errorf(codes.Unimplemented, "method UnregisterComponent not implemented") } func (UnimplementedControlPlaneServiceServer) DiscoverComponents(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error) { - return nil, status.Error(codes.Unimplemented, "method DiscoverComponents not implemented") + return nil, status.Errorf(codes.Unimplemented, "method DiscoverComponents not implemented") } func (UnimplementedControlPlaneServiceServer) Heartbeat(context.Context, *HeartbeatRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method Heartbeat not implemented") + return nil, status.Errorf(codes.Unimplemented, "method Heartbeat not implemented") } func (UnimplementedControlPlaneServiceServer) GetComponentStatus(context.Context, *ComponentStatusRequest) (*ComponentStatusResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetComponentStatus not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetComponentStatus not implemented") } func (UnimplementedControlPlaneServiceServer) ListComponents(context.Context, *ListComponentsRequest) (*ListComponentsResponse, error) { - return nil, status.Error(codes.Unimplemented, "method ListComponents not implemented") + return nil, status.Errorf(codes.Unimplemented, "method ListComponents not implemented") } func (UnimplementedControlPlaneServiceServer) mustEmbedUnimplementedControlPlaneServiceServer() {} func (UnimplementedControlPlaneServiceServer) testEmbeddedByValue() {} @@ -175,7 +175,7 @@ type UnsafeControlPlaneServiceServer interface { } func RegisterControlPlaneServiceServer(s grpc.ServiceRegistrar, srv ControlPlaneServiceServer) { - // If the following call panics, it indicates UnimplementedControlPlaneServiceServer was + // If the following call pancis, it indicates UnimplementedControlPlaneServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/processor.pb.go b/go/gen/flowctl/v1/processor.pb.go index 63106a1..9f4d690 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 35a99c2..df4a569 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: flowctl/v1/processor.proto package flowctlv1 @@ -109,13 +109,13 @@ type ProcessorServiceServer interface { type UnimplementedProcessorServiceServer struct{} func (UnimplementedProcessorServiceServer) GetInfo(context.Context, *emptypb.Empty) (*ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedProcessorServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedProcessorServiceServer) Process(grpc.BidiStreamingServer[Event, Event]) error { - return status.Error(codes.Unimplemented, "method Process not implemented") + return status.Errorf(codes.Unimplemented, "method Process not implemented") } func (UnimplementedProcessorServiceServer) mustEmbedUnimplementedProcessorServiceServer() {} func (UnimplementedProcessorServiceServer) testEmbeddedByValue() {} @@ -128,7 +128,7 @@ type UnsafeProcessorServiceServer interface { } func RegisterProcessorServiceServer(s grpc.ServiceRegistrar, srv ProcessorServiceServer) { - // If the following call panics, it indicates UnimplementedProcessorServiceServer was + // If the following call pancis, it indicates UnimplementedProcessorServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/flowctl/v1/source.pb.go b/go/gen/flowctl/v1/source.pb.go index 23f2634..25d11f0 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 2025260..9adf81e 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: flowctl/v1/source.proto package flowctlv1 @@ -143,19 +143,19 @@ type SourceServiceServer interface { type UnimplementedSourceServiceServer struct{} func (UnimplementedSourceServiceServer) GetInfo(context.Context, *emptypb.Empty) (*ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedSourceServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedSourceServiceServer) StreamEvents(*StreamRequest, grpc.ServerStreamingServer[Event]) error { - return status.Error(codes.Unimplemented, "method StreamEvents not implemented") + return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented") } func (UnimplementedSourceServiceServer) GetState(context.Context, *StateRequest) (*StateResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetState not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") } func (UnimplementedSourceServiceServer) SaveState(context.Context, *SaveStateRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method SaveState not implemented") + return nil, status.Errorf(codes.Unimplemented, "method SaveState not implemented") } func (UnimplementedSourceServiceServer) mustEmbedUnimplementedSourceServiceServer() {} func (UnimplementedSourceServiceServer) testEmbeddedByValue() {} @@ -168,7 +168,7 @@ type UnsafeSourceServiceServer interface { } func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer) { - // If the following call panics, it indicates UnimplementedSourceServiceServer was + // If the following call pancis, it indicates UnimplementedSourceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/processor/processor.pb.go b/go/gen/processor/processor.pb.go index 10af8ad..8590494 100644 --- a/go/gen/processor/processor.pb.go +++ b/go/gen/processor/processor.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: processor/processor.proto package processor diff --git a/go/gen/processor/processor_grpc.pb.go b/go/gen/processor/processor_grpc.pb.go index e4add8f..a715113 100644 --- a/go/gen/processor/processor_grpc.pb.go +++ b/go/gen/processor/processor_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: processor/processor.proto package processor @@ -163,25 +163,25 @@ type ProcessorServiceServer interface { type UnimplementedProcessorServiceServer struct{} func (UnimplementedProcessorServiceServer) GetCapabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetCapabilities not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") } func (UnimplementedProcessorServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) { - return nil, status.Error(codes.Unimplemented, "method Configure not implemented") + return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented") } func (UnimplementedProcessorServiceServer) Process(grpc.BidiStreamingServer[DataMessage, DataMessage]) error { - return status.Error(codes.Unimplemented, "method Process not implemented") + return status.Errorf(codes.Unimplemented, "method Process not implemented") } func (UnimplementedProcessorServiceServer) ProcessWithControl(grpc.BidiStreamingServer[ProcessControlMessage, ProcessControlMessage]) error { - return status.Error(codes.Unimplemented, "method ProcessWithControl not implemented") + return status.Errorf(codes.Unimplemented, "method ProcessWithControl not implemented") } func (UnimplementedProcessorServiceServer) GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetState not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") } func (UnimplementedProcessorServiceServer) CheckHealth(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method CheckHealth not implemented") + return nil, status.Errorf(codes.Unimplemented, "method CheckHealth not implemented") } func (UnimplementedProcessorServiceServer) ProcessSingle(context.Context, *DataMessage) (*DataMessage, error) { - return nil, status.Error(codes.Unimplemented, "method ProcessSingle not implemented") + return nil, status.Errorf(codes.Unimplemented, "method ProcessSingle not implemented") } func (UnimplementedProcessorServiceServer) mustEmbedUnimplementedProcessorServiceServer() {} func (UnimplementedProcessorServiceServer) testEmbeddedByValue() {} @@ -194,7 +194,7 @@ type UnsafeProcessorServiceServer interface { } func RegisterProcessorServiceServer(s grpc.ServiceRegistrar, srv ProcessorServiceServer) { - // If the following call panics, it indicates UnimplementedProcessorServiceServer was + // If the following call pancis, it indicates UnimplementedProcessorServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/source/source.pb.go b/go/gen/source/source.pb.go index 2ff3969..3ada261 100644 --- a/go/gen/source/source.pb.go +++ b/go/gen/source/source.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: source/source.proto package source diff --git a/go/gen/source/source_grpc.pb.go b/go/gen/source/source_grpc.pb.go index c08cc49..6021c7e 100644 --- a/go/gen/source/source_grpc.pb.go +++ b/go/gen/source/source_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: source/source.proto package source @@ -195,31 +195,31 @@ type SourceServiceServer interface { type UnimplementedSourceServiceServer struct{} func (UnimplementedSourceServiceServer) GetCapabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetCapabilities not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") } func (UnimplementedSourceServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) { - return nil, status.Error(codes.Unimplemented, "method Configure not implemented") + return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented") } func (UnimplementedSourceServiceServer) StartStreaming(*StartRequest, grpc.ServerStreamingServer[DataMessage]) error { - return status.Error(codes.Unimplemented, "method StartStreaming not implemented") + return status.Errorf(codes.Unimplemented, "method StartStreaming not implemented") } func (UnimplementedSourceServiceServer) StopStreaming(context.Context, *StopRequest) (*StopResponse, error) { - return nil, status.Error(codes.Unimplemented, "method StopStreaming not implemented") + return nil, status.Errorf(codes.Unimplemented, "method StopStreaming not implemented") } func (UnimplementedSourceServiceServer) GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetState not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") } func (UnimplementedSourceServiceServer) SetState(context.Context, *SetStateRequest) (*SetStateResponse, error) { - return nil, status.Error(codes.Unimplemented, "method SetState not implemented") + return nil, status.Errorf(codes.Unimplemented, "method SetState not implemented") } func (UnimplementedSourceServiceServer) CheckHealth(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method CheckHealth not implemented") + return nil, status.Errorf(codes.Unimplemented, "method CheckHealth not implemented") } func (UnimplementedSourceServiceServer) GetSnapshot(context.Context, *SnapshotRequest) (*SnapshotResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetSnapshot not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetSnapshot not implemented") } func (UnimplementedSourceServiceServer) InteractiveStreaming(grpc.BidiStreamingServer[StreamCommand, DataMessage]) error { - return status.Error(codes.Unimplemented, "method InteractiveStreaming not implemented") + return status.Errorf(codes.Unimplemented, "method InteractiveStreaming not implemented") } func (UnimplementedSourceServiceServer) mustEmbedUnimplementedSourceServiceServer() {} func (UnimplementedSourceServiceServer) testEmbeddedByValue() {} @@ -232,7 +232,7 @@ type UnsafeSourceServiceServer interface { } func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer) { - // If the following call panics, it indicates UnimplementedSourceServiceServer was + // If the following call pancis, it indicates UnimplementedSourceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/account_balances.pb.go b/go/gen/stellar/v1/account_balances.pb.go index 923c375..c1cb197 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 43ddc87..5c7eb8c 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: stellar/v1/account_balances.proto package stellarv1 @@ -112,13 +112,13 @@ type AccountBalanceServiceServer interface { type UnimplementedAccountBalanceServiceServer struct{} func (UnimplementedAccountBalanceServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedAccountBalanceServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedAccountBalanceServiceServer) StreamAccountBalances(*StreamAccountBalancesRequest, grpc.ServerStreamingServer[AccountBalance]) error { - return status.Error(codes.Unimplemented, "method StreamAccountBalances not implemented") + return status.Errorf(codes.Unimplemented, "method StreamAccountBalances not implemented") } func (UnimplementedAccountBalanceServiceServer) mustEmbedUnimplementedAccountBalanceServiceServer() {} func (UnimplementedAccountBalanceServiceServer) testEmbeddedByValue() {} @@ -131,7 +131,7 @@ type UnsafeAccountBalanceServiceServer interface { } func RegisterAccountBalanceServiceServer(s grpc.ServiceRegistrar, srv AccountBalanceServiceServer) { - // If the following call panics, it indicates UnimplementedAccountBalanceServiceServer was + // If the following call pancis, it indicates UnimplementedAccountBalanceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/contract_data.pb.go b/go/gen/stellar/v1/contract_data.pb.go index b4f5b3c..77c39ab 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 34a2272..a310f6a 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: stellar/v1/contract_data.proto package stellarv1 @@ -117,16 +117,16 @@ type ContractDataServiceServer interface { type UnimplementedContractDataServiceServer struct{} func (UnimplementedContractDataServiceServer) GetServiceInfo(context.Context, *emptypb.Empty) (*ServiceInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetServiceInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetServiceInfo not implemented") } func (UnimplementedContractDataServiceServer) GetStatus(context.Context, *emptypb.Empty) (*ProcessingStatus, error) { - return nil, status.Error(codes.Unimplemented, "method GetStatus not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") } func (UnimplementedContractDataServiceServer) GetFilterConfig(context.Context, *emptypb.Empty) (*FilterConfig, error) { - return nil, status.Error(codes.Unimplemented, "method GetFilterConfig not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetFilterConfig not implemented") } func (UnimplementedContractDataServiceServer) UpdateFilterConfig(context.Context, *FilterConfig) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateFilterConfig not implemented") + return nil, status.Errorf(codes.Unimplemented, "method UpdateFilterConfig not implemented") } func (UnimplementedContractDataServiceServer) mustEmbedUnimplementedContractDataServiceServer() {} func (UnimplementedContractDataServiceServer) testEmbeddedByValue() {} @@ -139,7 +139,7 @@ type UnsafeContractDataServiceServer interface { } func RegisterContractDataServiceServer(s grpc.ServiceRegistrar, srv ContractDataServiceServer) { - // If the following call panics, it indicates UnimplementedContractDataServiceServer was + // If the following call pancis, it indicates UnimplementedContractDataServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/contract_events.pb.go b/go/gen/stellar/v1/contract_events.pb.go index bf6c9ce..1f3b442 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 7f4937f..32f03d0 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: stellar/v1/contract_events.proto package stellarv1 @@ -112,13 +112,13 @@ type ContractEventServiceServer interface { type UnimplementedContractEventServiceServer struct{} func (UnimplementedContractEventServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedContractEventServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedContractEventServiceServer) GetContractEvents(*GetContractEventsRequest, grpc.ServerStreamingServer[ContractEvent]) error { - return status.Error(codes.Unimplemented, "method GetContractEvents not implemented") + return status.Errorf(codes.Unimplemented, "method GetContractEvents not implemented") } func (UnimplementedContractEventServiceServer) mustEmbedUnimplementedContractEventServiceServer() {} func (UnimplementedContractEventServiceServer) testEmbeddedByValue() {} @@ -131,7 +131,7 @@ type UnsafeContractEventServiceServer interface { } func RegisterContractEventServiceServer(s grpc.ServiceRegistrar, srv ContractEventServiceServer) { - // If the following call panics, it indicates UnimplementedContractEventServiceServer was + // If the following call pancis, it indicates UnimplementedContractEventServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/contract_invocation.pb.go b/go/gen/stellar/v1/contract_invocation.pb.go index cc1f218..9e1115a 100644 --- a/go/gen/stellar/v1/contract_invocation.pb.go +++ b/go/gen/stellar/v1/contract_invocation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: stellar/v1/contract_invocation.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_state.pb.go b/go/gen/stellar/v1/contract_state.pb.go index a06cd26..c19f186 100644 --- a/go/gen/stellar/v1/contract_state.pb.go +++ b/go/gen/stellar/v1/contract_state.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: stellar/v1/contract_state.proto package stellarv1 diff --git a/go/gen/stellar/v1/contract_state_grpc.pb.go b/go/gen/stellar/v1/contract_state_grpc.pb.go index 7cedb09..33ed1bb 100644 --- a/go/gen/stellar/v1/contract_state_grpc.pb.go +++ b/go/gen/stellar/v1/contract_state_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: stellar/v1/contract_state.proto package stellarv1 @@ -110,13 +110,13 @@ type ContractStateServiceServer interface { type UnimplementedContractStateServiceServer struct{} func (UnimplementedContractStateServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedContractStateServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedContractStateServiceServer) GetContractStateEvents(*GetContractStateEventsRequest, grpc.ServerStreamingServer[ContractStateEvent]) error { - return status.Error(codes.Unimplemented, "method GetContractStateEvents not implemented") + return status.Errorf(codes.Unimplemented, "method GetContractStateEvents not implemented") } func (UnimplementedContractStateServiceServer) mustEmbedUnimplementedContractStateServiceServer() {} func (UnimplementedContractStateServiceServer) testEmbeddedByValue() {} @@ -129,7 +129,7 @@ type UnsafeContractStateServiceServer interface { } func RegisterContractStateServiceServer(s grpc.ServiceRegistrar, srv ContractStateServiceServer) { - // If the following call panics, it indicates UnimplementedContractStateServiceServer was + // If the following call pancis, it indicates UnimplementedContractStateServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/defi_position.pb.go b/go/gen/stellar/v1/defi_position.pb.go index abf9fd1..ab917ae 100644 --- a/go/gen/stellar/v1/defi_position.pb.go +++ b/go/gen/stellar/v1/defi_position.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: stellar/v1/defi_position.proto package stellarv1 diff --git a/go/gen/stellar/v1/dex_swap.pb.go b/go/gen/stellar/v1/dex_swap.pb.go index 0b1935e..7ae49f7 100644 --- a/go/gen/stellar/v1/dex_swap.pb.go +++ b/go/gen/stellar/v1/dex_swap.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: stellar/v1/dex_swap.proto package stellarv1 diff --git a/go/gen/stellar/v1/liquidity_pool_events.pb.go b/go/gen/stellar/v1/liquidity_pool_events.pb.go index 443d78a..8c8a27b 100644 --- a/go/gen/stellar/v1/liquidity_pool_events.pb.go +++ b/go/gen/stellar/v1/liquidity_pool_events.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: stellar/v1/liquidity_pool_events.proto package stellarv1 diff --git a/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go b/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go index 7141196..254ac2a 100644 --- a/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go +++ b/go/gen/stellar/v1/liquidity_pool_events_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: stellar/v1/liquidity_pool_events.proto package stellarv1 @@ -110,13 +110,13 @@ type LiquidityPoolEventServiceServer interface { type UnimplementedLiquidityPoolEventServiceServer struct{} func (UnimplementedLiquidityPoolEventServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedLiquidityPoolEventServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedLiquidityPoolEventServiceServer) GetLiquidityPoolEvents(*GetLiquidityPoolEventsRequest, grpc.ServerStreamingServer[LiquidityPoolEvent]) error { - return status.Error(codes.Unimplemented, "method GetLiquidityPoolEvents not implemented") + return status.Errorf(codes.Unimplemented, "method GetLiquidityPoolEvents not implemented") } func (UnimplementedLiquidityPoolEventServiceServer) mustEmbedUnimplementedLiquidityPoolEventServiceServer() { } @@ -130,7 +130,7 @@ type UnsafeLiquidityPoolEventServiceServer interface { } func RegisterLiquidityPoolEventServiceServer(s grpc.ServiceRegistrar, srv LiquidityPoolEventServiceServer) { - // If the following call panics, it indicates UnimplementedLiquidityPoolEventServiceServer was + // If the following call pancis, it indicates UnimplementedLiquidityPoolEventServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/go/gen/stellar/v1/raw_ledger.pb.go b/go/gen/stellar/v1/raw_ledger.pb.go index 150ba43..adf846e 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.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.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 c1f862a..d02e525 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.6.0 -// - protoc v7.34.0 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.1 // source: stellar/v1/raw_ledger.proto package stellarv1 @@ -127,16 +127,16 @@ type RawLedgerServiceServer interface { type UnimplementedRawLedgerServiceServer struct{} func (UnimplementedRawLedgerServiceServer) GetInfo(context.Context, *emptypb.Empty) (*v1.ComponentInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedRawLedgerServiceServer) HealthCheck(context.Context, *v1.HealthCheckRequest) (*v1.HealthCheckResponse, error) { - return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") + return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedRawLedgerServiceServer) StreamRawLedgers(*StreamLedgersRequest, grpc.ServerStreamingServer[RawLedger]) error { - return status.Error(codes.Unimplemented, "method StreamRawLedgers not implemented") + return status.Errorf(codes.Unimplemented, "method StreamRawLedgers not implemented") } func (UnimplementedRawLedgerServiceServer) GetLedgerRange(context.Context, *GetLedgerRangeRequest) (*GetLedgerRangeResponse, error) { - return nil, status.Error(codes.Unimplemented, "method GetLedgerRange not implemented") + return nil, status.Errorf(codes.Unimplemented, "method GetLedgerRange not implemented") } func (UnimplementedRawLedgerServiceServer) mustEmbedUnimplementedRawLedgerServiceServer() {} func (UnimplementedRawLedgerServiceServer) testEmbeddedByValue() {} @@ -149,7 +149,7 @@ type UnsafeRawLedgerServiceServer interface { } func RegisterRawLedgerServiceServer(s grpc.ServiceRegistrar, srv RawLedgerServiceServer) { - // If the following call panics, it indicates UnimplementedRawLedgerServiceServer was + // If the following call pancis, it indicates UnimplementedRawLedgerServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. diff --git a/ingest/asset/asset.pb.go b/ingest/asset/asset.pb.go index bd22e4e..dfe2210 100644 --- a/ingest/asset/asset.pb.go +++ b/ingest/asset/asset.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: ingest/asset/asset.proto package asset diff --git a/ingest/processors/token_transfer/token_transfer_event.pb.go b/ingest/processors/token_transfer/token_transfer_event.pb.go index a825744..b769ab9 100644 --- a/ingest/processors/token_transfer/token_transfer_event.pb.go +++ b/ingest/processors/token_transfer/token_transfer_event.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc-gen-go v1.36.10 +// protoc v6.32.1 // source: ingest/processors/token_transfer/token_transfer_event.proto package token_transfer