tx · 8yiYYiPcNkvo72YXtN1uZM9mzb8KSk24GCq8dNmFDcUF

3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55:  -0.01000000 Waves

2022.06.05 22:36 [2083476] smart account 3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55 > SELF 0.00000000 Waves

{ "type": 13, "id": "8yiYYiPcNkvo72YXtN1uZM9mzb8KSk24GCq8dNmFDcUF", "fee": 1000000, "feeAssetId": null, "timestamp": 1654457787078, "version": 2, "chainId": 84, "sender": "3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55", "senderPublicKey": "EK4tAXbeXpEJhAvZH4VHPBKw1A8dREMduJWrs1q6LgUs", "proofs": [ "36bHonQ3oDJ27pzkb2pLHsdUZBrSXPbrujVvUpe3WCiBFS73on4YdZx7ok7rz9KFPGaQmohMM1a3Zb2YG7GdFrJ1" ], "script": "base64:AAIFAAAAAAAAAA4IAhIDCgEIEgUKAwgICAAAAAAAAAACAAAAAWkBAAAAC2FyYm9vc0NoZWNrAAAAAQAAAARoYXNoBAAAAAVmb3VuZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAADnRyeElkLWJ5LWhhc2gtBQAAAARoYXNoAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAMJAQAAAAIhPQAAAAIFAAAABWZvdW5kAgAAAAAJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADGhhc2ggZXhpc3RzIAUAAAAFZm91bmQCAAAACiBmb3IgZmlsZSAJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAARZmlsZW5hbWUtYnktaGFzaC0FAAAABGhhc2gCAAAABCBieSAJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIA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TI1NgUAAAAIZmlsZW5hbWUJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABRjZXJ0aWZpZWRCeS1ieS1oYXNoLQUAAAAMZmlsZUFzU0hBMjU2BQAAAAtjZXJ0aWZpZWRCeQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXke8i81", "height": 2083476, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hcm8vFnCiVVtdjwFYHJVGPEgUtd3JB6QtJjVFvufacmy Next: 4ZxQHAqpRXPHcAYPPkb6hgnLU67PeQchTLdA6ya7x4uA Diff:
OldNewDifferences
2323
2424 @Callable(a)
2525 func arboosCertify (f,g,h) = {
26- let i = value(a.transactionId)
26+ let c = {
27+ let d = getString(this, ("trxId-by-hash-" + g))
28+ if ($isInstanceOf(d, "String"))
29+ then {
30+ let e = d
31+ e
32+ }
33+ else ""
34+ }
35+ if ((c != ""))
36+ then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + g))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + g))))
37+ else {
38+ let i = value(a.transactionId)
2739 [StringEntry(("trxId-by-hash-" + g), toBase58String(value(a.transactionId))), StringEntry(("filename-by-hash-" + g), f), StringEntry(("certifiedBy-by-hash-" + g), h)]
40+ }
2841 }
2942
3043
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func arboosCheck (b) = {
88 let c = {
99 let d = getString(this, ("trxId-by-hash-" + b))
1010 if ($isInstanceOf(d, "String"))
1111 then {
1212 let e = d
1313 e
1414 }
1515 else ""
1616 }
1717 if ((c != ""))
1818 then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + b))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + b))))
1919 else throw("hash not found")
2020 }
2121
2222
2323
2424 @Callable(a)
2525 func arboosCertify (f,g,h) = {
26- let i = value(a.transactionId)
26+ let c = {
27+ let d = getString(this, ("trxId-by-hash-" + g))
28+ if ($isInstanceOf(d, "String"))
29+ then {
30+ let e = d
31+ e
32+ }
33+ else ""
34+ }
35+ if ((c != ""))
36+ then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + g))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + g))))
37+ else {
38+ let i = value(a.transactionId)
2739 [StringEntry(("trxId-by-hash-" + g), toBase58String(value(a.transactionId))), StringEntry(("filename-by-hash-" + g), f), StringEntry(("certifiedBy-by-hash-" + g), h)]
40+ }
2841 }
2942
3043
3144 @Verifier(j)
3245 func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
3346

github/deemru/w8io/169f3d6 
23.62 ms