tx · AEomJnxmqr64SiE1V9Ve5h2zkCcv3y1MHLjvWn6E3Rec 3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2: -0.01000000 Waves 2022.12.21 13:16 [2369927] smart account 3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2 > SELF 0.00000000 Waves
{ "type": 13, "id": "AEomJnxmqr64SiE1V9Ve5h2zkCcv3y1MHLjvWn6E3Rec", "fee": 1000000, "feeAssetId": null, "timestamp": 1671617811398, "version": 2, "chainId": 84, "sender": "3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2", "senderPublicKey": "3XEAduJnZeFRL74JfaQk7MgrGDo9a9xREYyfLvyivREU", "proofs": [ "2sjVxBs2QsPUydfdkZBj4WkrMDxMVGfuaKqVSByr2vANaSqMR1UdauhPkrtW1yCE5L76sXTS8Jiv5xTMknqqSPrg" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAgAPTUVTU0FHRV9DT1VOVEVSAg9tZXNzYWdlX2NvdW50ZXIADUZPTExPV19TVFJJTkcCB2ZvbGxvd3MCAWkBBmZvbGxvdwEHYWRkcmVzcwQGc2VuZGVyCQClCAEIBQFpBmNhbGxlcgQJZm9sbG93S2V5CQCsAgIJAKwCAgkArAICCQCsAgIFBnNlbmRlcgIBXwUNRk9MTE9XX1NUUklORwIBXwUHYWRkcmVzcwkAzAgCCQEMQm9vbGVhbkVudHJ5AgUJZm9sbG93S2V5BgUDbmlsAWkBBXR3ZWV0AQdtZXNzYWdlBA5tZXNzYWdlQ291bnRlcgkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwUPTUVTU0FHRV9DT1VOVEVSBAZzZW5kZXIJAKUIAQgFAWkGY2FsbGVyBAR0eElkCQCwCQEIBQFpDXRyYW5zYWN0aW9uSWQEBm1zZ0tleQkArAICCQCsAgIFBnNlbmRlcgIBXwUEdHhJZAkAzAgCCQELU3RyaW5nRW50cnkCBQZtc2dLZXkFB21lc3NhZ2UJAMwIAgkBDEludGVnZXJFbnRyeQIFD01FU1NBR0VfQ09VTlRFUgkAZAIFDm1lc3NhZ2VDb3VudGVyAAEFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkkYiKD", "height": 2369927, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7covVun4yb5d4BHNARbfB95CciN32yrBPR9CAkrMH4YC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let MESSAGE_COUNTER = "message_counter" | |
5 | + | ||
6 | + | let FOLLOW_STRING = "follows" | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func follow (address) = { | |
10 | + | let sender = toString(i.caller) | |
11 | + | let followKey = ((((sender + "_") + FOLLOW_STRING) + "_") + address) | |
12 | + | [BooleanEntry(followKey, true)] | |
13 | + | } | |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | @Callable(i) | |
18 | + | func tweet (message) = { | |
19 | + | let messageCounter = getIntegerValue(this, MESSAGE_COUNTER) | |
20 | + | let sender = toString(i.caller) | |
21 | + | let txId = toUtf8String(i.transactionId) | |
22 | + | let msgKey = ((sender + "_") + txId) | |
23 | + | [StringEntry(msgKey, message), IntegerEntry(MESSAGE_COUNTER, (messageCounter + 1))] | |
24 | + | } | |
25 | + | ||
26 | + | ||
27 | + | @Verifier(tx) | |
28 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
29 | + |
github/deemru/w8io/026f985 16.62 ms ◑