Last active
December 4, 2023 16:30
-
-
Save altuntasfatih/ec93b3726e73af290067d7edd9fa7d95 to your computer and use it in GitHub Desktop.
Revisions
-
altuntasfatih revised this gist
Dec 4, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package contract; service Connect { rpc InitMoneyTransfer (InitMoneyTransferRequest) returns (Transfer) {} rpc ApproveTransfer (ApproveRequest) returns (Transfer) {} rpc RejectTransfer (RejectRequest) returns (Transfer) {} } -
altuntasfatih revised this gist
Dec 4, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ service Connect { rpc RejectTransfer (RejectRequest) returns (Transfer) {} } service Game { rpc HandleApproved (Transfer) returns (Response) {} rpc HandleRejected (Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} -
altuntasfatih revised this gist
Nov 15, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,6 +30,7 @@ message Transfer { string uuid = 2; float amount = 3; TransferStatus status = 4; string expires_at = 5; } message InitMoneyTransferRequest { float amount = 2; } message ApproveRequest { string uuid = 1; } -
altuntasfatih revised this gist
Nov 15, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ syntax = "proto3"; package contract; service Connect { rpc InitMoneyTransfer (InitMoneyTransferRequest) returns (Transfer) {} rpc ApproveTransger (ApproveRequest) returns (Transfer) {} rpc RejectTransfer (RejectRequest) returns (Transfer) {} } @@ -31,7 +31,7 @@ message Transfer { float amount = 3; TransferStatus status = 4; } message InitMoneyTransferRequest { float amount = 2; } message ApproveRequest { string uuid = 1; } message RejectRequest { string uuid = 1; } message Response {} -
altuntasfatih revised this gist
Oct 21, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ service Casino { } service Wallet { rpc HandleTransfer(Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} } -
altuntasfatih revised this gist
Oct 21, 2023 . 1 changed file with 11 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,28 +12,26 @@ service Casino { rpc HandleApproved (Transfer) returns (Response) {} rpc HandleRejected (Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} } service Wallet { rpc HandleTransferCreated(Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} } enum TransferStatus { OPEN = 0; APPROVED = 1; REJECTED = 2; EXPIRED = 3; } message Transfer { int64 id = 1; string uuid = 2; float amount = 3; TransferStatus status = 4; } message MoneyTransferRequest { float amount = 2; } message ApproveRequest { string uuid = 1; } message RejectRequest { string uuid = 1; } message Response {} -
altuntasfatih revised this gist
Oct 8, 2023 . 1 changed file with 10 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,8 +22,16 @@ service Wallet { } message Transfer { string uuid = 1; double amount = 2; TransferStatus status = 3; } enum TransferStatus { OPEN = 0; APPROVED = 1; DISCARDED = 2; REJECTED = 3; EXPIRED =4; } message MoneyTransferRequest { double amount = 2; } message ApproveRequest { string uuid = 1; } -
altuntasfatih revised this gist
Oct 8, 2023 . No changes.There are no files selected for viewing
-
altuntasfatih revised this gist
Oct 8, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,4 +28,4 @@ message Transfer { message MoneyTransferRequest { double amount = 2; } message ApproveRequest { string uuid = 1; } message RejectRequest { string uuid = 1; } message Response {} -
altuntasfatih revised this gist
Oct 8, 2023 . 1 changed file with 14 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,28 +3,29 @@ syntax = "proto3"; package contract; service Connect { rpc InitMoneyTransfer (MoneyTransferRequest) returns (Transfer) {} rpc ApproveTransger (ApproveRequest) returns (Transfer) {} rpc RejectTransfer (RejectRequest) returns (Transfer) {} } service Casino { rpc HandleApproved (Transfer) returns (Response) {} rpc HandleRejected (Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} rpc HandleClosed (Transfer) returns (Response) {} } service Wallet { rpc HandleTransferCreated(Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} rpc HandleClosed (Transfer) returns (Response) {} } message Transfer { string uuid = 1; double amount = 2; } message MoneyTransferRequest { double amount = 2; } message ApproveRequest { string uuid = 1; } message RejectRequest { string uuid = 1; } message Response { bool success= 1; } -
altuntasfatih created this gist
Oct 8, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ syntax = "proto3"; package contract; service Connect { rpc InitMoneyTransfer (MoneyTransferRequest) returns (Transfer) {} rpc Approve (ApproveRequest) returns (Transfer) {} rpc Reject (RejectRequest) returns (Transfer) {} } service Casino { rpc HandleApproved (Transfer) returns (Response) {} rpc HandleRejected (Transfer) returns (Response) {} rpc HandleExpired (Transfer) returns (Response) {} rpc HandleClosed (Transfer) returns (Response) {} } service Wallet { rpc HandleExpired (Transfer) returns (Response) {} rpc HandleClosed (Transfer) returns (Response) {} } message Transfer { string uuid = 1; double amount = 2; } message MoneyTransferRequest {double amount = 2;} message ApproveRequest {string uuid = 1;} message RejectRequest {string uuid = 1;} message Response {bool success= 1;}