-
Notifications
You must be signed in to change notification settings - Fork 0
/
directplay.html
611 lines (487 loc) · 16.4 KB
/
directplay.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Multiprizer Docs</title>
<link rel="stylesheet" href="https://docs.multiprizer.io/assets/css/just-the-docs.css">
<link rel="shortcut icon" href="/favicons/favicon.ico" />
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#d5cb5b">
<meta name="msapplication-TileColor" content="#ffdb0d">
<meta name="msapplication-config" content="/favicons/browserconfig.xml" />
<script type="text/javascript" src="https://docs.multiprizer.io/assets/js/vendor/lunr.min.js"></script>
<script type="text/javascript" src="https://docs.multiprizer.io/assets/js/just-the-docs.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="page-wrap">
<div class="side-bar">
<a href="https://docs.multiprizer.io" class="site-title fs-6 lh-tight">Multiprizer Docs</a>
<span class="fs-3"><button class="js-main-nav-trigger navigation-list-toggle btn btn-outline" type="button" data-text-toggle="Hide">Menu</button></span>
<div class="navigation main-nav js-main-nav">
<nav role="navigation" aria-label="Main navigation">
<ul class="navigation-list">
<li class="navigation-list-item active">
<a href="https://docs.multiprizer.io/404/" class="navigation-list-link"></a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/" class="navigation-list-link">Introduction</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/quick-start" class="navigation-list-link">Quick Start</a>
</li>
<li class="navigation-list-item active">
<a href="https://docs.multiprizer.io/directplay" class="navigation-list-link active">DirectPlay</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/features" class="navigation-list-link">Features</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/how-to-play" class="navigation-list-link">How to Play (Detailed)</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/megaprize" class="navigation-list-link">MegaPrize</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/security" class="navigation-list-link">Security</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/decentralization" class="navigation-list-link">Decentralization</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/strategy-over-luck" class="navigation-list-link">Strategy Over Luck</a>
</li>
<li class="navigation-list-item">
<a href="https://docs.multiprizer.io/whitepaper" class="navigation-list-link">Whitepaper</a>
</li>
</ul>
</nav>
</div>
<footer role="contentinfo" class="site-footer">
<p class="text-small text-grey-dk-000 mb-0">Multiprizer Copyright (2019)</p>
</footer>
</div>
<div class="main-content-wrap js-main-content" tabindex="0">
<div class="page-header">
<div class="main-content">
<div class="search js-search">
<div class="search-input-wrap">
<input type="text" class="js-search-input search-input" tabindex="0" placeholder="Search Multiprizer Docs" aria-label="Search Multiprizer Docs" autocomplete="off">
<svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
</div>
<div class="js-search-results search-results-wrap"></div>
</div>
<ul class="list-style-none text-small mt-md-1 mb-md-1 pb-4 pb-md-0 js-aux-nav aux-nav">
<li class="d-inline-block my-0"><a href="https://multiprizer.io">Multiprizer HomeSite</a></li>
</ul>
</div>
</div>
<div class="main-content">
<div id="main-content" class="page-content" role="main">
<h1 id="directplay">DirectPlay</h1>
<p><em><strong>Note:</strong> The below examples are illustrated for Ethereum Blockchain. The same equivalent mechanism can be used for other blockchains also. Also, DirectPlay is an option that is enabled by the admin, hence if DirectPlay transactions are reverting, that would be because it has been disabled by admin.</em></p>
<p>As part of the decentralized nature of this App, this game can be played without even visiting the website/ DApp site. One can directly send a certain amount of crypto directly from one’s Ethereum wallet (eg. MyEtherWallet, MyCrypto, Blockchain.info wallet etc.) to the contract address, with gas limit set as <strong>234567</strong>, and Gas Price between <strong>3Gwei to 20GWei</strong>, and the smart contract will automatically purchase tokens for the player and auto-confirm his/her participation. The <strong>Multiprizer</strong> Contracts are deployed in the following addresses:</p>
<p><code class="highlighter-rouge">Ethereum Mainnet: 0x4E0C7a80dBf4aCdD6F020c3dD796Ef5b97D26Ed0</code></p>
<p><code class="highlighter-rouge">Ethereum Ropsten (testnet): 0x44cd9Cf21c589ac9D92a18782771485aF02250F9</code></p>
<p>The amount of ethers to send as total token value has to be exactly the total value of token(s) to purchase. The token value chart for three default gameBoards is shown in the table below.</p>
<table>
<thead>
<tr>
<th>Tokens to Buy</th>
<th>Total Value in Ethers for BountyBox (GameID: 102)</th>
<th>Tokens to Buy</th>
<th>Total Value in Ethers for TokenArmy (GameID: 103)</th>
<th>Tokens to Buy</th>
<th>Total Value in Ethers for WhaleTank (GameID: 105)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>0.01</td>
<td>1</td>
<td>0.055</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>0.02</td>
<td>2</td>
<td>0.11</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>3</td>
<td>0.03</td>
<td>3</td>
<td>0.165</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>4</td>
<td>0.04</td>
<td>4</td>
<td>0.22</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>5</td>
<td>0.05</td>
<td>5</td>
<td>0.275</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>6</td>
<td>0.06</td>
<td>6</td>
<td>0.33</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>7</td>
<td>0.07</td>
<td>7</td>
<td>0.385</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>8</td>
<td>0.08</td>
<td>8</td>
<td>0.44</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>9</td>
<td>0.09</td>
<td>9</td>
<td>0.495</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>10</td>
<td>0.1</td>
<td>10</td>
<td>0.55</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>11</td>
<td>0.605</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>12</td>
<td>0.66</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>13</td>
<td>0.715</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>14</td>
<td>0.77</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>15</td>
<td>0.825</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>16</td>
<td>0.88</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>17</td>
<td>0.935</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>18</td>
<td>0.99</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>19</td>
<td>1.045</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>20</td>
<td>1.1</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>21</td>
<td>1.155</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>22</td>
<td>1.21</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>23</td>
<td>1.265</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>24</td>
<td>1.32</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>25</td>
<td>1.375</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>26</td>
<td>1.43</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>27</td>
<td>1.485</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>28</td>
<td>1.54</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>29</td>
<td>1.595</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>30</td>
<td>1.65</td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="examples-of-directplay-purchases-ethereum-mainnet">Examples of DirectPlay Purchases (Ethereum Mainnet)</h2>
<ul>
<li>If you want to purchase 2 tokens of Game Board called Bounty Box whose game ID is 102, the token value is 0.01 ether per token, and the total amount to send will be 0.02 ethers (0.01 * 2). Then you set the following parameters in your Ethereum wallet and send the ether amount:</li>
</ul>
<table>
<thead>
<tr>
<th>Transaction Parameter</th>
<th>Parameter Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>From:</td>
<td>< Your Wallet Address ></td>
</tr>
<tr>
<td>To:</td>
<td>0x4E0C7a80dBf4aCdD6F020c3dD796Ef5b97D26Ed0</td>
</tr>
<tr>
<td>Exact amount to send:</td>
<td>0.02 ethers</td>
</tr>
<tr>
<td>Gas Limit:</td>
<td>234567</td>
</tr>
<tr>
<td>Gas Price:</td>
<td>3Gwei to 20GWei (depending on your priority)</td>
</tr>
</tbody>
</table>
<ul>
<li>If you want to purchase 27 tokens of Game Board called Token Army whose game ID is 103, the token value is 0.055 ether per token, and the total amount to send will be 1.485 ethers (0.055 * 27). Then you set the following parameters in your Ethereum wallet and send the ether amount:</li>
</ul>
<table>
<thead>
<tr>
<th>Transaction Parameter</th>
<th>Parameter Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>From:</td>
<td>< Your Wallet Address ></td>
</tr>
<tr>
<td>To:</td>
<td>0x4E0C7a80dBf4aCdD6F020c3dD796Ef5b97D26Ed0</td>
</tr>
<tr>
<td>Exact amount to send:</td>
<td>1.486 ethers</td>
</tr>
<tr>
<td>Gas Limit:</td>
<td>234567</td>
</tr>
<tr>
<td>Gas Price:</td>
<td>3Gwei to 20GWei (depending on your priority)</td>
</tr>
</tbody>
</table>
<ul>
<li>If you want to purchase 1 token of Game Board called Whale Tank whose game ID is 105, the token value is 1.0 ether per token, and the total amount to send will be 1 ether (1.0 * 1). Then you set the following parameters in your Ethereum wallet and send the ether amount:</li>
</ul>
<table>
<thead>
<tr>
<th>Transaction Parameter</th>
<th>Parameter Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>From:</td>
<td>< Your Wallet Address ></td>
</tr>
<tr>
<td>To:</td>
<td>0x4E0C7a80dBf4aCdD6F020c3dD796Ef5b97D26Ed0</td>
</tr>
<tr>
<td>Exact amount to send:</td>
<td>1 ether</td>
</tr>
<tr>
<td>Gas Limit:</td>
<td>234567</td>
</tr>
<tr>
<td>Gas Price:</td>
<td>3Gwei to 20GWei (depending on your priority)</td>
</tr>
</tbody>
</table>
<p>Please note that Gas Limit mentioned (234567) may not be fully consumed and hence, the remaining gas will be automatically refunded to players. Also, any invalid ether value sent is refunded back to the player automatically, along with remaining gas.</p>
<h2 id="withdraw-winnings-using-directplay">Withdraw Winnings using DirectPlay</h2>
<p>You can even withdraw your winnings using DirectPlay. This, firstly, requires a scenario where your winnings have not been automatically transferred to your Ethereum address due to some hypothetical and improbable circumstance. Hence, in case your winning amount (if any) is pending in the withdraw records of the contract, this can be withdrawn by sending a small token value <strong>(0.00023456 eth OR 234560000000000 wei)</strong> to the Multiprizer Contract Address. The Gas Limit has to be set as <strong>65432</strong>, or an amount greater than that. The Gas Price can be any value <strong>between 3Gwei and 20GWei</strong>, as per your priority of transaction. Thus, you set the following parameters in your Ethereum wallet and send the ether amount:</p>
<table>
<thead>
<tr>
<th>Transaction Parameter</th>
<th>Parameter Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>From:</td>
<td>< Your Wallet Address ></td>
</tr>
<tr>
<td>To:</td>
<td>0x4E0C7a80dBf4aCdD6F020c3dD796Ef5b97D26Ed0</td>
</tr>
<tr>
<td>Exact amount to send:</td>
<td>0.00023456 ether</td>
</tr>
<tr>
<td>Gas Limit:</td>
<td>65432</td>
</tr>
<tr>
<td>Gas Price:</td>
<td>3Gwei to 20GWei (depending on your priority)</td>
</tr>
</tbody>
</table>
<p>Please note that DirectPlay is not applicable for reverting tokens and hence for that, you will have to visit the game site. Also, if you don’t have any pending amounts in the withdraw record, the transaction will be reverted and the remaining gas refunded after consuming certain gas to check the records. Hence only use the DirectPlay Withdraw feature if you are sure there is pending winning amount that you need to claim. In case there is pending winning amount to withdraw, sending this transaction will automatically initiate transfer of amount (pending withdraw amount plus the amount you sent in the DirectPlay transfer, i.e 0.00023456) from the Multiprizer Contract to your account. Also, the transaction may take less than 65432 gas, in which case, the remaining gas will be refunded back to you.</p>
<hr />
<p>Next:
<a href="/features">Features</a></p>
</div>
</div>
</div>
</div>
</body>
</html>