tx · Euugy25SCgAQVfk4DoQMt5RF91vqSg7gxERj8kRXirrZ
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.20 15:04 [2586274] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "Euugy25SCgAQVfk4DoQMt5RF91vqSg7gxERj8kRXirrZ",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684584272901,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"4Lc9VLVwmjZqHM3TVpXaapstWVyod8GzGVMfidrSNN3unNketQpDPopKFLoxuKVsoAtCG4hpnwaiK7EkdeqKNnJz"
],
"script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgRSaWRlBAdjVG9CeXRlCQCgAwEJAJ4DAQkA3QQBBQFjBAlyYW5kb21OdW0JAGoCBQdjVG9CeXRlAGQEDndpblByb2JhYmlsaXR5ACgEC3dpblRyYW5zZmVyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgkAaAIFA2JldAACBQdhc3NldElEBQNuaWwEDXdyaXRlTGFzdFBsYXkJAMwIAgkBDEludGVnZXJFbnRyeQICCGxhc3RQbGF5BQlyYW5kb21OdW0FA25pbAMJAGYCBQ53aW5Qcm9iYWJpbGl0eQUJcmFuZG9tTnVtCQCUCgIFC3dpblRyYW5zZmVyBQ13cml0ZUxhc3RQbGF5CQCUCgIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAAAFB2Fzc2V0SUQFA25pbAUNd3JpdGVMYXN0UGxheQECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmZ6Dj4",
"height": 2586274,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BZ4uBfwT1GxUjouTrktfKH4WYWDBf81Pa9MsCRgLNbEN
Next: 2FpunriByB1GDBLnzRiLhV14dAcwxKRrvyAgXYnJdWtF
Diff:
Old | New | | Differences |
---|
12 | 12 | | let f = (e % 100) |
---|
13 | 13 | | let g = 40 |
---|
14 | 14 | | let h = [ScriptTransfer(a.caller, (b * 2), c)] |
---|
15 | | - | let i = if ((f > g)) |
---|
16 | | - | then h |
---|
17 | | - | else 0 |
---|
18 | | - | let j = [IntegerEntry("lastPlay", f)] |
---|
| 15 | + | let i = [IntegerEntry("lastPlay", f)] |
---|
19 | 16 | | if ((g > f)) |
---|
20 | | - | then $Tuple2(h, j) |
---|
21 | | - | else $Tuple2([ScriptTransfer(a.caller, 0, c)], j) |
---|
| 17 | + | then $Tuple2(h, i) |
---|
| 18 | + | else $Tuple2([ScriptTransfer(a.caller, 0, c)], i) |
---|
22 | 19 | | } |
---|
23 | 20 | | |
---|
24 | 21 | | |
---|
25 | | - | @Verifier(k) |
---|
26 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 22 | + | @Verifier(j) |
---|
| 23 | + | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
27 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func roulette () = { |
---|
8 | 8 | | let b = a.payments[0].amount |
---|
9 | 9 | | let c = a.payments[0].assetId |
---|
10 | 10 | | let d = "Ride" |
---|
11 | 11 | | let e = toInt(toBigInt(fromBase16String(d))) |
---|
12 | 12 | | let f = (e % 100) |
---|
13 | 13 | | let g = 40 |
---|
14 | 14 | | let h = [ScriptTransfer(a.caller, (b * 2), c)] |
---|
15 | | - | let i = if ((f > g)) |
---|
16 | | - | then h |
---|
17 | | - | else 0 |
---|
18 | | - | let j = [IntegerEntry("lastPlay", f)] |
---|
| 15 | + | let i = [IntegerEntry("lastPlay", f)] |
---|
19 | 16 | | if ((g > f)) |
---|
20 | | - | then $Tuple2(h, j) |
---|
21 | | - | else $Tuple2([ScriptTransfer(a.caller, 0, c)], j) |
---|
| 17 | + | then $Tuple2(h, i) |
---|
| 18 | + | else $Tuple2([ScriptTransfer(a.caller, 0, c)], i) |
---|
22 | 19 | | } |
---|
23 | 20 | | |
---|
24 | 21 | | |
---|
25 | | - | @Verifier(k) |
---|
26 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 22 | + | @Verifier(j) |
---|
| 23 | + | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
27 | 24 | | |
---|