tx · Hee47hqHSerHkFYv38TzHviUUTXnxR8pze5pfAZz4927

3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu:  -0.01400000 Waves

2020.09.03 02:18 [1160424] smart account 3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu > SELF 0.00000000 Waves

{ "type": 13, "id": "Hee47hqHSerHkFYv38TzHviUUTXnxR8pze5pfAZz4927", "fee": 1400000, "feeAssetId": null, "timestamp": 1599088704057, "version": 1, "sender": "3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu", "senderPublicKey": "CBTEuFN6ku1LNaPuGHHTMh2CBb3kPa5D73XXTJvKydun", "proofs": [ "5dkQntpBzgMEE7Q1xfFKbt6vLKfecos9pHNsA4UEhf6TjAz9F5ut4iX4L1A3iywiZdN7cM7q5N7MHYEXDQ8JBbgi" ], "script": "base64:AAIDAAAAAAAAABsIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgAAAANAAAAAAZ1cFZvdGUCAAAABnVwdm90ZQAAAAAIZG93blZvdGUCAAAACGRvd252b3RlAAAAAAxhZG1pbkFkZHJlc3MBAAAAGgFUOLYhWIA2WAg9IJQBVCmgZJeEnZPD9jSLAAAAAAVkeXpJZAEAAAAgfqtB2c5SyrdhjTSeT2NUMvY45D97zjqBcAiarzFPFmsBAAAADWdldFByb2ZpbGVLZXkAAAABAAAAAmlkCQABLAAAAAIFAAAAAmlkAgAAABRfZW50cmVwcmVuZXVyUHJvZmlsZQEAAAAMZ2V0U3RhdHVzS2V5AAAAAQAAAAJpZAkAASwAAAACBQAAAAJpZAIAAAAHX3N0YXR1cwEAAAAKZ2V0Vm90ZUtleQAAAAIAAAACaWQAAAAEdHlwZQMJAAAAAAAAAgUAAAAEdHlwZQIAAAAGdXB2b3RlCQABLAAAAAIFAAAAAmlkAgAAAAdfdXB2b3RlAwkAAAAAAAACBQAAAAR0eXBlAgAAAAhkb3dudm90ZQkAASwAAAACBQAAAAJpZAIAAAAJX2Rvd252b3RlCQAAAgAAAAECAAAA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ZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAADGdldFN0YXR1c0tleQAAAAEFAAAABnZvdGVJZAIAAAAGY2xvc2VkBQAAAANuaWwJAAACAAAAAQIAAAAKSW52YWxpZCBJRAAAAACIRUyu", "chainId": 84, "height": 1160424, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9YWZEUdaZisAJ7AvsaToWskp7nGe4j4RcQqL5iih8Rjo Next: 6fefZLiPHpWLS8x1Q8epL6WFoW7Bv1DKzBf8E7zJZTyv Diff:
OldNewDifferences
77
88 let c = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
99
10-func d (e) = (e + "_entrepreneurProfile")
10+let d = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
11+
12+func e (f) = (f + "_entrepreneurProfile")
1113
1214
13-func f (e) = (e + "_status")
15+func g (f) = (f + "_status")
1416
1517
16-func g (e,h) = if ((h == "upvote"))
17- then (e + "_upvote")
18- else if ((h == "downvote"))
19- then (e + "_downvote")
18+func h (f,i) = if ((i == "upvote"))
19+ then (f + "_upvote")
20+ else if ((i == "downvote"))
21+ then (f + "_downvote")
2022 else throw("Invalid vote type")
2123
2224
23-func i (e) = {
24- let j = getString(this, d(e))
25- if ($isInstanceOf(j, "String"))
25+func j (f) = {
26+ let k = getString(this, e(f))
27+ if ($isInstanceOf(k, "String"))
2628 then {
27- let k = j
29+ let l = k
2830 true
2931 }
3032 else false
3133 }
3234
3335
34-func l (m) = {
35- let j = getString(this, f(m))
36- if ($isInstanceOf(j, "String"))
36+func m (n) = {
37+ let k = getString(this, g(n))
38+ if ($isInstanceOf(k, "String"))
3739 then {
38- let k = j
39- k
40+ let l = k
41+ l
4042 }
4143 else false
4244 }
4345
4446
45-func n (m,o) = {
46- let j = getInteger(this, g(m, o))
47- if ($isInstanceOf(j, "Int"))
47+func o (n,p) = {
48+ let k = getInteger(this, h(n, p))
49+ if ($isInstanceOf(k, "Int"))
4850 then {
49- let k = j
50- k
51+ let l = k
52+ l
5153 }
5254 else throw("Not a valid vote ID")
5355 }
5456
5557
56-func p (q,m) = ((((q + "_") + m) + "_") + "vote")
58+func q (r,n) = ((((r + "_") + n) + "_") + "vote")
5759
5860
59-func r (q,m) = {
60- let j = getString(this, p(q, m))
61- if ($isInstanceOf(j, "String"))
61+func s (r,n) = {
62+ let k = getString(this, q(r, n))
63+ if ($isInstanceOf(k, "String"))
6264 then {
63- let k = j
64- k
65+ let l = k
66+ l
6567 }
6668 else ""
6769 }
6870
6971
70-func s (q,m) = {
71- let t = r(q, m)
72- if ((t == ""))
72+func t (r,n) = {
73+ let u = s(r, n)
74+ if ((u == ""))
7375 then true
7476 else false
7577 }
7678
7779
78-@Callable(u)
79-func addEntrepreneurProfile (v,w,x,y,z) = if ((u.caller.bytes != c))
80+@Callable(v)
81+func addEntrepreneurProfile (w,x,y,z,A) = if ((v.caller.bytes != c))
8082 then throw("Only Dyzrupt Admin can call this dApp function")
8183 else {
82- let A = toBase58String(u.transactionId)
83- WriteSet([DataEntry(d(A), ((((((((v + "_") + w) + "_") + x) + "_") + y) + "_") + z)), DataEntry(g(A, "upvote"), 0), DataEntry(f(A), "open"), DataEntry(g(A, "downvote"), 0)])
84+ let B = toBase58String(v.transactionId)
85+ WriteSet([DataEntry(e(B), ((((((((w + "_") + x) + "_") + y) + "_") + z) + "_") + A)), DataEntry(h(B, "upvote"), 0), DataEntry(g(B), "open"), DataEntry(h(B, "downvote"), 0)])
8486 }
8587
8688
8789
88-@Callable(u)
89-func vote (m,o) = if (s(toBase58String(u.caller.bytes), m))
90- then if (i(m))
91- then if ((l(m) == "open"))
92- then if (if ((o == a))
93- then true
94- else (o == b))
95- then {
96- let B = n(m, o)
97- let C = (B + 1)
98- WriteSet([DataEntry(g(m, o), C), DataEntry(p(toBase58String(u.caller.bytes), m), m)])
99- }
100- else throw("Not a valid vote value")
101- else throw("This profile is not open for voting")
102- else throw("Invalid Profile")
103- else throw("You can't vote twice")
90+@Callable(v)
91+func vote (n,p) = {
92+ let C = extract(v.payment)
93+ if ((C.amount == 0))
94+ then throw("You cannot vote without paying voting fee")
95+ else if ((C.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
96+ then throw("You can only vote with DYZRUPT token")
97+ else if (t(toBase58String(v.caller.bytes), n))
98+ then if (j(n))
99+ then if ((m(n) == "open"))
100+ then if (if ((p == a))
101+ then true
102+ else (p == b))
103+ then {
104+ let D = o(n, p)
105+ let E = (D + 1)
106+ ScriptResult(WriteSet([DataEntry(h(n, p), E), DataEntry(q(toBase58String(v.caller.bytes), n), n)]), TransferSet([ScriptTransfer(this, C.amount, d)]))
107+ }
108+ else throw("Not a valid vote value")
109+ else throw("This profile is not open for voting")
110+ else throw("Invalid Profile")
111+ else throw("You can't vote twice")
112+ }
104113
105114
106115
107-@Callable(u)
108-func openVote (m) = if ((u.caller.bytes != c))
116+@Callable(v)
117+func openVote (n) = if ((v.caller.bytes != c))
109118 then throw("Only Dyzrupt Admin can call this dApp function")
110- else if (i(m))
111- then WriteSet([DataEntry(f(m), "open")])
119+ else if (j(n))
120+ then WriteSet([DataEntry(g(n), "open")])
112121 else throw("Invalid ID")
113122
114123
115124
116-@Callable(u)
117-func closeVote (m) = if ((u.caller.bytes != c))
125+@Callable(v)
126+func closeVote (n) = if ((v.caller.bytes != c))
118127 then throw("Only Dyzrupt Admin can call this dApp function")
119- else if (i(m))
120- then WriteSet([DataEntry(f(m), "closed")])
128+ else if (j(n))
129+ then WriteSet([DataEntry(g(n), "closed")])
121130 else throw("Invalid ID")
122131
123132
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "upvote"
55
66 let b = "downvote"
77
88 let c = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
99
10-func d (e) = (e + "_entrepreneurProfile")
10+let d = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
11+
12+func e (f) = (f + "_entrepreneurProfile")
1113
1214
13-func f (e) = (e + "_status")
15+func g (f) = (f + "_status")
1416
1517
16-func g (e,h) = if ((h == "upvote"))
17- then (e + "_upvote")
18- else if ((h == "downvote"))
19- then (e + "_downvote")
18+func h (f,i) = if ((i == "upvote"))
19+ then (f + "_upvote")
20+ else if ((i == "downvote"))
21+ then (f + "_downvote")
2022 else throw("Invalid vote type")
2123
2224
23-func i (e) = {
24- let j = getString(this, d(e))
25- if ($isInstanceOf(j, "String"))
25+func j (f) = {
26+ let k = getString(this, e(f))
27+ if ($isInstanceOf(k, "String"))
2628 then {
27- let k = j
29+ let l = k
2830 true
2931 }
3032 else false
3133 }
3234
3335
34-func l (m) = {
35- let j = getString(this, f(m))
36- if ($isInstanceOf(j, "String"))
36+func m (n) = {
37+ let k = getString(this, g(n))
38+ if ($isInstanceOf(k, "String"))
3739 then {
38- let k = j
39- k
40+ let l = k
41+ l
4042 }
4143 else false
4244 }
4345
4446
45-func n (m,o) = {
46- let j = getInteger(this, g(m, o))
47- if ($isInstanceOf(j, "Int"))
47+func o (n,p) = {
48+ let k = getInteger(this, h(n, p))
49+ if ($isInstanceOf(k, "Int"))
4850 then {
49- let k = j
50- k
51+ let l = k
52+ l
5153 }
5254 else throw("Not a valid vote ID")
5355 }
5456
5557
56-func p (q,m) = ((((q + "_") + m) + "_") + "vote")
58+func q (r,n) = ((((r + "_") + n) + "_") + "vote")
5759
5860
59-func r (q,m) = {
60- let j = getString(this, p(q, m))
61- if ($isInstanceOf(j, "String"))
61+func s (r,n) = {
62+ let k = getString(this, q(r, n))
63+ if ($isInstanceOf(k, "String"))
6264 then {
63- let k = j
64- k
65+ let l = k
66+ l
6567 }
6668 else ""
6769 }
6870
6971
70-func s (q,m) = {
71- let t = r(q, m)
72- if ((t == ""))
72+func t (r,n) = {
73+ let u = s(r, n)
74+ if ((u == ""))
7375 then true
7476 else false
7577 }
7678
7779
78-@Callable(u)
79-func addEntrepreneurProfile (v,w,x,y,z) = if ((u.caller.bytes != c))
80+@Callable(v)
81+func addEntrepreneurProfile (w,x,y,z,A) = if ((v.caller.bytes != c))
8082 then throw("Only Dyzrupt Admin can call this dApp function")
8183 else {
82- let A = toBase58String(u.transactionId)
83- WriteSet([DataEntry(d(A), ((((((((v + "_") + w) + "_") + x) + "_") + y) + "_") + z)), DataEntry(g(A, "upvote"), 0), DataEntry(f(A), "open"), DataEntry(g(A, "downvote"), 0)])
84+ let B = toBase58String(v.transactionId)
85+ WriteSet([DataEntry(e(B), ((((((((w + "_") + x) + "_") + y) + "_") + z) + "_") + A)), DataEntry(h(B, "upvote"), 0), DataEntry(g(B), "open"), DataEntry(h(B, "downvote"), 0)])
8486 }
8587
8688
8789
88-@Callable(u)
89-func vote (m,o) = if (s(toBase58String(u.caller.bytes), m))
90- then if (i(m))
91- then if ((l(m) == "open"))
92- then if (if ((o == a))
93- then true
94- else (o == b))
95- then {
96- let B = n(m, o)
97- let C = (B + 1)
98- WriteSet([DataEntry(g(m, o), C), DataEntry(p(toBase58String(u.caller.bytes), m), m)])
99- }
100- else throw("Not a valid vote value")
101- else throw("This profile is not open for voting")
102- else throw("Invalid Profile")
103- else throw("You can't vote twice")
90+@Callable(v)
91+func vote (n,p) = {
92+ let C = extract(v.payment)
93+ if ((C.amount == 0))
94+ then throw("You cannot vote without paying voting fee")
95+ else if ((C.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
96+ then throw("You can only vote with DYZRUPT token")
97+ else if (t(toBase58String(v.caller.bytes), n))
98+ then if (j(n))
99+ then if ((m(n) == "open"))
100+ then if (if ((p == a))
101+ then true
102+ else (p == b))
103+ then {
104+ let D = o(n, p)
105+ let E = (D + 1)
106+ ScriptResult(WriteSet([DataEntry(h(n, p), E), DataEntry(q(toBase58String(v.caller.bytes), n), n)]), TransferSet([ScriptTransfer(this, C.amount, d)]))
107+ }
108+ else throw("Not a valid vote value")
109+ else throw("This profile is not open for voting")
110+ else throw("Invalid Profile")
111+ else throw("You can't vote twice")
112+ }
104113
105114
106115
107-@Callable(u)
108-func openVote (m) = if ((u.caller.bytes != c))
116+@Callable(v)
117+func openVote (n) = if ((v.caller.bytes != c))
109118 then throw("Only Dyzrupt Admin can call this dApp function")
110- else if (i(m))
111- then WriteSet([DataEntry(f(m), "open")])
119+ else if (j(n))
120+ then WriteSet([DataEntry(g(n), "open")])
112121 else throw("Invalid ID")
113122
114123
115124
116-@Callable(u)
117-func closeVote (m) = if ((u.caller.bytes != c))
125+@Callable(v)
126+func closeVote (n) = if ((v.caller.bytes != c))
118127 then throw("Only Dyzrupt Admin can call this dApp function")
119- else if (i(m))
120- then WriteSet([DataEntry(f(m), "closed")])
128+ else if (j(n))
129+ then WriteSet([DataEntry(g(n), "closed")])
121130 else throw("Invalid ID")
122131
123132

github/deemru/w8io/169f3d6 
53.78 ms