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
44 let MESSAGE_COUNTER = "message_counter"
55
66 let FOLLOW_STRING = "follows"
7+
8+func getMessageCounter () = match getIntegerValue(this, MESSAGE_COUNTER) {
9+ case i: Int =>
10+ i
11+ case _ =>
12+ 0
13+}
14+
715
816 @Callable(i)
917 func follow (address) = {
1624
1725 @Callable(i)
1826 func tweet (message) = {
19- let messageCounter = getIntegerValue(this, MESSAGE_COUNTER)
27+ let messageCounter = getMessageCounter()
2028 let sender = toString(i.caller)
2129 let txId = toBase58String(i.transactionId)
2230 let msgKey = ((sender + "_") + txId)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let MESSAGE_COUNTER = "message_counter"
55
66 let FOLLOW_STRING = "follows"
7+
8+func getMessageCounter () = match getIntegerValue(this, MESSAGE_COUNTER) {
9+ case i: Int =>
10+ i
11+ case _ =>
12+ 0
13+}
14+
715
816 @Callable(i)
917 func follow (address) = {
1018 let sender = toString(i.caller)
1119 let followKey = ((((sender + "_") + FOLLOW_STRING) + "_") + address)
1220 [BooleanEntry(followKey, true)]
1321 }
1422
1523
1624
1725 @Callable(i)
1826 func tweet (message) = {
19- let messageCounter = getIntegerValue(this, MESSAGE_COUNTER)
27+ let messageCounter = getMessageCounter()
2028 let sender = toString(i.caller)
2129 let txId = toBase58String(i.transactionId)
2230 let msgKey = ((sender + "_") + txId)
2331 [StringEntry(msgKey, message), IntegerEntry(MESSAGE_COUNTER, (messageCounter + 1))]
2432 }
2533
2634
2735 @Verifier(tx)
2836 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2937

github/deemru/w8io/169f3d6 
28.04 ms