@actuallyfair/verifier 0.0.5 → 0.0.7

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.
@@ -10,15 +10,16 @@ import { Plinko } from "./plinko";
10
10
  import { Tower } from "./tower";
11
11
 
12
12
  export interface Context {
13
+ compressedSeed: number;
14
+ init?: PosthashInit | undefined;
15
+ plinko?: Plinko | undefined;
16
+ crashDice?: CrashDice | undefined;
13
17
  fairCoinToss?: FairCoinToss | undefined;
14
18
  crash?: Crash | undefined;
15
19
  hilo?: HiLo | undefined;
16
- crashDice?: CrashDice | undefined;
17
20
  multiRoulette?: MultiRoulette | undefined;
18
21
  mines?: Mines | undefined;
19
22
  tower?: Tower | undefined;
20
- plinko?: Plinko | undefined;
21
- init?: PosthashInit | undefined;
22
23
  }
23
24
 
24
25
  export interface PosthashInit {
@@ -26,46 +27,50 @@ export interface PosthashInit {
26
27
 
27
28
  function createBaseContext(): Context {
28
29
  return {
30
+ compressedSeed: 0,
31
+ init: undefined,
32
+ plinko: undefined,
33
+ crashDice: undefined,
29
34
  fairCoinToss: undefined,
30
35
  crash: undefined,
31
36
  hilo: undefined,
32
- crashDice: undefined,
33
37
  multiRoulette: undefined,
34
38
  mines: undefined,
35
39
  tower: undefined,
36
- plinko: undefined,
37
- init: undefined,
38
40
  };
39
41
  }
40
42
 
41
43
  export const Context = {
42
44
  encode(message: Context, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
43
- if (message.fairCoinToss !== undefined) {
44
- FairCoinToss.encode(message.fairCoinToss, writer.uint32(10).fork()).ldelim();
45
+ if (message.compressedSeed !== 0) {
46
+ writer.uint32(13).fixed32(message.compressedSeed);
45
47
  }
46
- if (message.crash !== undefined) {
47
- Crash.encode(message.crash, writer.uint32(18).fork()).ldelim();
48
+ if (message.init !== undefined) {
49
+ PosthashInit.encode(message.init, writer.uint32(18).fork()).ldelim();
48
50
  }
49
- if (message.hilo !== undefined) {
50
- HiLo.encode(message.hilo, writer.uint32(26).fork()).ldelim();
51
+ if (message.plinko !== undefined) {
52
+ Plinko.encode(message.plinko, writer.uint32(26).fork()).ldelim();
51
53
  }
52
54
  if (message.crashDice !== undefined) {
53
55
  CrashDice.encode(message.crashDice, writer.uint32(34).fork()).ldelim();
54
56
  }
57
+ if (message.fairCoinToss !== undefined) {
58
+ FairCoinToss.encode(message.fairCoinToss, writer.uint32(42).fork()).ldelim();
59
+ }
60
+ if (message.crash !== undefined) {
61
+ Crash.encode(message.crash, writer.uint32(50).fork()).ldelim();
62
+ }
63
+ if (message.hilo !== undefined) {
64
+ HiLo.encode(message.hilo, writer.uint32(58).fork()).ldelim();
65
+ }
55
66
  if (message.multiRoulette !== undefined) {
56
- MultiRoulette.encode(message.multiRoulette, writer.uint32(42).fork()).ldelim();
67
+ MultiRoulette.encode(message.multiRoulette, writer.uint32(66).fork()).ldelim();
57
68
  }
58
69
  if (message.mines !== undefined) {
59
- Mines.encode(message.mines, writer.uint32(50).fork()).ldelim();
70
+ Mines.encode(message.mines, writer.uint32(74).fork()).ldelim();
60
71
  }
61
72
  if (message.tower !== undefined) {
62
- Tower.encode(message.tower, writer.uint32(58).fork()).ldelim();
63
- }
64
- if (message.plinko !== undefined) {
65
- Plinko.encode(message.plinko, writer.uint32(66).fork()).ldelim();
66
- }
67
- if (message.init !== undefined) {
68
- PosthashInit.encode(message.init, writer.uint32(74).fork()).ldelim();
73
+ Tower.encode(message.tower, writer.uint32(82).fork()).ldelim();
69
74
  }
70
75
  return writer;
71
76
  },
@@ -78,25 +83,25 @@ export const Context = {
78
83
  const tag = reader.uint32();
79
84
  switch (tag >>> 3) {
80
85
  case 1:
81
- if (tag !== 10) {
86
+ if (tag !== 13) {
82
87
  break;
83
88
  }
84
89
 
85
- message.fairCoinToss = FairCoinToss.decode(reader, reader.uint32());
90
+ message.compressedSeed = reader.fixed32();
86
91
  continue;
87
92
  case 2:
88
93
  if (tag !== 18) {
89
94
  break;
90
95
  }
91
96
 
92
- message.crash = Crash.decode(reader, reader.uint32());
97
+ message.init = PosthashInit.decode(reader, reader.uint32());
93
98
  continue;
94
99
  case 3:
95
100
  if (tag !== 26) {
96
101
  break;
97
102
  }
98
103
 
99
- message.hilo = HiLo.decode(reader, reader.uint32());
104
+ message.plinko = Plinko.decode(reader, reader.uint32());
100
105
  continue;
101
106
  case 4:
102
107
  if (tag !== 34) {
@@ -110,35 +115,42 @@ export const Context = {
110
115
  break;
111
116
  }
112
117
 
113
- message.multiRoulette = MultiRoulette.decode(reader, reader.uint32());
118
+ message.fairCoinToss = FairCoinToss.decode(reader, reader.uint32());
114
119
  continue;
115
120
  case 6:
116
121
  if (tag !== 50) {
117
122
  break;
118
123
  }
119
124
 
120
- message.mines = Mines.decode(reader, reader.uint32());
125
+ message.crash = Crash.decode(reader, reader.uint32());
121
126
  continue;
122
127
  case 7:
123
128
  if (tag !== 58) {
124
129
  break;
125
130
  }
126
131
 
127
- message.tower = Tower.decode(reader, reader.uint32());
132
+ message.hilo = HiLo.decode(reader, reader.uint32());
128
133
  continue;
129
134
  case 8:
130
135
  if (tag !== 66) {
131
136
  break;
132
137
  }
133
138
 
134
- message.plinko = Plinko.decode(reader, reader.uint32());
139
+ message.multiRoulette = MultiRoulette.decode(reader, reader.uint32());
135
140
  continue;
136
141
  case 9:
137
142
  if (tag !== 74) {
138
143
  break;
139
144
  }
140
145
 
141
- message.init = PosthashInit.decode(reader, reader.uint32());
146
+ message.mines = Mines.decode(reader, reader.uint32());
147
+ continue;
148
+ case 10:
149
+ if (tag !== 82) {
150
+ break;
151
+ }
152
+
153
+ message.tower = Tower.decode(reader, reader.uint32());
142
154
  continue;
143
155
  }
144
156
  if ((tag & 7) === 4 || tag === 0) {
@@ -151,20 +163,33 @@ export const Context = {
151
163
 
152
164
  fromJSON(object: any): Context {
153
165
  return {
166
+ compressedSeed: isSet(object.compressedSeed) ? globalThis.Number(object.compressedSeed) : 0,
167
+ init: isSet(object.init) ? PosthashInit.fromJSON(object.init) : undefined,
168
+ plinko: isSet(object.plinko) ? Plinko.fromJSON(object.plinko) : undefined,
169
+ crashDice: isSet(object.crashDice) ? CrashDice.fromJSON(object.crashDice) : undefined,
154
170
  fairCoinToss: isSet(object.fairCoinToss) ? FairCoinToss.fromJSON(object.fairCoinToss) : undefined,
155
171
  crash: isSet(object.crash) ? Crash.fromJSON(object.crash) : undefined,
156
172
  hilo: isSet(object.hilo) ? HiLo.fromJSON(object.hilo) : undefined,
157
- crashDice: isSet(object.crashDice) ? CrashDice.fromJSON(object.crashDice) : undefined,
158
173
  multiRoulette: isSet(object.multiRoulette) ? MultiRoulette.fromJSON(object.multiRoulette) : undefined,
159
174
  mines: isSet(object.mines) ? Mines.fromJSON(object.mines) : undefined,
160
175
  tower: isSet(object.tower) ? Tower.fromJSON(object.tower) : undefined,
161
- plinko: isSet(object.plinko) ? Plinko.fromJSON(object.plinko) : undefined,
162
- init: isSet(object.init) ? PosthashInit.fromJSON(object.init) : undefined,
163
176
  };
164
177
  },
165
178
 
166
179
  toJSON(message: Context): unknown {
167
180
  const obj: any = {};
181
+ if (message.compressedSeed !== 0) {
182
+ obj.compressedSeed = Math.round(message.compressedSeed);
183
+ }
184
+ if (message.init !== undefined) {
185
+ obj.init = PosthashInit.toJSON(message.init);
186
+ }
187
+ if (message.plinko !== undefined) {
188
+ obj.plinko = Plinko.toJSON(message.plinko);
189
+ }
190
+ if (message.crashDice !== undefined) {
191
+ obj.crashDice = CrashDice.toJSON(message.crashDice);
192
+ }
168
193
  if (message.fairCoinToss !== undefined) {
169
194
  obj.fairCoinToss = FairCoinToss.toJSON(message.fairCoinToss);
170
195
  }
@@ -174,9 +199,6 @@ export const Context = {
174
199
  if (message.hilo !== undefined) {
175
200
  obj.hilo = HiLo.toJSON(message.hilo);
176
201
  }
177
- if (message.crashDice !== undefined) {
178
- obj.crashDice = CrashDice.toJSON(message.crashDice);
179
- }
180
202
  if (message.multiRoulette !== undefined) {
181
203
  obj.multiRoulette = MultiRoulette.toJSON(message.multiRoulette);
182
204
  }
@@ -186,12 +208,6 @@ export const Context = {
186
208
  if (message.tower !== undefined) {
187
209
  obj.tower = Tower.toJSON(message.tower);
188
210
  }
189
- if (message.plinko !== undefined) {
190
- obj.plinko = Plinko.toJSON(message.plinko);
191
- }
192
- if (message.init !== undefined) {
193
- obj.init = PosthashInit.toJSON(message.init);
194
- }
195
211
  return obj;
196
212
  },
197
213
 
@@ -200,25 +216,26 @@ export const Context = {
200
216
  },
201
217
  fromPartial<I extends Exact<DeepPartial<Context>, I>>(object: I): Context {
202
218
  const message = createBaseContext();
219
+ message.compressedSeed = object.compressedSeed ?? 0;
220
+ message.init = (object.init !== undefined && object.init !== null)
221
+ ? PosthashInit.fromPartial(object.init)
222
+ : undefined;
223
+ message.plinko = (object.plinko !== undefined && object.plinko !== null)
224
+ ? Plinko.fromPartial(object.plinko)
225
+ : undefined;
226
+ message.crashDice = (object.crashDice !== undefined && object.crashDice !== null)
227
+ ? CrashDice.fromPartial(object.crashDice)
228
+ : undefined;
203
229
  message.fairCoinToss = (object.fairCoinToss !== undefined && object.fairCoinToss !== null)
204
230
  ? FairCoinToss.fromPartial(object.fairCoinToss)
205
231
  : undefined;
206
232
  message.crash = (object.crash !== undefined && object.crash !== null) ? Crash.fromPartial(object.crash) : undefined;
207
233
  message.hilo = (object.hilo !== undefined && object.hilo !== null) ? HiLo.fromPartial(object.hilo) : undefined;
208
- message.crashDice = (object.crashDice !== undefined && object.crashDice !== null)
209
- ? CrashDice.fromPartial(object.crashDice)
210
- : undefined;
211
234
  message.multiRoulette = (object.multiRoulette !== undefined && object.multiRoulette !== null)
212
235
  ? MultiRoulette.fromPartial(object.multiRoulette)
213
236
  : undefined;
214
237
  message.mines = (object.mines !== undefined && object.mines !== null) ? Mines.fromPartial(object.mines) : undefined;
215
238
  message.tower = (object.tower !== undefined && object.tower !== null) ? Tower.fromPartial(object.tower) : undefined;
216
- message.plinko = (object.plinko !== undefined && object.plinko !== null)
217
- ? Plinko.fromPartial(object.plinko)
218
- : undefined;
219
- message.init = (object.init !== undefined && object.init !== null)
220
- ? PosthashInit.fromPartial(object.init)
221
- : undefined;
222
239
  return message;
223
240
  },
224
241
  };
@@ -2,46 +2,190 @@
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Amount } from "../amount";
4
4
 
5
- export enum DuelPlinkoRisk {
6
- DUEL_PLINKO_RISK_UNSPECIFIED = 0,
7
- DUEL_PLINKO_RISK_LOW = 1,
8
- DUEL_PLINKO_RISK_MEDIUM = 2,
9
- DUEL_PLINKO_RISK_HIGH = 3,
5
+ export enum PlinkoPayoutTable {
6
+ PLINKO_PAYOUT_TABLE_UNSPECIFIED = 0,
7
+ PLINKO_PAYOUT_TABLE_DUEL_8_LOW = 1,
8
+ PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM = 2,
9
+ PLINKO_PAYOUT_TABLE_DUEL_8_HIGH = 3,
10
+ PLINKO_PAYOUT_TABLE_DUEL_9_LOW = 4,
11
+ PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM = 5,
12
+ PLINKO_PAYOUT_TABLE_DUEL_9_HIGH = 6,
13
+ PLINKO_PAYOUT_TABLE_DUEL_10_LOW = 7,
14
+ PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM = 8,
15
+ PLINKO_PAYOUT_TABLE_DUEL_10_HIGH = 9,
16
+ PLINKO_PAYOUT_TABLE_DUEL_11_LOW = 10,
17
+ PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM = 11,
18
+ PLINKO_PAYOUT_TABLE_DUEL_11_HIGH = 12,
19
+ PLINKO_PAYOUT_TABLE_DUEL_12_LOW = 13,
20
+ PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM = 14,
21
+ PLINKO_PAYOUT_TABLE_DUEL_12_HIGH = 15,
22
+ PLINKO_PAYOUT_TABLE_DUEL_13_LOW = 16,
23
+ PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM = 17,
24
+ PLINKO_PAYOUT_TABLE_DUEL_13_HIGH = 18,
25
+ PLINKO_PAYOUT_TABLE_DUEL_14_LOW = 19,
26
+ PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM = 20,
27
+ PLINKO_PAYOUT_TABLE_DUEL_14_HIGH = 21,
28
+ PLINKO_PAYOUT_TABLE_DUEL_15_LOW = 22,
29
+ PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM = 23,
30
+ PLINKO_PAYOUT_TABLE_DUEL_15_HIGH = 24,
31
+ PLINKO_PAYOUT_TABLE_DUEL_16_LOW = 25,
32
+ PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM = 26,
33
+ PLINKO_PAYOUT_TABLE_DUEL_16_HIGH = 27,
10
34
  UNRECOGNIZED = -1,
11
35
  }
12
36
 
13
- export function duelPlinkoRiskFromJSON(object: any): DuelPlinkoRisk {
37
+ export function plinkoPayoutTableFromJSON(object: any): PlinkoPayoutTable {
14
38
  switch (object) {
15
39
  case 0:
16
- case "DUEL_PLINKO_RISK_UNSPECIFIED":
17
- return DuelPlinkoRisk.DUEL_PLINKO_RISK_UNSPECIFIED;
40
+ case "PLINKO_PAYOUT_TABLE_UNSPECIFIED":
41
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_UNSPECIFIED;
18
42
  case 1:
19
- case "DUEL_PLINKO_RISK_LOW":
20
- return DuelPlinkoRisk.DUEL_PLINKO_RISK_LOW;
43
+ case "PLINKO_PAYOUT_TABLE_DUEL_8_LOW":
44
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_LOW;
21
45
  case 2:
22
- case "DUEL_PLINKO_RISK_MEDIUM":
23
- return DuelPlinkoRisk.DUEL_PLINKO_RISK_MEDIUM;
46
+ case "PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM":
47
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM;
24
48
  case 3:
25
- case "DUEL_PLINKO_RISK_HIGH":
26
- return DuelPlinkoRisk.DUEL_PLINKO_RISK_HIGH;
49
+ case "PLINKO_PAYOUT_TABLE_DUEL_8_HIGH":
50
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_HIGH;
51
+ case 4:
52
+ case "PLINKO_PAYOUT_TABLE_DUEL_9_LOW":
53
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_LOW;
54
+ case 5:
55
+ case "PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM":
56
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM;
57
+ case 6:
58
+ case "PLINKO_PAYOUT_TABLE_DUEL_9_HIGH":
59
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_HIGH;
60
+ case 7:
61
+ case "PLINKO_PAYOUT_TABLE_DUEL_10_LOW":
62
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_LOW;
63
+ case 8:
64
+ case "PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM":
65
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM;
66
+ case 9:
67
+ case "PLINKO_PAYOUT_TABLE_DUEL_10_HIGH":
68
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_HIGH;
69
+ case 10:
70
+ case "PLINKO_PAYOUT_TABLE_DUEL_11_LOW":
71
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_LOW;
72
+ case 11:
73
+ case "PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM":
74
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM;
75
+ case 12:
76
+ case "PLINKO_PAYOUT_TABLE_DUEL_11_HIGH":
77
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_HIGH;
78
+ case 13:
79
+ case "PLINKO_PAYOUT_TABLE_DUEL_12_LOW":
80
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_LOW;
81
+ case 14:
82
+ case "PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM":
83
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM;
84
+ case 15:
85
+ case "PLINKO_PAYOUT_TABLE_DUEL_12_HIGH":
86
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_HIGH;
87
+ case 16:
88
+ case "PLINKO_PAYOUT_TABLE_DUEL_13_LOW":
89
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_LOW;
90
+ case 17:
91
+ case "PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM":
92
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM;
93
+ case 18:
94
+ case "PLINKO_PAYOUT_TABLE_DUEL_13_HIGH":
95
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_HIGH;
96
+ case 19:
97
+ case "PLINKO_PAYOUT_TABLE_DUEL_14_LOW":
98
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_LOW;
99
+ case 20:
100
+ case "PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM":
101
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM;
102
+ case 21:
103
+ case "PLINKO_PAYOUT_TABLE_DUEL_14_HIGH":
104
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_HIGH;
105
+ case 22:
106
+ case "PLINKO_PAYOUT_TABLE_DUEL_15_LOW":
107
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_LOW;
108
+ case 23:
109
+ case "PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM":
110
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM;
111
+ case 24:
112
+ case "PLINKO_PAYOUT_TABLE_DUEL_15_HIGH":
113
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_HIGH;
114
+ case 25:
115
+ case "PLINKO_PAYOUT_TABLE_DUEL_16_LOW":
116
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_LOW;
117
+ case 26:
118
+ case "PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM":
119
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM;
120
+ case 27:
121
+ case "PLINKO_PAYOUT_TABLE_DUEL_16_HIGH":
122
+ return PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_HIGH;
27
123
  case -1:
28
124
  case "UNRECOGNIZED":
29
125
  default:
30
- return DuelPlinkoRisk.UNRECOGNIZED;
126
+ return PlinkoPayoutTable.UNRECOGNIZED;
31
127
  }
32
128
  }
33
129
 
34
- export function duelPlinkoRiskToJSON(object: DuelPlinkoRisk): string {
130
+ export function plinkoPayoutTableToJSON(object: PlinkoPayoutTable): string {
35
131
  switch (object) {
36
- case DuelPlinkoRisk.DUEL_PLINKO_RISK_UNSPECIFIED:
37
- return "DUEL_PLINKO_RISK_UNSPECIFIED";
38
- case DuelPlinkoRisk.DUEL_PLINKO_RISK_LOW:
39
- return "DUEL_PLINKO_RISK_LOW";
40
- case DuelPlinkoRisk.DUEL_PLINKO_RISK_MEDIUM:
41
- return "DUEL_PLINKO_RISK_MEDIUM";
42
- case DuelPlinkoRisk.DUEL_PLINKO_RISK_HIGH:
43
- return "DUEL_PLINKO_RISK_HIGH";
44
- case DuelPlinkoRisk.UNRECOGNIZED:
132
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_UNSPECIFIED:
133
+ return "PLINKO_PAYOUT_TABLE_UNSPECIFIED";
134
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_LOW:
135
+ return "PLINKO_PAYOUT_TABLE_DUEL_8_LOW";
136
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM:
137
+ return "PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM";
138
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_HIGH:
139
+ return "PLINKO_PAYOUT_TABLE_DUEL_8_HIGH";
140
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_LOW:
141
+ return "PLINKO_PAYOUT_TABLE_DUEL_9_LOW";
142
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM:
143
+ return "PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM";
144
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_HIGH:
145
+ return "PLINKO_PAYOUT_TABLE_DUEL_9_HIGH";
146
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_LOW:
147
+ return "PLINKO_PAYOUT_TABLE_DUEL_10_LOW";
148
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM:
149
+ return "PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM";
150
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_HIGH:
151
+ return "PLINKO_PAYOUT_TABLE_DUEL_10_HIGH";
152
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_LOW:
153
+ return "PLINKO_PAYOUT_TABLE_DUEL_11_LOW";
154
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM:
155
+ return "PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM";
156
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_HIGH:
157
+ return "PLINKO_PAYOUT_TABLE_DUEL_11_HIGH";
158
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_LOW:
159
+ return "PLINKO_PAYOUT_TABLE_DUEL_12_LOW";
160
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM:
161
+ return "PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM";
162
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_HIGH:
163
+ return "PLINKO_PAYOUT_TABLE_DUEL_12_HIGH";
164
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_LOW:
165
+ return "PLINKO_PAYOUT_TABLE_DUEL_13_LOW";
166
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM:
167
+ return "PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM";
168
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_HIGH:
169
+ return "PLINKO_PAYOUT_TABLE_DUEL_13_HIGH";
170
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_LOW:
171
+ return "PLINKO_PAYOUT_TABLE_DUEL_14_LOW";
172
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM:
173
+ return "PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM";
174
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_HIGH:
175
+ return "PLINKO_PAYOUT_TABLE_DUEL_14_HIGH";
176
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_LOW:
177
+ return "PLINKO_PAYOUT_TABLE_DUEL_15_LOW";
178
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM:
179
+ return "PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM";
180
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_HIGH:
181
+ return "PLINKO_PAYOUT_TABLE_DUEL_15_HIGH";
182
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_LOW:
183
+ return "PLINKO_PAYOUT_TABLE_DUEL_16_LOW";
184
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM:
185
+ return "PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM";
186
+ case PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_HIGH:
187
+ return "PLINKO_PAYOUT_TABLE_DUEL_16_HIGH";
188
+ case PlinkoPayoutTable.UNRECOGNIZED:
45
189
  default:
46
190
  return "UNRECOGNIZED";
47
191
  }
@@ -54,12 +198,7 @@ export interface Plinko {
54
198
 
55
199
  export interface PlinkoPayouts {
56
200
  custom?: CustomPlinkoPayouts | undefined;
57
- duel?: DuelPlinkoPayouts | undefined;
58
- }
59
-
60
- export interface DuelPlinkoPayouts {
61
- rows: number;
62
- risk: DuelPlinkoRisk;
201
+ table?: PlinkoPayoutTable | undefined;
63
202
  }
64
203
 
65
204
  export interface CustomPlinkoPayouts {
@@ -145,7 +284,7 @@ export const Plinko = {
145
284
  };
146
285
 
147
286
  function createBasePlinkoPayouts(): PlinkoPayouts {
148
- return { custom: undefined, duel: undefined };
287
+ return { custom: undefined, table: undefined };
149
288
  }
150
289
 
151
290
  export const PlinkoPayouts = {
@@ -153,8 +292,8 @@ export const PlinkoPayouts = {
153
292
  if (message.custom !== undefined) {
154
293
  CustomPlinkoPayouts.encode(message.custom, writer.uint32(10).fork()).ldelim();
155
294
  }
156
- if (message.duel !== undefined) {
157
- DuelPlinkoPayouts.encode(message.duel, writer.uint32(18).fork()).ldelim();
295
+ if (message.table !== undefined) {
296
+ writer.uint32(16).int32(message.table);
158
297
  }
159
298
  return writer;
160
299
  },
@@ -174,11 +313,11 @@ export const PlinkoPayouts = {
174
313
  message.custom = CustomPlinkoPayouts.decode(reader, reader.uint32());
175
314
  continue;
176
315
  case 2:
177
- if (tag !== 18) {
316
+ if (tag !== 16) {
178
317
  break;
179
318
  }
180
319
 
181
- message.duel = DuelPlinkoPayouts.decode(reader, reader.uint32());
320
+ message.table = reader.int32() as any;
182
321
  continue;
183
322
  }
184
323
  if ((tag & 7) === 4 || tag === 0) {
@@ -192,7 +331,7 @@ export const PlinkoPayouts = {
192
331
  fromJSON(object: any): PlinkoPayouts {
193
332
  return {
194
333
  custom: isSet(object.custom) ? CustomPlinkoPayouts.fromJSON(object.custom) : undefined,
195
- duel: isSet(object.duel) ? DuelPlinkoPayouts.fromJSON(object.duel) : undefined,
334
+ table: isSet(object.table) ? plinkoPayoutTableFromJSON(object.table) : undefined,
196
335
  };
197
336
  },
198
337
 
@@ -201,8 +340,8 @@ export const PlinkoPayouts = {
201
340
  if (message.custom !== undefined) {
202
341
  obj.custom = CustomPlinkoPayouts.toJSON(message.custom);
203
342
  }
204
- if (message.duel !== undefined) {
205
- obj.duel = DuelPlinkoPayouts.toJSON(message.duel);
343
+ if (message.table !== undefined) {
344
+ obj.table = plinkoPayoutTableToJSON(message.table);
206
345
  }
207
346
  return obj;
208
347
  },
@@ -215,83 +354,7 @@ export const PlinkoPayouts = {
215
354
  message.custom = (object.custom !== undefined && object.custom !== null)
216
355
  ? CustomPlinkoPayouts.fromPartial(object.custom)
217
356
  : undefined;
218
- message.duel = (object.duel !== undefined && object.duel !== null)
219
- ? DuelPlinkoPayouts.fromPartial(object.duel)
220
- : undefined;
221
- return message;
222
- },
223
- };
224
-
225
- function createBaseDuelPlinkoPayouts(): DuelPlinkoPayouts {
226
- return { rows: 0, risk: 0 };
227
- }
228
-
229
- export const DuelPlinkoPayouts = {
230
- encode(message: DuelPlinkoPayouts, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
231
- if (message.rows !== 0) {
232
- writer.uint32(8).uint32(message.rows);
233
- }
234
- if (message.risk !== 0) {
235
- writer.uint32(16).int32(message.risk);
236
- }
237
- return writer;
238
- },
239
-
240
- decode(input: _m0.Reader | Uint8Array, length?: number): DuelPlinkoPayouts {
241
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
242
- let end = length === undefined ? reader.len : reader.pos + length;
243
- const message = createBaseDuelPlinkoPayouts();
244
- while (reader.pos < end) {
245
- const tag = reader.uint32();
246
- switch (tag >>> 3) {
247
- case 1:
248
- if (tag !== 8) {
249
- break;
250
- }
251
-
252
- message.rows = reader.uint32();
253
- continue;
254
- case 2:
255
- if (tag !== 16) {
256
- break;
257
- }
258
-
259
- message.risk = reader.int32() as any;
260
- continue;
261
- }
262
- if ((tag & 7) === 4 || tag === 0) {
263
- break;
264
- }
265
- reader.skipType(tag & 7);
266
- }
267
- return message;
268
- },
269
-
270
- fromJSON(object: any): DuelPlinkoPayouts {
271
- return {
272
- rows: isSet(object.rows) ? globalThis.Number(object.rows) : 0,
273
- risk: isSet(object.risk) ? duelPlinkoRiskFromJSON(object.risk) : 0,
274
- };
275
- },
276
-
277
- toJSON(message: DuelPlinkoPayouts): unknown {
278
- const obj: any = {};
279
- if (message.rows !== 0) {
280
- obj.rows = Math.round(message.rows);
281
- }
282
- if (message.risk !== 0) {
283
- obj.risk = duelPlinkoRiskToJSON(message.risk);
284
- }
285
- return obj;
286
- },
287
-
288
- create<I extends Exact<DeepPartial<DuelPlinkoPayouts>, I>>(base?: I): DuelPlinkoPayouts {
289
- return DuelPlinkoPayouts.fromPartial(base ?? ({} as any));
290
- },
291
- fromPartial<I extends Exact<DeepPartial<DuelPlinkoPayouts>, I>>(object: I): DuelPlinkoPayouts {
292
- const message = createBaseDuelPlinkoPayouts();
293
- message.rows = object.rows ?? 0;
294
- message.risk = object.risk ?? 0;
357
+ message.table = object.table ?? undefined;
295
358
  return message;
296
359
  },
297
360
  };