tx · BckVET91Ypte8GwmgfJiai4u6Zo2mzCMjjgojZsoQUJr

3N7yL6nhsHwrkLfxpWGjM39hFj4qo97bCdZ:  -0.01000000 Waves

2023.10.12 08:37 [2794972] smart account 3N7yL6nhsHwrkLfxpWGjM39hFj4qo97bCdZ > SELF 0.00000000 Waves

{ "type": 13, "id": "BckVET91Ypte8GwmgfJiai4u6Zo2mzCMjjgojZsoQUJr", "fee": 1000000, "feeAssetId": null, "timestamp": 1697089095370, "version": 2, "chainId": 84, "sender": "3N7yL6nhsHwrkLfxpWGjM39hFj4qo97bCdZ", "senderPublicKey": "HhtVcCt3Zxp8Tuqw9d9Er8kVG8AhbCuxygMA2pTYqrj4", "proofs": [ "5S1ckLUfgtQ5wspRcd7VdapWDgK9NvRNQoXqhDAcR6D1Ky99FB66HSypXJCEZRyEUeMXxL6YiWnWKNCkV1twE8w4" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIICBIFCgMICAgSBwoFCAgICAgAAAAWAAAAAAdWRVJTSU9OAgAAAAUxLjAuMAAAAAAOU1RBVFVTX1BFTkRJTkcCAAAAB1BFTkRJTkcAAAAADlNUQVRVU19GTEFHR0VEAgAAAAdGTEFHR0VEAAAAAA5TVEFUVVNfQ0xFQVJFRAIAAAAHQ0xFQVJFRAAAAAAUQVJUV09SS19GTEFHX0NPTlNFTlQCAAAAB0NPTlNFTlQAAAAAEkFSVFdPUktfRkxBR19SRVNFVAIAAAAAAAAAABxBUlRXT1JLX0ZMQUdfQ0hBTkdFX1JFUVVJUkVEAgAAAA9DSEFOR0VfUkVRVUlSRUQAAAAAFEFSVFdPUktfRkxBR19GTEFHR0VEAgAAAAdGTEFHR0VEAAAAABRBUlRXT1JLX0ZMQUdfSUxMRUdBTAIAAAAHSUxMRUdBTAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAAAAAALYXJ0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RyAgAAAA5fY29tbWVudF9hZG1pbgUAAAAHY29tbWVudAUAAAADbmlsBQAAABFyZXdhcmRfYW5kX3VwZGF0ZQkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXoFm6Y=", "height": 2794972, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9qZAabPwAjjur13t3TsxGPqnzGwq7Je6ngRSVZomyebW Next: DaoxnG2mPD5jvTsMxwsVKrCr6QYMWggMqgZYhY1VgSaz Diff:
OldNewDifferences
7474 then throw("No art matching for this address")
7575 else if ((j(q(p, r)) != ""))
7676 then throw("Already reported.")
77- else [StringEntry(q(p, r), ((b + "_") + o)), StringEntry((q(p, r) + "_comment_reporter"), D)]
77+ else [StringEntry(q(p, r), (((b + "_") + o) + "_0")), StringEntry((q(p, r) + "_comment_reporter"), D)]
7878 }
7979
8080
9191 else {
9292 let K = A(("certification_fee_" + toBase58String(w)))
9393 let L = split(J, "_")
94- let M = if ((G == c))
95- then [ScriptTransfer(Address(fromBase58String(L[1])), K, w)]
96- else nil
94+ let M = if (if ((G == c))
95+ then (L[2] == "0")
96+ else false)
97+ then [ScriptTransfer(Address(fromBase58String(L[1])), K, w), StringEntry(q(p, r), ((((G + "_") + L[1]) + "_") + toString(K)))]
98+ else [StringEntry(q(p, r), ((((G + "_") + L[1]) + "_") + L[2]))]
9799 if (!(containsElement([e, f, g, h, i], I)))
98100 then throw("status_on_art_dapp unknown")
99101 else {
100- let N = if ((G == c))
101- then [invoke(l, "flagArtwork", [p, r, G, H], nil)]
102- else nil
102+ let N = invoke(l, "flagArtwork", [p, r, G, H], nil)
103103 if ((N == N))
104104 then {
105105 let O = y(z)
106106 let F = O._1
107107 let o = O._2
108108 if (containsElement([x, toString(this)], o))
109- then [StringEntry(q(p, r), G), StringEntry((q(p, r) + "_comment_admin"), H)]
109+ then ([StringEntry((q(p, r) + "_comment_admin"), H)] ++ M)
110110 else throw("Not allowed")
111111 }
112112 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0.0"
55
66 let b = "PENDING"
77
88 let c = "FLAGGED"
99
1010 let d = "CLEARED"
1111
1212 let e = "CONSENT"
1313
1414 let f = ""
1515
1616 let g = "CHANGE_REQUIRED"
1717
1818 let h = "FLAGGED"
1919
2020 let i = "ILLEGAL"
2121
2222 func j (k) = valueOrElse(getString(this, k), "")
2323
2424
2525 let l = value(addressFromString(j("conf_artwork_dapp")))
2626
2727 func m (k) = valueOrElse(getString(l, k), "")
2828
2929
3030 func n (o,p) = ((("art_name_" + p) + "_") + o)
3131
3232
3333 func q (p,r) = ((p + "_") + r)
3434
3535
3636 let s = valueOrElse(getBoolean(this, "conf_dapp_is_running"), true)
3737
3838 let t = valueOrElse(getString(this, "conf_maintenance_msg"), "")
3939
4040 let u = value(addressFromString(j("conf_oracle_fee")))
4141
4242 let v = j("conf_accepted_asset_ART")
4343
4444 let w = fromBase58String(v)
4545
4646 let x = j("conf_admin_1")
4747
4848 func y (z) = if (!(s))
4949 then throw(t)
5050 else $Tuple2(toBase58String(z.transactionId), toBase58String(z.caller.bytes))
5151
5252
5353 func A (k) = valueOrErrorMessage(getInteger(u, k), "Integer undefine or 0 in oracle")
5454
5555
5656 @Callable(B)
5757 func setConf (k,C) = {
5858 let o = toString(B.caller)
5959 if (containsElement([x, toString(this)], o))
6060 then if (contains(k, "conf_"))
6161 then [StringEntry(k, C)]
6262 else throw("Entries starting with conf_ only")
6363 else throw("You are not allowed to change this")
6464 }
6565
6666
6767
6868 @Callable(z)
6969 func report (p,r,D) = {
7070 let E = y(z)
7171 let F = E._1
7272 let o = E._2
7373 if ((m(n(r, p)) == ""))
7474 then throw("No art matching for this address")
7575 else if ((j(q(p, r)) != ""))
7676 then throw("Already reported.")
77- else [StringEntry(q(p, r), ((b + "_") + o)), StringEntry((q(p, r) + "_comment_reporter"), D)]
77+ else [StringEntry(q(p, r), (((b + "_") + o) + "_0")), StringEntry((q(p, r) + "_comment_reporter"), D)]
7878 }
7979
8080
8181
8282 @Callable(z)
8383 func processReport (p,r,G,H,I) = if ((m(n(r, p)) == ""))
8484 then throw("No art matching for this address")
8585 else if (!(containsElement([d, c], G)))
8686 then throw("Status not found")
8787 else {
8888 let J = j(q(p, r))
8989 if ((J == ""))
9090 then throw("Report not found.")
9191 else {
9292 let K = A(("certification_fee_" + toBase58String(w)))
9393 let L = split(J, "_")
94- let M = if ((G == c))
95- then [ScriptTransfer(Address(fromBase58String(L[1])), K, w)]
96- else nil
94+ let M = if (if ((G == c))
95+ then (L[2] == "0")
96+ else false)
97+ then [ScriptTransfer(Address(fromBase58String(L[1])), K, w), StringEntry(q(p, r), ((((G + "_") + L[1]) + "_") + toString(K)))]
98+ else [StringEntry(q(p, r), ((((G + "_") + L[1]) + "_") + L[2]))]
9799 if (!(containsElement([e, f, g, h, i], I)))
98100 then throw("status_on_art_dapp unknown")
99101 else {
100- let N = if ((G == c))
101- then [invoke(l, "flagArtwork", [p, r, G, H], nil)]
102- else nil
102+ let N = invoke(l, "flagArtwork", [p, r, G, H], nil)
103103 if ((N == N))
104104 then {
105105 let O = y(z)
106106 let F = O._1
107107 let o = O._2
108108 if (containsElement([x, toString(this)], o))
109- then [StringEntry(q(p, r), G), StringEntry((q(p, r) + "_comment_admin"), H)]
109+ then ([StringEntry((q(p, r) + "_comment_admin"), H)] ++ M)
110110 else throw("Not allowed")
111111 }
112112 else throw("Strict value is not equal to itself.")
113113 }
114114 }
115115 }
116116
117117
118118 @Verifier(P)
119119 func Q () = sigVerify(P.bodyBytes, P.proofs[0], P.senderPublicKey)
120120

github/deemru/w8io/026f985 
27.05 ms