tx · AT8dBmrZbie7P3SkaWu1KMbvbhZQ1iRiMbYcHKQbXa7u

3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55:  -0.01000000 Waves

2022.06.05 22:15 [2083461] smart account 3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55 > SELF 0.00000000 Waves

{ "type": 13, "id": "AT8dBmrZbie7P3SkaWu1KMbvbhZQ1iRiMbYcHKQbXa7u", "fee": 1000000, "feeAssetId": null, "timestamp": 1654456528613, "version": 2, "chainId": 84, "sender": "3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55", "senderPublicKey": "EK4tAXbeXpEJhAvZH4VHPBKw1A8dREMduJWrs1q6LgUs", "proofs": [ "43nufFWyGqtSwAmtnRzp1Aojgyb5yuhVS6wiSQJ2Rukew6rnPQxogJVnHEy4fpLGqjnbjHLD5UGAX3sGCXR71JDE" ], "script": "base64:AAIFAAAAAAAAAA4IAhIDCgEIEgUKAwgICAAAAAAAAAACAAAAAWkBAAAAC2FyYm9vc0NoZWNrAAAAAQAAAARoYXNoBAAAAAVmb3VuZAQAAAAHJG1hdGNoMAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAA50cnhJZC1ieS1oYXNoLQUAAAAEaGFzaAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQEAAAACIT0AAAACBQAAAAVmb3VuZAIAAAAACQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxoYXNoIGV4aXN0cyAFAAAABWZvdW5kAgAAAAogZm9yIGZpbGUgCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAEWZpbGVuYW1lLWJ5LWhhc2gtBQAAAARoYXNoAgAAAAQgYnkgCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAFGNlcnRpZmllZEJ5LWJ5LWhhc2gtBQAAAARoYXNoCQAAAgAAAAECAAAADmhhc2ggbm90IGZvdW5kAAAAAWkBAAAADWFyYm9vc0NlcnRpZnkAAAADAAAACGZpbGVuYW1lAAAADGZpbGVBc1NIQTI1NgAAAAtjZXJ0aWZpZWRCeQQAAAACaWQJAQAAAAV2YWx1ZQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAA50cnhJZC1ieS1oYXNoLQUAAAAMZmlsZUFzU0hBMjU2CQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABFmaWxlbmFtZS1ieS1oYXNoLQUAAAAMZmlsZUFzU0hBMjU2BQAAAAhmaWxlbmFtZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAFGNlcnRpZmllZEJ5LWJ5LWhhc2gtBQAAAAxmaWxlQXNTSEEyNTYFAAAAC2NlcnRpZmllZEJ5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleT9DS1g=", "height": 2083461, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FdywDxXeE9Pqgcnj9SKDcpjkjmE4HwwbJiionQwXu73k Next: Hcm8vFnCiVVtdjwFYHJVGPEgUtd3JB6QtJjVFvufacmy Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func a (b) = {
5- let c = getStringValue(this, ("byHash-" + b))
6- if ($isInstanceOf(c, "String"))
7- then {
8- let d = c
9- d
10- }
11- else false
4+
5+
6+@Callable(a)
7+func arboosCheck (b) = {
8+ let c = {
9+ let d = getStringValue(this, ("trxId-by-hash-" + b))
10+ if ($isInstanceOf(d, "String"))
11+ then {
12+ let e = d
13+ e
14+ }
15+ else ""
16+ }
17+ if ((c != ""))
18+ then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + b))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + b))))
19+ else throw("hash not found")
1220 }
1321
1422
15-@Callable(e)
16-func arboosCertify (f,g,h) = [StringEntry(("filename-by-hash-" + g), f), StringEntry(("certifiedBy-by-hash-" + g), h)]
23+
24+@Callable(a)
25+func arboosCertify (f,g,h) = {
26+ let i = value(a.transactionId)
27+[StringEntry(("trxId-by-hash-" + g), toBase58String(value(a.transactionId))), StringEntry(("filename-by-hash-" + g), f), StringEntry(("certifiedBy-by-hash-" + g), h)]
28+ }
1729
1830
19-@Verifier(i)
20-func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
31+@Verifier(j)
32+func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
2133

github/deemru/w8io/169f3d6 
20.46 ms