tx · 4ZxQHAqpRXPHcAYPPkb6hgnLU67PeQchTLdA6ya7x4uA

3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55:  -0.01000000 Waves

2022.06.06 01:39 [2083658] smart account 3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55 > SELF 0.00000000 Waves

{ "type": 13, "id": "4ZxQHAqpRXPHcAYPPkb6hgnLU67PeQchTLdA6ya7x4uA", "fee": 1000000, "feeAssetId": null, "timestamp": 1654468798002, "version": 2, "chainId": 84, "sender": "3N1Yvim93pdUR3fP1znzTYEhKnsb8fpqU55", "senderPublicKey": "EK4tAXbeXpEJhAvZH4VHPBKw1A8dREMduJWrs1q6LgUs", "proofs": [ "21dcAMjL7UhU5U6zN6WQopxj2cEc4xeU77yqLQfPr2nGUv2YPKSKcvvrsFh5qu2aKk2e2yJEfWWFGHtZaVdptmVV" ], "script": "base64:AAIFAAAAAAAAABAIAhIDCgEIEgcKBQgICAgIAAAAAAAAAAIAAAABaQEAAAALYXJib29zQ2hlY2sAAAABAAAABGhhc2gEAAAABWZvdW5kBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAOdHJ4SWQtYnktaGFzaC0FAAAABGhhc2gDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAwkBAAAAAiE9AAAAAgUAAAAFZm91bmQCAAAAAAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMaGFzaCBleGlzdHMgBQAAAAVmb3VuZAIAAAAKIGZvciBmaWxlIAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAABFmaWxlbmFtZS1ieS1oYXNoLQUAAAAEaGFzaAIAAAAEIGJ5IAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAA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AAAACIn0FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5tqwvtA==", "height": 2083658, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8yiYYiPcNkvo72YXtN1uZM9mzb8KSk24GCq8dNmFDcUF Next: none Diff:
OldNewDifferences
1919
2020
2121 @Callable(i)
22-func arboosCertify (filename,fileAsSHA256,certifiedBy) = {
23- let found = match getString(this, ("trxId-by-hash-" + fileAsSHA256)) {
22+func arboosCertify (filename,fileAsSHA256,certifiedBy,certifierId,documentUrl) = {
23+ let found = match getString(this, ("by-hash-" + fileAsSHA256)) {
2424 case a: String =>
2525 a
2626 case _ =>
2727 ""
2828 }
2929 if ((found != ""))
30- then throw(((((("hash exists " + found) + " for file ") + getStringValue(this, ("filename-by-hash-" + fileAsSHA256))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + fileAsSHA256))))
30+ then throw(((("hash exists " + fileAsSHA256) + " for ") + found))
3131 else {
3232 let id = value(i.transactionId)
33-[StringEntry(("trxId-by-hash-" + fileAsSHA256), toBase58String(value(i.transactionId))), StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)]
33+[StringEntry(("by-hash-" + fileAsSHA256), (((((((((("{\"trxId\":\"" + toBase58String(value(i.transactionId))) + "\",\"filename\":\"") + filename) + "\",\"certifiedBy\":") + certifiedBy) + "\",\"certifierId\":\"") + certifierId) + "\",\"url\":\"") + documentUrl) + "\"}"))]
3434 }
3535 }
3636
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func arboosCheck (hash) = {
88 let found = match getString(this, ("trxId-by-hash-" + hash)) {
99 case a: String =>
1010 a
1111 case _ =>
1212 ""
1313 }
1414 if ((found != ""))
1515 then throw(((((("hash exists " + found) + " for file ") + getStringValue(this, ("filename-by-hash-" + hash))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + hash))))
1616 else throw("hash not found")
1717 }
1818
1919
2020
2121 @Callable(i)
22-func arboosCertify (filename,fileAsSHA256,certifiedBy) = {
23- let found = match getString(this, ("trxId-by-hash-" + fileAsSHA256)) {
22+func arboosCertify (filename,fileAsSHA256,certifiedBy,certifierId,documentUrl) = {
23+ let found = match getString(this, ("by-hash-" + fileAsSHA256)) {
2424 case a: String =>
2525 a
2626 case _ =>
2727 ""
2828 }
2929 if ((found != ""))
30- then throw(((((("hash exists " + found) + " for file ") + getStringValue(this, ("filename-by-hash-" + fileAsSHA256))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + fileAsSHA256))))
30+ then throw(((("hash exists " + fileAsSHA256) + " for ") + found))
3131 else {
3232 let id = value(i.transactionId)
33-[StringEntry(("trxId-by-hash-" + fileAsSHA256), toBase58String(value(i.transactionId))), StringEntry(("filename-by-hash-" + fileAsSHA256), filename), StringEntry(("certifiedBy-by-hash-" + fileAsSHA256), certifiedBy)]
33+[StringEntry(("by-hash-" + fileAsSHA256), (((((((((("{\"trxId\":\"" + toBase58String(value(i.transactionId))) + "\",\"filename\":\"") + filename) + "\",\"certifiedBy\":") + certifiedBy) + "\",\"certifierId\":\"") + certifierId) + "\",\"url\":\"") + documentUrl) + "\"}"))]
3434 }
3535 }
3636
3737
3838 @Verifier(tx)
3939 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4040

github/deemru/w8io/026f985 
38.85 ms