Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat marketing #1252

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions api/marketing/v1/marketing.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
syntax = "proto3";

package marketing.v1;
option go_package = "./marketingpb";

service MarketingService {
rpc News(NewsRequest) returns (NewsResponse);
rpc LiveCollections(LiveCollectionsRequest) returns (LiveCollectionsResponse);
rpc UpcomingCollections(UpcomingCollectionsRequest) returns (UpcomingCollectionsResponse);
rpc HighlightedCollections(HighlightedCollectionsRequest) returns (HighlightedCollectionsResponse);
}

message MarketingCollectionPreview {
string id = 1;
string image_uri = 2;
string collection_name = 3;
string creator_name = 4;
string twitter_url = 5;
bool secondary_during_mint = 6;
}

message Action {
string label = 1;
string url = 2;
}

message News {
string title = 1;
string subtitle = 2;
string text = 3;
string image = 4;
repeated Action actions = 5;
}

message Banner {
string image = 1;
string url = 2;
}

message NewsRequest {
bool testnet = 1;
}

message NewsResponse {
repeated News news = 1;
}

message BannersRequest {
bool testnet = 1;
}

message BannersResponse {
repeated Banner banners = 1;
}

message LiveCollectionsRequest {
string network_id = 1;
}

message LiveCollectionsResponse {
repeated MarketingCollectionPreview collections = 1;
}

message UpcomingCollectionsRequest {
string network_id = 1;
}

message UpcomingCollectionsResponse {
repeated MarketingCollectionPreview collections = 1;
}

message HighlightedCollectionsRequest {
string network_id = 1;
}

message HighlightedCollectionsResponse {
repeated MarketingCollectionPreview collections = 1;
}
Loading
Loading