Skip to content

Commit

Permalink
More payment stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 27, 2024
1 parent 535a8de commit 726d103
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions proto/Bid.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

syntax = "proto3";
option php_namespace = 'App\\Grpc\\nostr';
option php_metadata_namespace = 'App\\Grpc\\nostr\\GPBMetadata';

message Bid {
uint64 amount = 1;
string currency = 2;
string protocol = 3;
}
4 changes: 2 additions & 2 deletions proto/Job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "JobInput.proto";
import "JobState.proto";
import "JobResult.proto";
import "Payment.proto";

import "Bid.proto";

option php_namespace = 'App\\Grpc\\nostr';
option php_metadata_namespace = 'App\\Grpc\\nostr\\GPBMetadata';
Expand Down Expand Up @@ -44,7 +44,7 @@ message Job {
string outputFormat = 16;
optional bool encrypted = 17;

repeated Payment bids = 19;
optional Bid bid = 19;



Expand Down
3 changes: 2 additions & 1 deletion proto/Payment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
syntax = "proto3";
option php_namespace = 'App\\Grpc\\nostr';
option php_metadata_namespace = 'App\\Grpc\\nostr\\GPBMetadata';
import "PaymentStatus.proto";

message Payment {
string id = 1;
uint64 amount = 2;
string currency = 3;
string protocol = 4;
string status = 5;
PaymentStatus status = 5;
optional string data = 6;
}

0 comments on commit 726d103

Please sign in to comment.