tx · 36jzTcFYPQnNzQvTgX8mayjrDo8dk7aKGEHgpu7qYVyt

3MyGZ3AEvGe5JQ7atcGLL2J5NTnUkwZjNtz:  -0.05000000 Waves

2023.05.07 07:48 [2566969] smart account 3MyGZ3AEvGe5JQ7atcGLL2J5NTnUkwZjNtz > SELF 0.00000000 Waves

{ "type": 13, "id": "36jzTcFYPQnNzQvTgX8mayjrDo8dk7aKGEHgpu7qYVyt", "fee": 5000000, "feeAssetId": null, "timestamp": 1683435023923, "version": 2, "chainId": 84, "sender": "3MyGZ3AEvGe5JQ7atcGLL2J5NTnUkwZjNtz", "senderPublicKey": "DhZAjzJ6qSviDheXhhVx4Php3axrp53pA1T7cHk9TLLh", "proofs": [ "5WKetu7WuNYj9PnhrRV4FGcrkrwzVj8Sd8wZjEDgoKwTJGN8YKydouCN4E1rjNd5WmZJnYUyg7BPrZWhq9G9GY38" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgQKAggEEgQKAgEIEgQKAgQIAAAAAwAAAAAZYmlnSW50SGFzaERpdmlzb3JDb2luRkxpcAkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAABQAAAAZIQUxGVVAAAAAAGGJpZ0ludEhhc2hEaXZpc29yQ29pbkJldAkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAABQAAAAZIQUxGVVABAAAACmlzTmVnYXRpdmUAAAABAAAAAW4DCQAAZgAAAAIAAAAAAAAAAAAFAAAAAW4JAABoAAAAAgUAAAABbgD//////////wUAAAABbgAAAAQAAAABaQEAAAAIYWRkQWRtaW4AAAABAAAAB2FkZHJlc3MEAAAAA2FkbQMJAQAAAAlpc0RlZmluZWQAAAABCQAEIgAAAAECAAAABWFkbWluCQACWQAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAECAAAABWFkbWluCAgFAAAAAWkAAAAGY2F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entComplexity": 0 } View: original | compacted Prev: 3Qo7z7pB8vTyEyx3gcuKXGXxU4TJ1KcdtrN6JG6FHn3F Next: none Diff:
OldNewDifferences
111111 then ((isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip) / 10)
112112 else (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip)
113113 let f = if ((txxz > lastTx))
114- then ((txxz - lastTx) / 10)
115- else ((lastTx - txxz) / 10)
114+ then (txxz - lastTx)
115+ else (lastTx - txxz)
116116 let result_w = if (if (if (if (if ((f == 0))
117117 then true
118118 else (f == 2))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let bigIntHashDivisorCoinFLip = pow(10, 0, 17, 0, 0, HALFUP)
55
66 let bigIntHashDivisorCoinBet = pow(10, 0, 17, 0, 0, HALFUP)
77
88 func isNegative (n) = if ((0 > n))
99 then (n * -1)
1010 else n
1111
1212
1313 @Callable(i)
1414 func addAdmin (address) = {
1515 let adm = if (isDefined(getString("admin")))
1616 then fromBase58String(getStringValue("admin"))
1717 else i.caller.bytes
1818 if (if ((i.caller.bytes == adm))
1919 then true
2020 else (i.caller.bytes == this.bytes))
2121 then [StringEntry("admin", address)]
2222 else throw("Error: Only administrator can call this function.")
2323 }
2424
2525
2626
2727 @Callable(i)
2828 func blockAddress (address,isBlock) = {
2929 let adm = if (isDefined(getString("admin")))
3030 then fromBase58String(getStringValue("admin"))
3131 else i.caller.bytes
3232 if (if ((i.caller.bytes == adm))
3333 then true
3434 else (i.caller.bytes == this.bytes))
3535 then [BooleanEntry(("address_blocked_" + address), isBlock)]
3636 else throw("Error: Only administrator can call this function.")
3737 }
3838
3939
4040
4141 @Callable(i)
4242 func betToNumber (number,ref) = if (isDefined(getString(("address_blocked_" + toBase58String(i.caller.bytes)))))
4343 then throw("Error: Your address is on the Waves Play blacklist.")
4444 else if (if ((100000 > i.payments[0].amount))
4545 then true
4646 else (i.payments[0].amount > 1000000000))
4747 then throw("Invalid Waves amount. Min value: 0.1 Waves. Max Value: 10 Waves")
4848 else if ((i.payments[0].assetId != unit))
4949 then throw("Invalid assetId")
5050 else if (if ((0 >= number))
5151 then true
5252 else (number >= 99))
5353 then throw("Error: Invalid Number")
5454 else {
5555 let x = if (isDefined(getInteger((toBase58String(i.caller.bytes) + "_bets"))))
5656 then getIntegerValue((toBase58String(i.caller.bytes) + "_bets"))
5757 else 0
5858 let ref1 = if ((ref == ""))
5959 then toBase58String(this.bytes)
6060 else ref
6161 let toRef = ((i.payments[0].amount * 1) / 100)
6262 let lastTx = if (isDefined(getString("last_tx_bet")))
6363 then (isNegative(toInt(sha256(fromBase58String(getStringValue("last_tx_bet"))))) / bigIntHashDivisorCoinBet)
6464 else (isNegative(toInt(sha256(sha256(i.transactionId)))) / bigIntHashDivisorCoinBet)
6565 let txxz = (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinBet)
6666 let f = if ((txxz > lastTx))
6767 then (txxz - lastTx)
6868 else (lastTx - txxz)
6969 let result = if ((f > number))
7070 then "win"
7171 else "loss"
7272 let transfr = if ((result == "win"))
7373 then (9900000000 / (99 - number))
7474 else 0
7575 let transfer = ((i.payments[0].amount * transfr) / 100000000)
7676 let txPay = if ((transfer == 0))
7777 then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount)
7878 else ScriptTransfer(Address(i.caller.bytes), transfer, unit)
7979 let reftx = if ((ref1 == toBase58String(this.bytes)))
8080 then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef)
8181 else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit)
8282 [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]
8383 }
8484
8585
8686
8787 @Callable(i)
8888 func betCoinFlip (isHeads,ref) = if (isDefined(getString(("address_blocked_" + toBase58String(i.caller.bytes)))))
8989 then throw("Error: Your address is on the Waves Play blacklist.")
9090 else if (if ((100000 > i.payments[0].amount))
9191 then true
9292 else (i.payments[0].amount > 1000000000))
9393 then throw("Invalid Waves amount. Min value: 0.1 Waves. Max Value: 10 Waves")
9494 else if ((i.payments[0].assetId != unit))
9595 then throw("Invalid assetId")
9696 else {
9797 let x = if (isDefined(getInteger((toBase58String(i.caller.bytes) + "_bets"))))
9898 then getIntegerValue((toBase58String(i.caller.bytes) + "_bets"))
9999 else 0
100100 let ref1 = if ((ref == ""))
101101 then toBase58String(this.bytes)
102102 else ref
103103 let toRef = ((i.payments[0].amount * 1) / 100)
104104 let lastTxx = if (isDefined(getString("last_tx_bet")))
105105 then (isNegative(toInt(sha256(fromBase58String(getStringValue("last_tx_bet"))))) / bigIntHashDivisorCoinFLip)
106106 else (isNegative(toInt(sha256(sha256(i.transactionId)))) / bigIntHashDivisorCoinFLip)
107107 let lastTx = if ((lastTxx > 10))
108108 then (lastTxx / 10)
109109 else lastTxx
110110 let txxz = if (((isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip) > 10))
111111 then ((isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip) / 10)
112112 else (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip)
113113 let f = if ((txxz > lastTx))
114- then ((txxz - lastTx) / 10)
115- else ((lastTx - txxz) / 10)
114+ then (txxz - lastTx)
115+ else (lastTx - txxz)
116116 let result_w = if (if (if (if (if ((f == 0))
117117 then true
118118 else (f == 2))
119119 then true
120120 else (f == 4))
121121 then true
122122 else (f == 6))
123123 then true
124124 else (f == 8))
125125 then "heads"
126126 else "tails"
127127 let result = if (if (if (isHeads)
128128 then if (if (if (if ((f == 0))
129129 then true
130130 else (f == 2))
131131 then true
132132 else (f == 4))
133133 then true
134134 else (f == 6))
135135 then true
136136 else (f == 8)
137137 else false)
138138 then true
139139 else if (!(isHeads))
140140 then if (if (if (if ((f == 1))
141141 then true
142142 else (f == 3))
143143 then true
144144 else (f == 5))
145145 then true
146146 else (f == 7))
147147 then true
148148 else (f == 9)
149149 else false)
150150 then "win"
151151 else "loss"
152152 let transfer = if ((result == "win"))
153153 then (i.payments[0].amount * 2)
154154 else 0
155155 let txPay = if ((transfer == 0))
156156 then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount)
157157 else ScriptTransfer(Address(i.caller.bytes), (i.payments[0].amount * 2), unit)
158158 let reftx = if ((ref1 == toBase58String(this.bytes)))
159159 then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef)
160160 else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit)
161161 [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), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_step1"), txxz), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_step2"), lastTx), txPay]
162162 }
163163
164164
165165 @Verifier(tx)
166166 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
167167

github/deemru/w8io/169f3d6 
41.39 ms