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:AAIFAAAAAAAAABAIAhIDCgEIEgcKBQgICAgIAAAAAAAAAAIAAAABaQEAAAALYXJib29zQ2hlY2sAAAABAAAABGhhc2gEAAAABWZvdW5kBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAOdHJ4SWQtYnktaGFzaC0FAAAABGhhc2gDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAwkBAAAAAiE9AAAAAgUAAAAFZm91bmQCAAAAAAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMaGFzaCBleGlzdHMgBQAAAAVmb3VuZAIAAAAKIGZvciBmaWxlIAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAABFmaWxlbmFtZS1ieS1oYXNoLQUAAAAEaGFzaAIAAAAEIGJ5IAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGh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bWVudFVybAIAAAACIn0FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5tqwvtA==",
"height": 2083658,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8yiYYiPcNkvo72YXtN1uZM9mzb8KSk24GCq8dNmFDcUF
Next: none
Diff:
Old | New | | Differences |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Callable(a) |
---|
25 | | - | func arboosCertify (f,g,h) = { |
---|
| 25 | + | func arboosCertify (f,g,h,i,j) = { |
---|
26 | 26 | | let c = { |
---|
27 | | - | let d = getString(this, ("trxId-by-hash-" + g)) |
---|
| 27 | + | let d = getString(this, ("by-hash-" + g)) |
---|
28 | 28 | | if ($isInstanceOf(d, "String")) |
---|
29 | 29 | | then { |
---|
30 | 30 | | let e = d |
---|
|
33 | 33 | | else "" |
---|
34 | 34 | | } |
---|
35 | 35 | | if ((c != "")) |
---|
36 | | - | then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + g))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + g)))) |
---|
| 36 | + | then throw(((("hash exists " + g) + " for ") + c)) |
---|
37 | 37 | | else { |
---|
38 | | - | let i = value(a.transactionId) |
---|
39 | | - | [StringEntry(("trxId-by-hash-" + g), toBase58String(value(a.transactionId))), StringEntry(("filename-by-hash-" + g), f), StringEntry(("certifiedBy-by-hash-" + g), h)] |
---|
| 38 | + | let k = value(a.transactionId) |
---|
| 39 | + | [StringEntry(("by-hash-" + g), (((((((((("{\"trxId\":\"" + toBase58String(value(a.transactionId))) + "\",\"filename\":\"") + f) + "\",\"certifiedBy\":") + h) + "\",\"certifierId\":\"") + i) + "\",\"url\":\"") + j) + "\"}"))] |
---|
40 | 40 | | } |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
44 | | - | @Verifier(j) |
---|
45 | | - | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
| 44 | + | @Verifier(l) |
---|
| 45 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
46 | 46 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func arboosCheck (b) = { |
---|
8 | 8 | | let c = { |
---|
9 | 9 | | let d = getString(this, ("trxId-by-hash-" + b)) |
---|
10 | 10 | | if ($isInstanceOf(d, "String")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let e = d |
---|
13 | 13 | | e |
---|
14 | 14 | | } |
---|
15 | 15 | | else "" |
---|
16 | 16 | | } |
---|
17 | 17 | | if ((c != "")) |
---|
18 | 18 | | then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + b))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + b)))) |
---|
19 | 19 | | else throw("hash not found") |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Callable(a) |
---|
25 | | - | func arboosCertify (f,g,h) = { |
---|
| 25 | + | func arboosCertify (f,g,h,i,j) = { |
---|
26 | 26 | | let c = { |
---|
27 | | - | let d = getString(this, ("trxId-by-hash-" + g)) |
---|
| 27 | + | let d = getString(this, ("by-hash-" + g)) |
---|
28 | 28 | | if ($isInstanceOf(d, "String")) |
---|
29 | 29 | | then { |
---|
30 | 30 | | let e = d |
---|
31 | 31 | | e |
---|
32 | 32 | | } |
---|
33 | 33 | | else "" |
---|
34 | 34 | | } |
---|
35 | 35 | | if ((c != "")) |
---|
36 | | - | then throw(((((("hash exists " + c) + " for file ") + getStringValue(this, ("filename-by-hash-" + g))) + " by ") + getStringValue(this, ("certifiedBy-by-hash-" + g)))) |
---|
| 36 | + | then throw(((("hash exists " + g) + " for ") + c)) |
---|
37 | 37 | | else { |
---|
38 | | - | let i = value(a.transactionId) |
---|
39 | | - | [StringEntry(("trxId-by-hash-" + g), toBase58String(value(a.transactionId))), StringEntry(("filename-by-hash-" + g), f), StringEntry(("certifiedBy-by-hash-" + g), h)] |
---|
| 38 | + | let k = value(a.transactionId) |
---|
| 39 | + | [StringEntry(("by-hash-" + g), (((((((((("{\"trxId\":\"" + toBase58String(value(a.transactionId))) + "\",\"filename\":\"") + f) + "\",\"certifiedBy\":") + h) + "\",\"certifierId\":\"") + i) + "\",\"url\":\"") + j) + "\"}"))] |
---|
40 | 40 | | } |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
44 | | - | @Verifier(j) |
---|
45 | | - | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
| 44 | + | @Verifier(l) |
---|
| 45 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
46 | 46 | | |
---|