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//////////wUAAAABbgAAAAQAAAABaQEAAAAIYWRkQWRtaW4AAAABAAAAB2FkZHJlc3MEAAAAA2FkbQMJAQAAAAlpc0RlZmluZWQAAAABCQAEIgAAAAECAAAABWFkbWluCQACWQAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAECAAAABWFkbWluCAgFAAAAAWkAAAAGY2Fsb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AAWYJAARMAAAAAgUAAAAFdHhQYXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56VG26w==", "height": 2566952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2G1XfBNN2NQBbjwTGKffxD7XJCFSXQ3dDHpkTCFj69SR Next: 98deT8MZyMUXyXJ6cFtMbXaYKHTHdQ3oTy9fK345FRbk Diff:
OldNewDifferences
153153 let reftx = if ((ref1 == toBase58String(this.bytes)))
154154 then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef)
155155 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]
157157 }
158158
159159
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let bigIntHashDivisorCoinFLip = pow(10, 0, 16, 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 lastTx = 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 txxz = (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip)
108108 let f = if ((txxz > lastTx))
109109 then (txxz - lastTx)
110110 else (lastTx - txxz)
111111 let result_w = if (if (if (if (if ((f == 0))
112112 then true
113113 else (f == 2))
114114 then true
115115 else (f == 4))
116116 then true
117117 else (f == 6))
118118 then true
119119 else (f == 8))
120120 then "heads"
121121 else "tails"
122122 let result = if (if (if (isHeads)
123123 then if (if (if (if ((f == 0))
124124 then true
125125 else (f == 2))
126126 then true
127127 else (f == 4))
128128 then true
129129 else (f == 6))
130130 then true
131131 else (f == 8)
132132 else false)
133133 then true
134134 else if (!(isHeads))
135135 then if (if (if (if ((f == 1))
136136 then true
137137 else (f == 3))
138138 then true
139139 else (f == 5))
140140 then true
141141 else (f == 7))
142142 then true
143143 else (f == 9)
144144 else false)
145145 then "win"
146146 else "loss"
147147 let transfer = if ((result == "win"))
148148 then (i.payments[0].amount * 2)
149149 else 0
150150 let txPay = if ((transfer == 0))
151151 then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount)
152152 else ScriptTransfer(Address(i.caller.bytes), (i.payments[0].amount * 2), unit)
153153 let reftx = if ((ref1 == toBase58String(this.bytes)))
154154 then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef)
155155 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]
157157 }
158158
159159
160160 @Verifier(tx)
161161 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
162162

github/deemru/w8io/169f3d6 
59.54 ms