tx · FdywDxXeE9Pqgcnj9SKDcpjkjmE4HwwbJiionQwXu73k
3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55: -0.01000000 Waves
2022.06.05 21:40 [2083428] smart account 3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55 > SELF 0.00000000 Waves
{
"type": 13,
"id": "FdywDxXeE9Pqgcnj9SKDcpjkjmE4HwwbJiionQwXu73k",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1654454425673,
"version": 2,
"chainId": 84,
"sender": "3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55",
"senderPublicKey": "EK4tAXbeXpEJhAvZH4VHPBKw1A8dREMduJWrs1q6LgUs",
"proofs": [
"2Go3UW5CWiydvznK1k1tuUvhzm9jNJBmXFMKvdzg2FumrQ4S5rZ27Hz7DNLQ5ThC34oPm27DDwuEwVr6qCfAVrdK"
],
"script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAgAAAABAQAAAAthcmJvb3NDaGVjawAAAAEAAAAEaGFzaAQAAAAHJG1hdGNoMAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAdieUhhc2gtBQAAAARoYXNoAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAAAAAQAAAAFpAQAAAA1hcmJvb3NDZXJ0aWZ5AAAAAwAAAAhmaWxlbmFtZQAAAAxmaWxlQXNTSEEyNTYAAAALY2VydGlmaWVkQnkJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABFmaWxlbmFtZS1ieS1oYXNoLQUAAAAMZmlsZUFzU0hBMjU2BQAAAAhmaWxlbmFtZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAFGNlcnRpZmllZEJ5LWJ5LWhhc2gtBQAAAAxmaWxlQXNTSEEyNTYFAAAAC2NlcnRpZmllZEJ5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRY8Vbs=",
"height": 2083428,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GrdAscrZ36UMaEs3yNQtTZ1bj2be1K4ruEb1k8gnM4jf
Next: AT8dBmrZbie7P3SkaWu1KMbvbhZQ1iRiMbYcHKQbXa7u
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func arboosCheck (hash) = match getStringValue(this, ("byHash-" + hash)) { |
---|
| 5 | + | case a: String => |
---|
| 6 | + | a |
---|
| 7 | + | case _ => |
---|
| 8 | + | false |
---|
| 9 | + | } |
---|
4 | 10 | | |
---|
5 | 11 | | |
---|
6 | 12 | | @Callable(i) |
---|
7 | | - | func ArboosFileCertifier (filename,fileAsSHA256,certifiedBy) = [StringEntry("filename", filename), StringEntry("hash", fileAsSHA256), StringEntry("certifiedBy", certifiedBy)] |
---|
| 13 | + | func arboosCertify (filename,fileAsSHA256,certifiedBy) = [StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)] |
---|
8 | 14 | | |
---|
9 | 15 | | |
---|
10 | 16 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func arboosCheck (hash) = match getStringValue(this, ("byHash-" + hash)) { |
---|
| 5 | + | case a: String => |
---|
| 6 | + | a |
---|
| 7 | + | case _ => |
---|
| 8 | + | false |
---|
| 9 | + | } |
---|
4 | 10 | | |
---|
5 | 11 | | |
---|
6 | 12 | | @Callable(i) |
---|
7 | | - | func ArboosFileCertifier (filename,fileAsSHA256,certifiedBy) = [StringEntry("filename", filename), StringEntry("hash", fileAsSHA256), StringEntry("certifiedBy", certifiedBy)] |
---|
| 13 | + | func arboosCertify (filename,fileAsSHA256,certifiedBy) = [StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)] |
---|
8 | 14 | | |
---|
9 | 15 | | |
---|
10 | 16 | | @Verifier(tx) |
---|
11 | 17 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
12 | 18 | | |
---|