From 92f309b09285a03ed5072d39cf648cd42c43b9d0 Mon Sep 17 00:00:00 2001 From: Andrei Ivasko Date: Thu, 19 Aug 2021 12:04:46 +0300 Subject: [PATCH 1/2] add cosmos.proto to this repo --- cosmos.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cosmos.proto diff --git a/cosmos.proto b/cosmos.proto new file mode 100644 index 0000000..e6c42c6 --- /dev/null +++ b/cosmos.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package cosmos_proto; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cosmos/cosmos-proto"; + +extend google.protobuf.MessageOptions { + string implements_interface = 93001; +} + +extend google.protobuf.FieldOptions { + string accepts_interface = 93001; + + string scalar = 93002; +} From d243bcd3c1c195c1018f8f6b5f26035c7e3eeaff Mon Sep 17 00:00:00 2001 From: Andrei Ivasko Date: Tue, 24 Aug 2021 20:09:13 +0300 Subject: [PATCH 2/2] add field comments --- cosmos.proto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cosmos.proto b/cosmos.proto index e6c42c6..682d98a 100644 --- a/cosmos.proto +++ b/cosmos.proto @@ -6,11 +6,13 @@ import "google/protobuf/descriptor.proto"; option go_package = "github.com/cosmos/cosmos-proto"; extend google.protobuf.MessageOptions { + // implements_interface is used to annotate interface implementations string implements_interface = 93001; } extend google.protobuf.FieldOptions { + // accepts_interface is used to annote fields that accept interfaces string accepts_interface = 93001; - + // scalar is used to define scalar types string scalar = 93002; }