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 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func arboosCheck (hash) = match getStringValue(this, ("byHash-" + hash)) {
5- case a: String =>
6- a
7- case _ =>
8- false
9-}
104
115
126 @Callable(i)
13-func arboosCertify (filename,fileAsSHA256,certifiedBy) = [StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)]
7+func arboosCheck (hash) = {
8+ let found = match getStringValue(this, ("trxId-by-hash-" + hash)) {
9+ case a: String =>
10+ a
11+ case _ =>
12+ ""
13+ }
14+ if ((found != ""))
15+ then throw(((((("hash exists " + found) + " for file ") + getStringValue(this, ("filename-by-hash-" + hash))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + hash))))
16+ else throw("hash not found")
17+ }
18+
19+
20+
21+@Callable(i)
22+func arboosCertify (filename,fileAsSHA256,certifiedBy) = {
23+ let id = value(i.transactionId)
24+[StringEntry(("trxId-by-hash-" + fileAsSHA256), toBase58String(value(i.transactionId))), StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)]
25+ }
1426
1527
1628 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func arboosCheck (hash) = match getStringValue(this, ("byHash-" + hash)) {
5- case a: String =>
6- a
7- case _ =>
8- false
9-}
104
115
126 @Callable(i)
13-func arboosCertify (filename,fileAsSHA256,certifiedBy) = [StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)]
7+func arboosCheck (hash) = {
8+ let found = match getStringValue(this, ("trxId-by-hash-" + hash)) {
9+ case a: String =>
10+ a
11+ case _ =>
12+ ""
13+ }
14+ if ((found != ""))
15+ then throw(((((("hash exists " + found) + " for file ") + getStringValue(this, ("filename-by-hash-" + hash))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + hash))))
16+ else throw("hash not found")
17+ }
18+
19+
20+
21+@Callable(i)
22+func arboosCertify (filename,fileAsSHA256,certifiedBy) = {
23+ let id = value(i.transactionId)
24+[StringEntry(("trxId-by-hash-" + fileAsSHA256), toBase58String(value(i.transactionId))), StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)]
25+ }
1426
1527
1628 @Verifier(tx)
1729 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1830

github/deemru/w8io/026f985 
30.96 ms