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