tx · HsDAiJgPL58yzCoiDFqjH4Hn2MYZVXkAb1E3azxakVnL 3MpJUfdgwaKfTjJgpGrhDVZJ9KBhaqruj3J: -0.01400000 Waves 2019.08.28 11:27 [650810] smart account 3MpJUfdgwaKfTjJgpGrhDVZJ9KBhaqruj3J > SELF 0.00000000 Waves
{ "type": 13, "id": "HsDAiJgPL58yzCoiDFqjH4Hn2MYZVXkAb1E3azxakVnL", "fee": 1400000, "feeAssetId": null, "timestamp": 1566980887535, "version": 1, "sender": "3MpJUfdgwaKfTjJgpGrhDVZJ9KBhaqruj3J", "senderPublicKey": "EfGZvomWbCwnR6YbgmBF2rduFkMwzVuox5bvYVdaSeFX", "proofs": [ "4mqSEwzZQA22p8wvKVNWVvfv5cRV6A1mdr2oZpYJ4NGBzaYU2a2uRw2kKFaUhqLDBmtesNRcr5nCmAw1dKzpy3zA" ], "script": "base64:AAIDAAAAAAAAAAAAAAAYAAAAAAlzbG90Q291bnQAAAAAAAAAAGQAAAAABnNsb3RzMQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEw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AAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABXNsb3QxAgAAAAFfBQAAAAVzbG90MgIAAAABXwUAAAAFc2xvdDMJAQAAAAxnZXRWYXJpYXRpb24AAAABBQAAAANpbnYFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAPQ39zw=", "chainId": 84, "height": 650810, "spentComplexity": 0 } View: original | compacted Prev: Dq69WH31LienpYNvHYCTB8WKhkPKRXFiXbAKkd1Cj3hZ Next: CxSaLxaKvxgna1PzLRtFD9Mb2ANpfPSdCAtqj1r3s5GZ Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let slots2 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5] | |
9 | 9 | ||
10 | 10 | let slots3 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5] | |
11 | - | ||
12 | - | func randomizer (inv) = { | |
13 | - | let rand = ((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
14 | - | sha256(rand) | |
15 | - | } | |
16 | - | ||
17 | 11 | ||
18 | 12 | func getSlot1 (inv) = { | |
19 | 13 | let hash = sha256(((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))) | |
36 | 30 | } | |
37 | 31 | ||
38 | 32 | ||
33 | + | let numbersCount = 37 | |
34 | + | ||
35 | + | let NUMBERS = [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, 0] | |
36 | + | ||
37 | + | let ODD = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35] | |
38 | + | ||
39 | + | let EVEN = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36] | |
40 | + | ||
41 | + | let RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36] | |
42 | + | ||
43 | + | let BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] | |
44 | + | ||
45 | + | let TWOTOR = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36] | |
46 | + | ||
47 | + | let TWOTOM = [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35] | |
48 | + | ||
49 | + | let TWOTOL = [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34] | |
50 | + | ||
51 | + | let ZERO = [0] | |
52 | + | ||
53 | + | let ONETOEIGHTEEN = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] | |
54 | + | ||
55 | + | let ONETOTWELVE = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
56 | + | ||
57 | + | let nineteenthirtysix = [19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36] | |
58 | + | ||
59 | + | let thirteentwentyfour = [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24] | |
60 | + | ||
61 | + | let twentyfivethirtysix = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36] | |
62 | + | ||
63 | + | func getNumber (inv) = { | |
64 | + | let hash = sha256(((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))) | |
65 | + | let index = toInt(hash) | |
66 | + | NUMBERS[(index % numbersCount)] | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func getVariation (inv) = { | |
71 | + | let index = 0 | |
72 | + | ODD[(index % numbersCount)] | |
73 | + | } | |
74 | + | ||
75 | + | ||
39 | 76 | @Callable(inv) | |
40 | 77 | func spin (obb,ddd,zzz) = { | |
41 | 78 | let MaxBet = (wavesBalance(this) / 35) | |
54 | 91 | then throw(("Payment should be less than " + toString(MaxBet))) | |
55 | 92 | else { | |
56 | 93 | let player = toBase58String(inv.caller.bytes) | |
57 | - | let randhash = randomizer(inv) | |
58 | 94 | let timestamp = toString(lastBlock.timestamp) | |
59 | 95 | if (if (if ((smt1 == 1)) | |
60 | 96 | then (smt2 == 1) | |
86 | 122 | then (smt3 == 5) | |
87 | 123 | else false) | |
88 | 124 | then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil)) | |
89 | - | else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ( | |
125 | + | else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), getVariation(inv))]), TransferSet(nil)) | |
90 | 126 | } | |
91 | 127 | } | |
92 | 128 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let slotCount = 100 | |
5 | 5 | ||
6 | 6 | let slots1 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5] | |
7 | 7 | ||
8 | 8 | let slots2 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5] | |
9 | 9 | ||
10 | 10 | let slots3 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5] | |
11 | - | ||
12 | - | func randomizer (inv) = { | |
13 | - | let rand = ((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
14 | - | sha256(rand) | |
15 | - | } | |
16 | - | ||
17 | 11 | ||
18 | 12 | func getSlot1 (inv) = { | |
19 | 13 | let hash = sha256(((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))) | |
20 | 14 | let index = toInt(hash) | |
21 | 15 | slots1[(index % slotCount)] | |
22 | 16 | } | |
23 | 17 | ||
24 | 18 | ||
25 | 19 | func getSlot2 (inv) = { | |
26 | 20 | let hash = sha256(((((inv.transactionId + lastBlock.generationSignature) + inv.callerPublicKey) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))) | |
27 | 21 | let index = toInt(hash) | |
28 | 22 | slots2[(index % slotCount)] | |
29 | 23 | } | |
30 | 24 | ||
31 | 25 | ||
32 | 26 | func getSlot3 (inv) = { | |
33 | 27 | let hash = sha256(((((inv.callerPublicKey + inv.transactionId) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))) | |
34 | 28 | let index = toInt(hash) | |
35 | 29 | slots3[(index % slotCount)] | |
36 | 30 | } | |
37 | 31 | ||
38 | 32 | ||
33 | + | let numbersCount = 37 | |
34 | + | ||
35 | + | let NUMBERS = [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, 0] | |
36 | + | ||
37 | + | let ODD = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35] | |
38 | + | ||
39 | + | let EVEN = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36] | |
40 | + | ||
41 | + | let RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36] | |
42 | + | ||
43 | + | let BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] | |
44 | + | ||
45 | + | let TWOTOR = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36] | |
46 | + | ||
47 | + | let TWOTOM = [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35] | |
48 | + | ||
49 | + | let TWOTOL = [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34] | |
50 | + | ||
51 | + | let ZERO = [0] | |
52 | + | ||
53 | + | let ONETOEIGHTEEN = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] | |
54 | + | ||
55 | + | let ONETOTWELVE = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
56 | + | ||
57 | + | let nineteenthirtysix = [19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36] | |
58 | + | ||
59 | + | let thirteentwentyfour = [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24] | |
60 | + | ||
61 | + | let twentyfivethirtysix = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36] | |
62 | + | ||
63 | + | func getNumber (inv) = { | |
64 | + | let hash = sha256(((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))) | |
65 | + | let index = toInt(hash) | |
66 | + | NUMBERS[(index % numbersCount)] | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func getVariation (inv) = { | |
71 | + | let index = 0 | |
72 | + | ODD[(index % numbersCount)] | |
73 | + | } | |
74 | + | ||
75 | + | ||
39 | 76 | @Callable(inv) | |
40 | 77 | func spin (obb,ddd,zzz) = { | |
41 | 78 | let MaxBet = (wavesBalance(this) / 35) | |
42 | 79 | let payment = extract(inv.payment) | |
43 | 80 | let slot1 = toString(getSlot1(inv)) | |
44 | 81 | let slot2 = toString(getSlot2(inv)) | |
45 | 82 | let slot3 = toString(getSlot3(inv)) | |
46 | 83 | let smt1 = getSlot1(inv) | |
47 | 84 | let smt2 = getSlot2(inv) | |
48 | 85 | let smt3 = getSlot3(inv) | |
49 | 86 | if (!(isDefined(inv.payment))) | |
50 | 87 | then throw("Should be with Payment in Waves") | |
51 | 88 | else if (isDefined(payment.assetId)) | |
52 | 89 | then throw("Payment should be in Waves") | |
53 | 90 | else if ((payment.amount > MaxBet)) | |
54 | 91 | then throw(("Payment should be less than " + toString(MaxBet))) | |
55 | 92 | else { | |
56 | 93 | let player = toBase58String(inv.caller.bytes) | |
57 | - | let randhash = randomizer(inv) | |
58 | 94 | let timestamp = toString(lastBlock.timestamp) | |
59 | 95 | if (if (if ((smt1 == 1)) | |
60 | 96 | then (smt2 == 1) | |
61 | 97 | else false) | |
62 | 98 | then (smt3 == 1) | |
63 | 99 | else false) | |
64 | 100 | then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil)) | |
65 | 101 | else if (if (if ((smt1 == 2)) | |
66 | 102 | then (smt2 == 2) | |
67 | 103 | else false) | |
68 | 104 | then (smt3 == 2) | |
69 | 105 | else false) | |
70 | 106 | then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil)) | |
71 | 107 | else if (if (if ((smt1 == 3)) | |
72 | 108 | then (smt2 == 3) | |
73 | 109 | else false) | |
74 | 110 | then (smt3 == 3) | |
75 | 111 | else false) | |
76 | 112 | then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil)) | |
77 | 113 | else if (if (if ((smt1 == 4)) | |
78 | 114 | then (smt2 == 4) | |
79 | 115 | else false) | |
80 | 116 | then (smt3 == 4) | |
81 | 117 | else false) | |
82 | 118 | then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil)) | |
83 | 119 | else if (if (if ((smt1 == 5)) | |
84 | 120 | then (smt2 == 5) | |
85 | 121 | else false) | |
86 | 122 | then (smt3 == 5) | |
87 | 123 | else false) | |
88 | 124 | then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil)) | |
89 | - | else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ( | |
125 | + | else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), getVariation(inv))]), TransferSet(nil)) | |
90 | 126 | } | |
91 | 127 | } | |
92 | 128 | ||
93 | 129 |
github/deemru/w8io/169f3d6 50.90 ms ◑