tx · 2AtJxpGxUtSj6v3LZU3kHBP2qkom49fEjMR6pWVRFPVX 3MyGZ3AEvGe5JQ7atcGLL2J5NTnUkwZjNtz: -0.05000000 Waves 2023.05.07 07:31 [2566952] smart account 3MyGZ3AEvGe5JQ7atcGLL2J5NTnUkwZjNtz > SELF 0.00000000 Waves
{ "type": 13, "id": "2AtJxpGxUtSj6v3LZU3kHBP2qkom49fEjMR6pWVRFPVX", "fee": 5000000, "feeAssetId": null, "timestamp": 1683433941447, "version": 2, "chainId": 84, "sender": "3MyGZ3AEvGe5JQ7atcGLL2J5NTnUkwZjNtz", "senderPublicKey": "DhZAjzJ6qSviDheXhhVx4Php3axrp53pA1T7cHk9TLLh", "proofs": [ "AmkPThbjx1D8ZyvQcjjXWmEDKmQpDy7BssrKWZkx3Bj2HAfjHiE2gQPE2dxawDptAUf3zqotV9j9kCesRntsZsR" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgQKAggEEgQKAgEIEgQKAgQIAAAAAwAAAAAZYmlnSW50SGFzaERpdmlzb3JDb2luRkxpcAkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAABQAAAAZIQUxGVVAAAAAAGGJpZ0ludEhhc2hEaXZpc29yQ29pbkJldAkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAABQAAAAZIQUxGVVABAAAACmlzTmVnYXRpdmUAAAABAAAAAW4DCQAAZgAAAAIAAAAAAAAAAAAFAAAAAW4JAABoAAAAAgUAAAABbgD//////////wUAAAABbgAAAAQAAAABaQEAAAAIYWRkQWRtaW4AAAABAAAAB2FkZHJlc3MEAAAAA2FkbQMJAQAAAAlpc0RlZmluZWQAAAABCQAEIgAAAAECAAAABWFkbWluCQACWQAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAECAAAABWFkbWluCAgFAAAAAWkAAAAGY2FsbG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AWYJAARMAAAAAgUAAAAFdHhQYXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56VG26w==", "height": 2566952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2G1XfBNN2NQBbjwTGKffxD7XJCFSXQ3dDHpkTCFj69SR Next: 98deT8MZyMUXyXJ6cFtMbXaYKHTHdQ3oTy9fK345FRbk Diff:
Old | New | Differences | |
---|---|---|---|
153 | 153 | let reftx = if ((ref1 == toBase58String(this.bytes))) | |
154 | 154 | then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef) | |
155 | 155 | else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit) | |
156 | - | [IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), BooleanEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), isHeads), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_heads_or_tails"), result_w), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), txPay] | |
156 | + | [IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), BooleanEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), isHeads), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_heads_or_tails"), result_w), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_f"), f), txPay] | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let bigIntHashDivisorCoinFLip = pow(10, 0, 16, 0, 0, HALFUP) | |
5 | 5 | ||
6 | 6 | let bigIntHashDivisorCoinBet = pow(10, 0, 17, 0, 0, HALFUP) | |
7 | 7 | ||
8 | 8 | func isNegative (n) = if ((0 > n)) | |
9 | 9 | then (n * -1) | |
10 | 10 | else n | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | 14 | func addAdmin (address) = { | |
15 | 15 | let adm = if (isDefined(getString("admin"))) | |
16 | 16 | then fromBase58String(getStringValue("admin")) | |
17 | 17 | else i.caller.bytes | |
18 | 18 | if (if ((i.caller.bytes == adm)) | |
19 | 19 | then true | |
20 | 20 | else (i.caller.bytes == this.bytes)) | |
21 | 21 | then [StringEntry("admin", address)] | |
22 | 22 | else throw("Error: Only administrator can call this function.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | 28 | func blockAddress (address,isBlock) = { | |
29 | 29 | let adm = if (isDefined(getString("admin"))) | |
30 | 30 | then fromBase58String(getStringValue("admin")) | |
31 | 31 | else i.caller.bytes | |
32 | 32 | if (if ((i.caller.bytes == adm)) | |
33 | 33 | then true | |
34 | 34 | else (i.caller.bytes == this.bytes)) | |
35 | 35 | then [BooleanEntry(("address_blocked_" + address), isBlock)] | |
36 | 36 | else throw("Error: Only administrator can call this function.") | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(i) | |
42 | 42 | func betToNumber (number,ref) = if (isDefined(getString(("address_blocked_" + toBase58String(i.caller.bytes))))) | |
43 | 43 | then throw("Error: Your address is on the Waves Play blacklist.") | |
44 | 44 | else if (if ((100000 > i.payments[0].amount)) | |
45 | 45 | then true | |
46 | 46 | else (i.payments[0].amount > 1000000000)) | |
47 | 47 | then throw("Invalid Waves amount. Min value: 0.1 Waves. Max Value: 10 Waves") | |
48 | 48 | else if ((i.payments[0].assetId != unit)) | |
49 | 49 | then throw("Invalid assetId") | |
50 | 50 | else if (if ((0 >= number)) | |
51 | 51 | then true | |
52 | 52 | else (number >= 99)) | |
53 | 53 | then throw("Error: Invalid Number") | |
54 | 54 | else { | |
55 | 55 | let x = if (isDefined(getInteger((toBase58String(i.caller.bytes) + "_bets")))) | |
56 | 56 | then getIntegerValue((toBase58String(i.caller.bytes) + "_bets")) | |
57 | 57 | else 0 | |
58 | 58 | let ref1 = if ((ref == "")) | |
59 | 59 | then toBase58String(this.bytes) | |
60 | 60 | else ref | |
61 | 61 | let toRef = ((i.payments[0].amount * 1) / 100) | |
62 | 62 | let lastTx = if (isDefined(getString("last_tx_bet"))) | |
63 | 63 | then (isNegative(toInt(sha256(fromBase58String(getStringValue("last_tx_bet"))))) / bigIntHashDivisorCoinBet) | |
64 | 64 | else (isNegative(toInt(sha256(sha256(i.transactionId)))) / bigIntHashDivisorCoinBet) | |
65 | 65 | let txxz = (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinBet) | |
66 | 66 | let f = if ((txxz > lastTx)) | |
67 | 67 | then (txxz - lastTx) | |
68 | 68 | else (lastTx - txxz) | |
69 | 69 | let result = if ((f > number)) | |
70 | 70 | then "win" | |
71 | 71 | else "loss" | |
72 | 72 | let transfr = if ((result == "win")) | |
73 | 73 | then (9900000000 / (99 - number)) | |
74 | 74 | else 0 | |
75 | 75 | let transfer = ((i.payments[0].amount * transfr) / 100000000) | |
76 | 76 | let txPay = if ((transfer == 0)) | |
77 | 77 | then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount) | |
78 | 78 | else ScriptTransfer(Address(i.caller.bytes), transfer, unit) | |
79 | 79 | let reftx = if ((ref1 == toBase58String(this.bytes))) | |
80 | 80 | then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef) | |
81 | 81 | else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit) | |
82 | 82 | [IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_mult"), transfr), IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), number), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result_number"), f), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_transfer_final"), transfer), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), txPay] | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(i) | |
88 | 88 | func betCoinFlip (isHeads,ref) = if (isDefined(getString(("address_blocked_" + toBase58String(i.caller.bytes))))) | |
89 | 89 | then throw("Error: Your address is on the Waves Play blacklist.") | |
90 | 90 | else if (if ((100000 > i.payments[0].amount)) | |
91 | 91 | then true | |
92 | 92 | else (i.payments[0].amount > 1000000000)) | |
93 | 93 | then throw("Invalid Waves amount. Min value: 0.1 Waves. Max Value: 10 Waves") | |
94 | 94 | else if ((i.payments[0].assetId != unit)) | |
95 | 95 | then throw("Invalid assetId") | |
96 | 96 | else { | |
97 | 97 | let x = if (isDefined(getInteger((toBase58String(i.caller.bytes) + "_bets")))) | |
98 | 98 | then getIntegerValue((toBase58String(i.caller.bytes) + "_bets")) | |
99 | 99 | else 0 | |
100 | 100 | let ref1 = if ((ref == "")) | |
101 | 101 | then toBase58String(this.bytes) | |
102 | 102 | else ref | |
103 | 103 | let toRef = ((i.payments[0].amount * 1) / 100) | |
104 | 104 | let lastTx = if (isDefined(getString("last_tx_bet"))) | |
105 | 105 | then (isNegative(toInt(sha256(fromBase58String(getStringValue("last_tx_bet"))))) / bigIntHashDivisorCoinFLip) | |
106 | 106 | else (isNegative(toInt(sha256(sha256(i.transactionId)))) / bigIntHashDivisorCoinFLip) | |
107 | 107 | let txxz = (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip) | |
108 | 108 | let f = if ((txxz > lastTx)) | |
109 | 109 | then (txxz - lastTx) | |
110 | 110 | else (lastTx - txxz) | |
111 | 111 | let result_w = if (if (if (if (if ((f == 0)) | |
112 | 112 | then true | |
113 | 113 | else (f == 2)) | |
114 | 114 | then true | |
115 | 115 | else (f == 4)) | |
116 | 116 | then true | |
117 | 117 | else (f == 6)) | |
118 | 118 | then true | |
119 | 119 | else (f == 8)) | |
120 | 120 | then "heads" | |
121 | 121 | else "tails" | |
122 | 122 | let result = if (if (if (isHeads) | |
123 | 123 | then if (if (if (if ((f == 0)) | |
124 | 124 | then true | |
125 | 125 | else (f == 2)) | |
126 | 126 | then true | |
127 | 127 | else (f == 4)) | |
128 | 128 | then true | |
129 | 129 | else (f == 6)) | |
130 | 130 | then true | |
131 | 131 | else (f == 8) | |
132 | 132 | else false) | |
133 | 133 | then true | |
134 | 134 | else if (!(isHeads)) | |
135 | 135 | then if (if (if (if ((f == 1)) | |
136 | 136 | then true | |
137 | 137 | else (f == 3)) | |
138 | 138 | then true | |
139 | 139 | else (f == 5)) | |
140 | 140 | then true | |
141 | 141 | else (f == 7)) | |
142 | 142 | then true | |
143 | 143 | else (f == 9) | |
144 | 144 | else false) | |
145 | 145 | then "win" | |
146 | 146 | else "loss" | |
147 | 147 | let transfer = if ((result == "win")) | |
148 | 148 | then (i.payments[0].amount * 2) | |
149 | 149 | else 0 | |
150 | 150 | let txPay = if ((transfer == 0)) | |
151 | 151 | then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount) | |
152 | 152 | else ScriptTransfer(Address(i.caller.bytes), (i.payments[0].amount * 2), unit) | |
153 | 153 | let reftx = if ((ref1 == toBase58String(this.bytes))) | |
154 | 154 | then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef) | |
155 | 155 | else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit) | |
156 | - | [IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), BooleanEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), isHeads), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_heads_or_tails"), result_w), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), txPay] | |
156 | + | [IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), BooleanEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), isHeads), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_heads_or_tails"), result_w), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_f"), f), txPay] | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Verifier(tx) | |
161 | 161 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
162 | 162 |
github/deemru/w8io/169f3d6 52.61 ms ◑