Skip to content

Commit

Permalink
[DIAGRAMS] add diagrams to every proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Dec 7, 2023
1 parent 9084709 commit 013d880
Show file tree
Hide file tree
Showing 38 changed files with 77 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "cmp/types/v1alpha1/price.proto";
// ### Property Info message type
//
// Represents basic property info
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/property_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/property_types.proto.dot.svg)
message PropertyInfo {
// Name of the property
string property_name = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/accommodation/v1alpha1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import "cmp/types/v1alpha1/search.proto";
//
// Developers leveraging this message type should ensure proper validation and handling, especially considering fields
// that are still under review, like `speech_request`.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/search.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/search.proto.dot.svg)
message AccommodationSearchRequest {
// Message Header. Contains api version, message info string and end-user wallet address
cmp.types.v1alpha1.Header header = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import "cmp/types/v1alpha1/rate.proto";
//
// This type represents a search result and is used in the
// `AccommodationSearchResponse` message.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/search_option_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/search_option_types.proto.dot.svg)
message AccommodationSearchOption {
// Option ID for the search option. This is an increasing number starting at 0 and
// increasing by 1 for every search result.
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/accommodation/v1alpha1/unit_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import "cmp/types/v1alpha1/traveller.proto";
// multi-room requests Ex: one request for 2 rooms for 4 adults, 2 in each room.
// A unit can also be a different property in a multi-property request for holiday homes.
// Ex: 1 house for 4 persons and another house for 6 persons.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/unit_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/unit_types.proto.dot.svg)
message Unit {
// Unit Type
// Ex: `UnitType.UNIT_TYPE_ROOM`
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/activity/v1alpha1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "cmp/types/v1alpha1/traveller.proto";
// ### Activity Search Request
//
// Search request for Activities
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/activity/v1alpha1/search.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/activity/v1alpha1/search.proto.dot.svg)
message ActivitySearchRequest {
// Message Header. Contains api version, message info string and end-user wallet address
cmp.types.v1alpha1.Header header = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import "google/protobuf/timestamp.proto";
//
// This type represents a search result and is used in the
// `ActivitySearchResponse` message.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/activity/v1alpha1/search_option_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/activity/v1alpha1/search_option_types.proto.dot.svg)
message ActivitySearchOption {
// Option ID for the search option. This is an increasing number starting at 0 and
// increasing by 1 for every search result.
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/network/v1alpha1/fee.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package cmp.services.network.v1alpha1;

import "cmp/types/v1alpha1/asset.proto";

// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/network/v1alpha1/fee.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/network/v1alpha1/fee.proto.dot.svg)
message NetworkFee {
// Network fee, unit is nCAM
// 1 CAM == 1 000 000 000 nCAM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package cmp.services.partner.v1alpha1;

import "cmp/types/v1alpha1/partner.proto";

// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/partner/v1alpha1/partner_configuration.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/partner/v1alpha1/partner_configuration.proto.dot.svg)
message PartnerConfiguration {
// List of partners from the on-chain Partner Configuration
repeated cmp.types.v1alpha1.Partner partners = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/ping/v1alpha1/ping.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "google/protobuf/timestamp.proto";
// The ping message is designed to test the availability of a provider service
// and to test the network latency as in the gRPC metadata information the
// DateTime is stored of each hop.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/ping/v1alpha1/ping.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/ping/v1alpha1/ping.proto.dot.svg)
message PingRequest {
// Message Header
// Contains api version, message info string and end user wallet address
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/transport/v1alpha1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import "cmp/types/v1alpha1/search.proto";
import "cmp/types/v1alpha1/traveller.proto";

// ### Transport Search Request
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/search.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/search.proto.dot.svg)
message TransportSearchRequest {
// Message Header. Contains api version, message info string and end-user wallet address
cmp.types.v1alpha1.Header header = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import "cmp/types/v1alpha1/service_fact.proto";
import "cmp/types/v1alpha1/traveller.proto";

// Transport search result
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/search_option_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/search_option_types.proto.dot.svg)
message TransportSearchOption {
// Unique option ID for this search
int32 option_id = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/transport/v1alpha1/source_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.services.transport.v1alpha1;

// ### Content Source Type message type
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/source_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/source_types.proto.dot.svg)
enum ContentSourceType {
CONTENT_SOURCE_TYPE_UNSPECIFIED = 0;
CONTENT_SOURCE_TYPE_GDS = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/transport/v1alpha1/trip_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "google/protobuf/timestamp.proto";

// ### Trip message type
// This message type represents a one way trip, either travelling or returning.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/trip_types.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha1/trip_types.proto.dot.svg)
message Trip {
// Departure min time
google.protobuf.Timestamp departure_min_time = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/asset.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// An on-chain asset on the Camino Network
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/asset.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/asset.proto.dot.svg)
message Asset {
string asset_id = 1;
string name = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/cancel_policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "google/protobuf/timestamp.proto";
// - a simple boolean for refundable or non-refundable options
// - a "free cancellation upto" DateTime
// - complete cancellation policies with from/to DateTime stamps
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/cancel_policy.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/cancel_policy.proto.dot.svg)
message CancelPolicy {
// Cancellation policy refundable or not
bool refundable = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// ### CM Message Header
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/common.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/common.proto.dot.svg)
message Header {
// Protocol Version
Version version = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/country.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package cmp.types.v1alpha1;
//
// Country options according to ISO 3166-1, with the 31 most popular countries
// first, using fewer bytes in the code thus reducing message size.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/country.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/country.proto.dot.svg)
enum Country {
COUNTRY_UNSPECIFIED = 0;

Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/currency.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package cmp.types.v1alpha1;
//
// First 20 currencies are the most traded currencies in the world.
// This is done to optimize the size of the protobuf message size.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/currency.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/currency.proto.dot.svg)
enum Currency {
CURRENCY_UNSPECIFIED = 0; // Placeholder or unspecified currency

Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/date.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// Date Message
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/date.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/date.proto.dot.svg)
message Date {
int32 year = 1;
int32 month = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/datetime_range.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ package cmp.types.v1alpha1;
import "google/protobuf/timestamp.proto";

// Date Message
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/datetime_range.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/datetime_range.proto.dot.svg)
message DateTimeRange {
google.protobuf.Timestamp start_datetime = 1;
google.protobuf.Timestamp end_datetime = 2;
Expand Down
4 changes: 3 additions & 1 deletion proto/cmp/types/v1alpha1/distance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ syntax = "proto3";

package cmp.types.v1alpha1;

// Distance unit and value pair
// ### Distance unit and value pair
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/distance.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/distance.proto.dot.svg)
message Distance {
int32 value = 1;
DistanceUnit distance_unit = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/filter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// Upfront filtering of possible search options in the search response
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/filter.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/filter.proto.dot.svg)
message Filter {
// Filter code agreed between provider and distributor
// FIXME: Should filters be standardized per vertical?
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/fulfillment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// ### Fulfillment message type
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/fulfillment.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/fulfillment.proto.dot.svg)
message Fulfillment {
// Link type
// Ex: "LG" or "TC"
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/language.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ package cmp.types.v1alpha1;
// Language options according to ISO 639-1, with the 26 most popular languages first.
// This is done to use the smaller values more frequently and thus consume less bytes
// for this field.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/language.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/language.proto.dot.svg)
enum Language {
LANGUAGE_UNSPECIFIED = 0;
LANGUAGE_AR = 1; // Arabic
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/location.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import "cmp/types/v1alpha1/distance.proto";
// ### Coordinate
//
// Represents a geographic location
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/location.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/location.proto.dot.svg)
message Coordinate {
// The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/mealplan.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// Meal Plan message type
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/mealplan.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/mealplan.proto.dot.svg)
message MealPlan {
// Meal Plan Code
// Ex: `MealPlan.MEAL_PLAN_AI` for "All Inclusive" meal plan.
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/partner.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import "cmp/types/v1alpha1/token.proto";
import "cmp/types/v1alpha1/wallet.proto";

// ### Partner message type
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/partner.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/partner.proto.dot.svg)
message Partner {
// Short name of the partner. Ex: Chain4Travel
string short_name = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/price.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import "cmp/types/v1alpha1/currency.proto";
//
// Breakdown is a recursively inhereted object of PriceDetail. This way complex
// pricing structures can be represented.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/price.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/price.proto.dot.svg)
message PriceDetail {
// Principle price element
Price price = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/rate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// Rate Rule
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/rate.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/rate.proto.dot.svg)
message RateRule {
RateRuleType rate_type = 1;
string rate_description = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "cmp/types/v1alpha1/sorting.proto";
import "cmp/types/v1alpha1/uuid.proto";

// Search parameters for the search requests
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/search.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/search.proto.dot.svg)
message SearchParameters {
// Requested currency in which prices have to be supplied in the response according to ISO 4217 Currency codes
Currency currency = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/service_fact.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import "cmp/types/v1alpha1/price.proto";
// "description" : "Wireless internet access (WIFI)"
// },
// ```
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/service_fact.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/service_fact.proto.dot.svg)
message ServiceFact {
string description = 1;
Price price = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/sorting.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package cmp.types.v1alpha1;

// Sorting type and order: this is being used in requests to specify the sorting
// required in the response.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/sorting.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/sorting.proto.dot.svg)
message Sorting {
SortingType sorting_type = 1;
SortingOrder sorting_order = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/time.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// Time Message
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/time.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/time.proto.dot.svg)
message Time {
int32 hours = 1;
int32 minutes = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/token.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// ERC20 Token Reference
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/token.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/token.proto.dot.svg)
message ERC20Token {
string contract_address = 1;
string name = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/travel_period.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ package cmp.types.v1alpha1;
import "cmp/types/v1alpha1/date.proto";

// Travel Period
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/travel_period.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/travel_period.proto.dot.svg)
message TravelPeriod {
cmp.types.v1alpha1.Date start_date = 1;
cmp.types.v1alpha1.Date end_date = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/traveller.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import "cmp/types/v1alpha1/country.proto";
import "cmp/types/v1alpha1/date.proto";

// Traveller
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/traveller.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/traveller.proto.dot.svg)
message Traveller {
// Guest number, the lowest number is the lead-pax
int32 guest_number = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/uuid.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package cmp.types.v1alpha1;

// ### UUID message type
// This must be a UUID according to RFC 4122 standard.
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/uuid.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/uuid.proto.dot.svg)
message UUID {
string value = 1;
}
2 changes: 2 additions & 0 deletions proto/cmp/types/v1alpha1/wallet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package cmp.types.v1alpha1;

// Address and public key for a wallet
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/wallet.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/wallet.proto.dot.svg)
message WalletAddress {
// Wallet address
// Example:
Expand Down

0 comments on commit 013d880

Please sign in to comment.