tx · 7gipKTnrot2dPzh2USh4gEKqqjZwfNwY95k1SxtQshw7
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.20 16:06 [2586329] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "7gipKTnrot2dPzh2USh4gEKqqjZwfNwY95k1SxtQshw7",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684588053147,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"UifprqQJpchFmebGyRYdzKcBu1f6GnevHcutVYmJoX5myhQMeksBNf2T79iXCcv15C3Kf4Xkn1CNnDAJ3z3nDVu"
],
"script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgRSaWRlBAdjVG9CeXRlCQCgAwEJAJ4DAQkA2QQBBQFjBAlyYW5kb21OdW0JAGoCBQdjVG9CeXRlAGQEDndpblByb2JhYmlsaXR5ACgEC3dpblRyYW5zZmVyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgkAaAIFA2JldAACBQdhc3NldElEBQNuaWwEDXdyaXRlTGFzdFBsYXkJAMwIAgkBDEludGVnZXJFbnRyeQICCGxhc3RQbGF5BQlyYW5kb21OdW0FA25pbAMDCQBnAgUOd2luUHJvYmFiaWxpdHkFCXJhbmRvbU51bQYJAGcCBQlyYW5kb21OdW0FDndpblByb2JhYmlsaXR5CQCUCgIFC3dpblRyYW5zZmVyBQ13cml0ZUxhc3RQbGF5CQCUCgIFC3dpblRyYW5zZmVyBQ13cml0ZUxhc3RQbGF5AQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRUQAmk=",
"height": 2586329,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: J4prm4G1Ysk7tiGYAQkjhSy3eW1jjybQWtdAtU5F1NJU
Next: 9w7piK4LBfFh7aDhT5VYRBNzvBEJAScCEhCLDVAyK6kh
Diff:
Old | New | | Differences |
---|
10 | 10 | | let d = "Ride" |
---|
11 | 11 | | let e = toInt(toBigInt(fromBase58String(d))) |
---|
12 | 12 | | let f = (e % 100) |
---|
13 | | - | let g = 400 |
---|
| 13 | + | let g = 40 |
---|
14 | 14 | | let h = [ScriptTransfer(a.caller, (b * 2), c)] |
---|
15 | 15 | | let i = [IntegerEntry("lastPlay", f)] |
---|
16 | 16 | | if (if ((g >= f)) |
---|
17 | 17 | | then true |
---|
18 | 18 | | else (f >= g)) |
---|
19 | 19 | | then $Tuple2(h, i) |
---|
20 | | - | else $Tuple2([ScriptTransfer(a.caller, 0, c)], i) |
---|
| 20 | + | else $Tuple2(h, i) |
---|
21 | 21 | | } |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
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(fromBase58String(d))) |
---|
12 | 12 | | let f = (e % 100) |
---|
13 | | - | let g = 400 |
---|
| 13 | + | let g = 40 |
---|
14 | 14 | | let h = [ScriptTransfer(a.caller, (b * 2), c)] |
---|
15 | 15 | | let i = [IntegerEntry("lastPlay", f)] |
---|
16 | 16 | | if (if ((g >= f)) |
---|
17 | 17 | | then true |
---|
18 | 18 | | else (f >= g)) |
---|
19 | 19 | | then $Tuple2(h, i) |
---|
20 | | - | else $Tuple2([ScriptTransfer(a.caller, 0, c)], i) |
---|
| 20 | + | else $Tuple2(h, i) |
---|
21 | 21 | | } |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Verifier(j) |
---|
25 | 25 | | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
26 | 26 | | |
---|