tx · FW4FAb82RrzDe9VegNfKsN2Dp6P7p51rFeTa5pTEgzNr

3Mvbw1Sx9xtM6akJrBPorkPpp4B3sJRFPFX:  -0.10000000 Waves

2020.11.14 03:35 [1264326] smart account 3Mvbw1Sx9xtM6akJrBPorkPpp4B3sJRFPFX > SELF 0.00000000 Waves

{ "type": 13, "id": "FW4FAb82RrzDe9VegNfKsN2Dp6P7p51rFeTa5pTEgzNr", "fee": 10000000, "feeAssetId": null, "timestamp": 1605314128219, "version": 2, "chainId": 84, "sender": "3Mvbw1Sx9xtM6akJrBPorkPpp4B3sJRFPFX", "senderPublicKey": "EFfb2ZQ2kJQnnQeHgudF4Fu2ksNzAhonmzpG5RvJdKE4", "proofs": [ "2wzNKx2f1MS7WVC1Dggn58GeoECeGf2hMVXiB3gc22sJXcQ4d2b35K7MCaWaGN5VEUfcGzyF8vwiXnZHmZ1PAX7t" ], "script": "base64:AAIDAAAAAAAAADQIARIECgIICBIDCgEIEgMKAQgSBwoFCAgICAgSBAoCCAgSBAoCCAgSBQoDCAgBEgQKAggIAAAACAEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAABQAAAAN2YWwBAAAAB2lzT3duZXIAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwEAAAAIZ2V0R3JvdXAAAAAABAAAAAN2YWwEA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VzAgAAAAhhcHByb3ZlZAUAAAADbmlsAAAAADomNAM=", "height": 1264326, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AUQEquEToGz5WeNjM3Fy1JneSm8oKEauGdX6ckoC9pev Next: FJ9tJmVLKcjKgEM6uNVFeLKoFjiNvKhnXw95wgr4koDa Diff:
OldNewDifferences
131131 }
132132 let F = ((E + ";") + toString(q.caller))
133133 let G = drop(toString(q.caller), 25)
134- ScriptResult(WriteSet([DataEntry((((("template_" + n) + "_app_") + G) + "_status"), "requested"), DataEntry((((("template_" + n) + "_app_") + G) + "_details"), C), DataEntry((((("template_" + n) + "_app_") + G) + "_id"), toString(q.caller)), DataEntry(D, F)]), TransferSet([ScriptTransfer(q.caller, 1000000, unit)]))
134+ ScriptResult(WriteSet([DataEntry((((("template_" + n) + "_app_") + G) + "_status"), "requested"), DataEntry((((("template_" + n) + "_app_") + G) + "_details"), C), DataEntry((((("template_" + n) + "_app_") + G) + "_id"), toString(q.caller)), DataEntry(D, F)]), TransferSet([ScriptTransfer(q.caller, 1400000, unit)]))
135135 }
136136
137137
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getInteger(this, b)
77 if ($isInstanceOf(d, "Int"))
88 then {
99 let e = d
1010 e
1111 }
1212 else 0
1313 }
1414 c
1515 }
1616
1717
1818 func f (b) = {
1919 let c = {
2020 let d = getString(this, b)
2121 if ($isInstanceOf(d, "String"))
2222 then {
2323 let e = d
2424 e
2525 }
2626 else ""
2727 }
2828 c
2929 }
3030
3131
3232 func g (h) = (h == this)
3333
3434
3535 func i () = {
3636 let c = {
3737 let d = getString(this, "working_members")
3838 if ($isInstanceOf(d, "String"))
3939 then {
4040 let e = d
4141 e
4242 }
4343 else ""
4444 }
4545 c
4646 }
4747
4848
4949 func j (k) = {
5050 let c = {
5151 let d = getString(this, (("center_" + k) + "_members"))
5252 if ($isInstanceOf(d, "String"))
5353 then {
5454 let e = d
5555 e
5656 }
5757 else ""
5858 }
5959 c
6060 }
6161
6262
6363 func l (m,n) = (f((("template_" + n) + "_proposed")) == toString(m))
6464
6565
6666 func o (m) = (a(("working_member_" + toString(m))) > 0)
6767
6868
6969 func p (q,n) = {
7070 let k = f((("template_" + n) + "_center"))
7171 (a(((("center_" + k) + "_member_") + toString(q.caller))) > 0)
7272 }
7373
7474
7575 @Callable(q)
7676 func addDAOMember (r,k) = if (!(g(q.caller)))
7777 then throw("access only to the DAO owner")
7878 else {
7979 let s = j(k)
8080 let t = ((s + ";") + r)
8181 let u = a((("center_" + k) + "_size"))
8282 let v = (u + 1)
8383 WriteSet([DataEntry((("center_" + k) + "_members"), t), DataEntry((("center_" + k) + "_size"), v), DataEntry(((("center_" + k) + "_member_") + r), 1)])
8484 }
8585
8686
8787
8888 @Callable(q)
8989 func addGroupMember (r) = if (!(g(q.caller)))
9090 then throw("access only to the DAO owner")
9191 else {
9292 let s = i()
9393 let t = ((s + ";") + r)
9494 let u = a("working_size")
9595 let v = (u + 1)
9696 WriteSet([DataEntry("working_members", t), DataEntry("working_size", v), DataEntry(("working_member_" + r), 1)])
9797 }
9898
9999
100100
101101 @Callable(q)
102102 func proposeTemplate (w) = WriteSet([DataEntry((("template_" + toBase58String(q.transactionId)) + "_title"), w), DataEntry((("template_" + toBase58String(q.transactionId)) + "_status"), "proposed"), DataEntry((("template_" + toBase58String(q.transactionId)) + "_proposed"), toString(q.caller))])
103103
104104
105105
106106 @Callable(q)
107107 func addTemplateDetails (n,x,y,z,A) = if (!(l(q.caller, n)))
108108 then throw("author access only")
109109 else WriteSet([DataEntry((("template_" + n) + "_description"), x), DataEntry((("template_" + n) + "_author"), y), DataEntry((("template_" + n) + "_company"), z), DataEntry((("template_" + n) + "_link"), A)])
110110
111111
112112
113113 @Callable(q)
114114 func acceptTemplate (n,B) = if (!(o(q.caller)))
115115 then throw("government working group access only")
116116 else WriteSet([DataEntry((("template_" + n) + "_center"), B), DataEntry((("template_" + n) + "_status"), "accepted")])
117117
118118
119119
120120 @Callable(q)
121121 func requestCertificate (n,C) = {
122122 let D = (("template_" + n) + "_applicants")
123123 let E = {
124124 let d = getString(this, D)
125125 if ($isInstanceOf(d, "String"))
126126 then {
127127 let e = d
128128 e
129129 }
130130 else ""
131131 }
132132 let F = ((E + ";") + toString(q.caller))
133133 let G = drop(toString(q.caller), 25)
134- ScriptResult(WriteSet([DataEntry((((("template_" + n) + "_app_") + G) + "_status"), "requested"), DataEntry((((("template_" + n) + "_app_") + G) + "_details"), C), DataEntry((((("template_" + n) + "_app_") + G) + "_id"), toString(q.caller)), DataEntry(D, F)]), TransferSet([ScriptTransfer(q.caller, 1000000, unit)]))
134+ ScriptResult(WriteSet([DataEntry((((("template_" + n) + "_app_") + G) + "_status"), "requested"), DataEntry((((("template_" + n) + "_app_") + G) + "_details"), C), DataEntry((((("template_" + n) + "_app_") + G) + "_id"), toString(q.caller)), DataEntry(D, F)]), TransferSet([ScriptTransfer(q.caller, 1400000, unit)]))
135135 }
136136
137137
138138
139139 @Callable(q)
140140 func voteForApplicant (n,H,I) = if (if ((I != -1))
141141 then (I != 1)
142142 else false)
143143 then throw("vote value needs to be 1 or -1")
144144 else if (!(p(q, n)))
145145 then throw("this member is not certified to vote")
146146 else {
147147 let J = (drop(toString(q.caller), 25) + drop(H, 25))
148148 let K = ((("template_" + n) + "_app_") + J)
149149 let L = a(K)
150150 if ((L != 0))
151151 then throw("this member has already voted on this applicant")
152152 else {
153153 let M = (((("template_" + n) + "_app_") + H) + "_votes")
154154 let N = (((("template_" + n) + "_app_") + H) + "_score")
155155 let O = (1 + a(M))
156156 let P = (I + a(N))
157157 WriteSet([DataEntry(K, I), DataEntry(N, P)])
158158 }
159159 }
160160
161161
162162
163163 @Callable(q)
164164 func finishApplicantVoting (n,H) = {
165165 func Q (n,H) = {
166166 let R = (("template_" + n) + "_min_score")
167167 let S = (((("template_" + n) + "_app_") + H) + "_score")
168168 let T = a(S)
169169 if ((T > 0))
170170 then true
171171 else throw(("not enough votes to make decision on " + H))
172172 }
173173
174174 if (!(Q(n, H)))
175175 then throw("not enough experts voted to issue certificate")
176176 else WriteSet([DataEntry((((("template_" + n) + "_app_") + H) + "_status"), "approved")])
177177 }
178178
179179

github/deemru/w8io/169f3d6 
42.43 ms