tx · 359kdoujesvz3rkkEnUsrcfivRbnBzHV8Xiwsq7CAkUW

3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2:  -0.05000000 Waves

2022.12.21 13:45 [2369951] smart account 3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2 > SELF 0.00000000 Waves

{ "type": 13, "id": "359kdoujesvz3rkkEnUsrcfivRbnBzHV8Xiwsq7CAkUW", "fee": 5000000, "feeAssetId": null, "timestamp": 1671619559123, "version": 2, "chainId": 84, "sender": "3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2", "senderPublicKey": "3XEAduJnZeFRL74JfaQk7MgrGDo9a9xREYyfLvyivREU", "proofs": [ "3aP3qnc9WFPpYWcDUpCuaR4a2mxX6Q76RHuLEZyC2oiQwxnPJ7UPEyvvbnTSkHRpkRJgVtLwPPEzbLVnbSQsf31H" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAwAPTUVTU0FHRV9DT1VOVEVSAg9tZXNzYWdlX2NvdW50ZXIADUZPTExPV19TVFJJTkcCB2ZvbGxvd3MBEWdldE1lc3NhZ2VDb3VudGVyAAQHJG1hdGNoMAkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwUPTUVTU0FHRV9DT1VOVEVSAwkAAQIFByRtYXRjaDACA0ludAQBaQUHJG1hdGNoMAUBaQAAAgFpAQZmb2xsb3cBB2FkZHJlc3MEBnNlbmRlcgkApQgBCAUBaQZjYWxsZXIECWZvbGxvd0tleQkArAICCQCsAgIJAKwCAgkArAICBQZzZW5kZXICAV8FDUZPTExPV19TVFJJTkcCAV8FB2FkZHJlc3MJAMwIAgkBDEJvb2xlYW5FbnRyeQIFCWZvbGxvd0tleQYFA25pbAFpAQV0d2VldAEHbWVzc2FnZQQObWVzc2FnZUNvdW50ZXIJARFnZXRNZXNzYWdlQ291bnRlcgAEBnNlbmRlcgkApQgBCAUBaQZjYWxsZXIEBHR4SWQJANgEAQgFAWkNdHJhbnNhY3Rpb25JZAQGbXNnS2V5CQCsAgIJAKwCAgUGc2VuZGVyAgFfBQR0eElkCQDMCAIJAQtTdHJpbmdFbnRyeQIFBm1zZ0tleQUHbWVzc2FnZQkAzAgCCQEMSW50ZWdlckVudHJ5AgUPTUVTU0FHRV9DT1VOVEVSCQBkAgUObWVzc2FnZUNvdW50ZXIAAQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQ5WESw=", "height": 2369951, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7covVun4yb5d4BHNARbfB95CciN32yrBPR9CAkrMH4YC Next: Bx9ht7EedCbdEBnDNhhKnPhCWw6ZrL6DHLWpu5Rb59J3 Diff:
OldNewDifferences
55
66 let b = "follows"
77
8-@Callable(c)
9-func follow (d) = {
10- let e = toString(c.caller)
11- let f = ((((e + "_") + b) + "_") + d)
12-[BooleanEntry(f, true)]
8+func c () = {
9+ let d = getIntegerValue(this, a)
10+ if ($isInstanceOf(d, "Int"))
11+ then {
12+ let e = d
13+ e
14+ }
15+ else 0
16+ }
17+
18+
19+@Callable(e)
20+func follow (f) = {
21+ let g = toString(e.caller)
22+ let h = ((((g + "_") + b) + "_") + f)
23+[BooleanEntry(h, true)]
1324 }
1425
1526
1627
17-@Callable(c)
18-func tweet (g) = {
19- let h = getIntegerValue(this, a)
20- let e = toString(c.caller)
21- let i = toBase58String(c.transactionId)
22- let j = ((e + "_") + i)
23-[StringEntry(j, g), IntegerEntry(a, (h + 1))]
28+@Callable(e)
29+func tweet (i) = {
30+ let j = c()
31+ let g = toString(e.caller)
32+ let k = toBase58String(e.transactionId)
33+ let l = ((g + "_") + k)
34+[StringEntry(l, i), IntegerEntry(a, (j + 1))]
2435 }
2536
2637
27-@Verifier(k)
28-func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
38+@Verifier(m)
39+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
2940
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "message_counter"
55
66 let b = "follows"
77
8-@Callable(c)
9-func follow (d) = {
10- let e = toString(c.caller)
11- let f = ((((e + "_") + b) + "_") + d)
12-[BooleanEntry(f, true)]
8+func c () = {
9+ let d = getIntegerValue(this, a)
10+ if ($isInstanceOf(d, "Int"))
11+ then {
12+ let e = d
13+ e
14+ }
15+ else 0
16+ }
17+
18+
19+@Callable(e)
20+func follow (f) = {
21+ let g = toString(e.caller)
22+ let h = ((((g + "_") + b) + "_") + f)
23+[BooleanEntry(h, true)]
1324 }
1425
1526
1627
17-@Callable(c)
18-func tweet (g) = {
19- let h = getIntegerValue(this, a)
20- let e = toString(c.caller)
21- let i = toBase58String(c.transactionId)
22- let j = ((e + "_") + i)
23-[StringEntry(j, g), IntegerEntry(a, (h + 1))]
28+@Callable(e)
29+func tweet (i) = {
30+ let j = c()
31+ let g = toString(e.caller)
32+ let k = toBase58String(e.transactionId)
33+ let l = ((g + "_") + k)
34+[StringEntry(l, i), IntegerEntry(a, (j + 1))]
2435 }
2536
2637
27-@Verifier(k)
28-func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
38+@Verifier(m)
39+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
2940

github/deemru/w8io/169f3d6 
23.52 ms