tx · CgvD1Xr11vKjBV3QBvdg53vDeyTWtRUYq2kJXr2k3wri

3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx:  -0.01000000 Waves

2023.05.24 16:34 [2592125] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves

{ "type": 13, "id": "CgvD1Xr11vKjBV3QBvdg53vDeyTWtRUYq2kJXr2k3wri", "fee": 1000000, "feeAssetId": null, "timestamp": 1684935245642, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "2KW7WDGtCM7aYDomgjSxeyZNSx67R24A1fixng4StTm1mM3g8ZyzuUiPKX5JC1X23PVn2M2PPsR4d845tFHBDr8L" ], "script": "base64:BgIOCAISBQoDCAEIEgMKAQEAAgFpAQNmb28DBWRBcHAxAWEEa2V5MQQDcmVzCQD9BwQFBHRoaXMCA2JhcgkAzAgCAAAFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzBAlpdGVyYXRpb24AXwMJAGYCBQlpdGVyYXRpb24FAWEJAJQKAgUDbmlsBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQICBGNhbGwFAWEFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQNiYXIBAWEJAJQKAgUDbmlsCQBkAgUBYQABAE+K3EY=", "height": 2592125, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FnwxsSvoiCPq72r5QcjKBqLBMQv7VK8BZdWwdBKiLQVX Next: EiVKPKVFmcTfz5zzxvFuXYij1Nnx5TkuhryrS2uZv4BR Diff:
OldNewDifferences
44
55
66 @Callable(a)
7-func roulette () = {
8- let b = a.payments[0].amount
9- let c = a.payments[0].assetId
10- let d = "Ride"
11- let e = toInt(toBigInt(fromBase58String(d)))
12- let f = (((((((e + toInt(a.callerPublicKey)) + lastBlock.height) + lastBlock.timestamp) + lastBlock.baseTarget) + b) + a.fee) % 100)
13- let g = 40
14- let h = [ScriptTransfer(a.caller, (b * 2), c)]
15- let i = [IntegerEntry("lastPlay", f)]
16- if (!(isDefined(a.payments)))
17- then throw("Should be with Payment in Waves")
18- else if ((g > f))
19- then $Tuple2(h, i)
20- else $Tuple2([ScriptTransfer(a.caller, 0, c)], i)
7+func foo (b,c,d) = {
8+ let e = reentrantInvoke(this, "bar", [0], nil)
9+ if ((e == e))
10+ then {
11+ let f = 95
12+ if ((f > c))
13+ then $Tuple2(nil, e)
14+ else [IntegerEntry("call", c)]
15+ }
16+ else throw("Strict value is not equal to itself.")
2117 }
2218
2319
24-@Verifier(j)
25-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
20+
21+@Callable(a)
22+func bar (c) = $Tuple2(nil, (c + 1))
23+
2624
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
7-func roulette () = {
8- let b = a.payments[0].amount
9- let c = a.payments[0].assetId
10- let d = "Ride"
11- let e = toInt(toBigInt(fromBase58String(d)))
12- let f = (((((((e + toInt(a.callerPublicKey)) + lastBlock.height) + lastBlock.timestamp) + lastBlock.baseTarget) + b) + a.fee) % 100)
13- let g = 40
14- let h = [ScriptTransfer(a.caller, (b * 2), c)]
15- let i = [IntegerEntry("lastPlay", f)]
16- if (!(isDefined(a.payments)))
17- then throw("Should be with Payment in Waves")
18- else if ((g > f))
19- then $Tuple2(h, i)
20- else $Tuple2([ScriptTransfer(a.caller, 0, c)], i)
7+func foo (b,c,d) = {
8+ let e = reentrantInvoke(this, "bar", [0], nil)
9+ if ((e == e))
10+ then {
11+ let f = 95
12+ if ((f > c))
13+ then $Tuple2(nil, e)
14+ else [IntegerEntry("call", c)]
15+ }
16+ else throw("Strict value is not equal to itself.")
2117 }
2218
2319
24-@Verifier(j)
25-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
20+
21+@Callable(a)
22+func bar (c) = $Tuple2(nil, (c + 1))
23+
2624

github/deemru/w8io/169f3d6 
27.41 ms