protobuf-platform 1.2.314 → 1.2.317

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bet/bet.proto CHANGED
@@ -28,6 +28,9 @@ service Bet {
28
28
  rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
29
29
  rpc axiomProcessBet(AxiomProcessBetRequest) returns (AxiomBetStatusResponse);
30
30
 
31
+ // Neutral test bet creation (gateway + config-resolved test player).
32
+ rpc createTestBet(CreateTestBetRequest) returns (CreateTestBetResponse);
33
+
31
34
  // Games aggregation
32
35
  rpc getWinRates(PaginationRequest) returns (WinRatesResponse);
33
36
  rpc getLastWins(PaginationRequest) returns (WinRatesResponse);
@@ -165,6 +168,42 @@ message AxiomProcessBetRequest {
165
168
  message AxiomBetStatusResponse {
166
169
  string status = 1;
167
170
  }
171
+
172
+ message CreateTestBetRequest {
173
+ int32 game_id = 1;
174
+ float amount = 2;
175
+ string currency = 3;
176
+ string token_id = 4;
177
+ string token_chain_id = 5;
178
+ optional bool with_win = 6;
179
+ optional float win_amount = 7;
180
+ }
181
+
182
+ message CreateTestBetResponse {
183
+ optional TestBetResult bet = 1;
184
+ optional TestBetResult win = 2;
185
+ }
186
+
187
+ message TestBetResult {
188
+ int32 id = 1;
189
+ string source_event_id = 2;
190
+ string action = 3;
191
+ string player_id = 4;
192
+ int32 game_id = 5;
193
+ string round_id = 6;
194
+ string transaction_id = 7;
195
+ string currency = 8;
196
+ string base_currency = 9;
197
+ float amount = 10;
198
+ float amount_in_base_currency = 11;
199
+ string amount_cents = 12;
200
+ string token_chain_id = 13;
201
+ string token_id = 14;
202
+ bool dispatch_ok = 15;
203
+ optional int32 dispatch_http_status = 16;
204
+ optional string dispatch_response_body = 17;
205
+ }
206
+
168
207
  //Win Rates
169
208
  message WinRateItem {
170
209
  float amount = 1;
@@ -114,6 +114,28 @@ function deserialize_bet_BetsHistoryResponse(buffer_arg) {
114
114
  return bet_pb.BetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_bet_CreateTestBetRequest(arg) {
118
+ if (!(arg instanceof bet_pb.CreateTestBetRequest)) {
119
+ throw new Error('Expected argument of type bet.CreateTestBetRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_bet_CreateTestBetRequest(buffer_arg) {
125
+ return bet_pb.CreateTestBetRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
128
+ function serialize_bet_CreateTestBetResponse(arg) {
129
+ if (!(arg instanceof bet_pb.CreateTestBetResponse)) {
130
+ throw new Error('Expected argument of type bet.CreateTestBetResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_bet_CreateTestBetResponse(buffer_arg) {
136
+ return bet_pb.CreateTestBetResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
117
139
  function serialize_bet_DashboardRequest(arg) {
118
140
  if (!(arg instanceof bet_pb.DashboardRequest)) {
119
141
  throw new Error('Expected argument of type bet.DashboardRequest');
@@ -343,6 +365,18 @@ axiomGetAuthHash: {
343
365
  responseSerialize: serialize_bet_AxiomBetStatusResponse,
344
366
  responseDeserialize: deserialize_bet_AxiomBetStatusResponse,
345
367
  },
368
+ // Neutral test bet creation (gateway + config-resolved test player).
369
+ createTestBet: {
370
+ path: '/bet.Bet/createTestBet',
371
+ requestStream: false,
372
+ responseStream: false,
373
+ requestType: bet_pb.CreateTestBetRequest,
374
+ responseType: bet_pb.CreateTestBetResponse,
375
+ requestSerialize: serialize_bet_CreateTestBetRequest,
376
+ requestDeserialize: deserialize_bet_CreateTestBetRequest,
377
+ responseSerialize: serialize_bet_CreateTestBetResponse,
378
+ responseDeserialize: deserialize_bet_CreateTestBetResponse,
379
+ },
346
380
  // Games aggregation
347
381
  getWinRates: {
348
382
  path: '/bet.Bet/getWinRates',