tx · E4aoksrWnw8boxv9HHcMfHyseXHTXVpm2VcnyJ1t94db

3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu:  -0.01400000 Waves

2020.09.12 22:16 [1174494] smart account 3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu > SELF 0.00000000 Waves

{ "type": 13, "id": "E4aoksrWnw8boxv9HHcMfHyseXHTXVpm2VcnyJ1t94db", "fee": 1400000, "feeAssetId": null, "timestamp": 1599938193476, "version": 2, "chainId": 84, "sender": "3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu", "senderPublicKey": "CBTEuFN6ku1LNaPuGHHTMh2CBb3kPa5D73XXTJvKydun", "proofs": [ "3f7kEeXV1Gkio7bfsNH7HqfZQRMV5Ab1oG8o6o466emnkbkQDp21rU4RXFQMjyRL8ssaNqmJ2Gi9bkug3NGvUBuo" ], "script": "base64:AAIDAAAAAAAAACAIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgSAwoBCAAAAA8AAAAABnVwVm90ZQIAAAAGdXB2b3RlAAAAAA1hZG1pbkFkZHJlc3MxAQAAABoBVDi2IViANlgIPSCUAVQpoGSXhJ2Tw/Y0iwAAAAANYWRtaW5BZGRyZXNzMgEAAAAaAVTlj1A9878YQ058BBZUI9QC+LwgFva37DoAAAAADWFkbWluQWRkcmVzczMBAAAAGgFUPo0bC5weIFiGP3KzAhxqwrizqd9EMgoVAAAAAAVkeXpJZAEAAAAgfqtB2c5SyrdhjTSeT2NUMvY45D97zjqBcAiarzFPFmsBAAAADWdldFByb2ZpbGVLZXkAAAABAAAAAmlkCQABLAAAAAIFAAAAAmlkAgAAABRfZW50cmVwcmVuZXVyUHJvZmlsZQEAAAAMZ2V0U3RhdHVzS2V5AAAAAQAAAAJpZAkAASwAAAACBQAAAAJpZAIAAAAHX3N0YXR1cwEAAAARZ2V0Vm90ZXJBbW91bnRLZXkAAAACAAAAAmlkAAAABnZvdGVJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAACaWQCAAA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AAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQkAAAIAAAABAgAAACVZb3UgZGlkbid0IHZvdGUgZm9yIHRoaXMgZW50cmVwcmVuZXVyAwkAAAAAAAACBQAAAA1jdXJyZW50QW1vdW50AAAAAAAAAAAACQAAAgAAAAECAAAAJFNlZW1zIHlvdSBoYXZlIHByZXZpb3VzbHkgd2l0aGRyYXduLgkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADWN1cnJlbnRBbW91bnQFAAAABWR5eklkBQAAAANuaWwJAAACAAAAAQIAAAA2Q2FuJ3Qgd2l0aGRyYXcgdm90ZSBhbW91bnQgd2hpbGUgdm90aW5nIGlzIHN0aWxsIG9wZW4uCQAAAgAAAAECAAAAJVlvdSBkaWRuJ3Qgdm90ZSBmb3IgdGhpcyBlbnRyZXByZW5ldXIAAAAAItckpA==", "height": 1174494, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8zETtHEGFeQC7sj9BVa8oWJXRAake1TwX9zFQgnECrps Next: AnVCgpToNVwyGpZRvYo3Strh62KTY7AdapAz68vLYitB Diff:
OldNewDifferences
77
88 let c = base58'3NAqtCScgFynCuRLUoXm2BHTdu8suatCe7b'
99
10-let d = base58'3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu'
10+let d = base58'3Mucpi1K4FMVrZKnYEgjxQf5DkkBX7QrHoJ'
1111
1212 let e = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
1313
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "upvote"
55
66 let b = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
77
88 let c = base58'3NAqtCScgFynCuRLUoXm2BHTdu8suatCe7b'
99
10-let d = base58'3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu'
10+let d = base58'3Mucpi1K4FMVrZKnYEgjxQf5DkkBX7QrHoJ'
1111
1212 let e = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
1313
1414 func f (g) = (g + "_entrepreneurProfile")
1515
1616
1717 func h (g) = (g + "_status")
1818
1919
2020 func i (g,j) = (((g + "_") + j) + "_amount")
2121
2222
2323 func k (g,l) = if ((l == "upvote"))
2424 then (g + "_upvote")
2525 else throw("Invalid vote type")
2626
2727
2828 func m (g) = {
2929 let n = getString(this, f(g))
3030 if ($isInstanceOf(n, "String"))
3131 then {
3232 let o = n
3333 true
3434 }
3535 else false
3636 }
3737
3838
3939 func p (j) = {
4040 let n = getString(this, h(j))
4141 if ($isInstanceOf(n, "String"))
4242 then {
4343 let o = n
4444 o
4545 }
4646 else false
4747 }
4848
4949
5050 func q (j,r) = {
5151 let n = getInteger(this, k(j, r))
5252 if ($isInstanceOf(n, "Int"))
5353 then {
5454 let o = n
5555 o
5656 }
5757 else throw("Not a valid vote ID")
5858 }
5959
6060
6161 func s (t,j) = ((((t + "_") + j) + "_") + "vote")
6262
6363
6464 func u (t,j) = {
6565 let n = getString(this, s(t, j))
6666 if ($isInstanceOf(n, "String"))
6767 then {
6868 let o = n
6969 o
7070 }
7171 else ""
7272 }
7373
7474
7575 func v (t,j) = {
7676 let w = u(t, j)
7777 if ((w == ""))
7878 then true
7979 else false
8080 }
8181
8282
8383 @Callable(x)
8484 func addEntrepreneurProfile (y,z,A,B,C) = if (if (if ((x.caller.bytes == b))
8585 then true
8686 else (x.caller.bytes == c))
8787 then true
8888 else (x.caller.bytes == d))
8989 then {
9090 let D = toBase58String(x.transactionId)
9191 WriteSet([DataEntry(f(D), ((((((((y + "_") + z) + "_") + A) + "_") + B) + "_") + C)), DataEntry(k(D, "upvote"), 0), DataEntry(h(D), "open")])
9292 }
9393 else throw("Only Dyzrupt Admin can call this dApp function")
9494
9595
9696
9797 @Callable(x)
9898 func vote (j,r) = {
9999 let E = extract(x.payment)
100100 let w = toBase58String(x.caller.bytes)
101101 if ((E.amount == 0))
102102 then throw("You cannot vote without paying voting fee")
103103 else if ((E.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
104104 then throw("You can only vote with DYZRUPT token")
105105 else if (v(w, j))
106106 then if (m(j))
107107 then if ((p(j) == "open"))
108108 then if ((r == a))
109109 then {
110110 let F = q(j, r)
111111 let G = (F + 1)
112112 ScriptResult(WriteSet([DataEntry(k(j, r), G), DataEntry(s(w, j), j), DataEntry(i(w, j), E.amount)]), TransferSet([ScriptTransfer(this, E.amount, e)]))
113113 }
114114 else throw("Not a valid vote value")
115115 else throw("This profile is not open for voting")
116116 else throw("Invalid Profile")
117117 else throw("You can't vote twice")
118118 }
119119
120120
121121
122122 @Callable(x)
123123 func openVote (j) = if (if (if ((x.caller.bytes == b))
124124 then true
125125 else (x.caller.bytes == c))
126126 then true
127127 else (x.caller.bytes == d))
128128 then if (m(j))
129129 then WriteSet([DataEntry(h(j), "open")])
130130 else throw("Invalid ID")
131131 else throw("Only Dyzrupt Admin can call this dApp function")
132132
133133
134134
135135 @Callable(x)
136136 func closeVote (j) = if (if (if ((x.caller.bytes == b))
137137 then true
138138 else (x.caller.bytes == c))
139139 then true
140140 else (x.caller.bytes == d))
141141 then if (m(j))
142142 then WriteSet([DataEntry(h(j), "closed")])
143143 else throw("Invalid ID")
144144 else throw("Only Dyzrupt Admin can call this dApp function")
145145
146146
147147
148148 @Callable(x)
149149 func withdraw (j) = {
150150 let w = toBase58String(x.caller.bytes)
151151 if ((u(w, j) != ""))
152152 then if ((p(j) == "closed"))
153153 then {
154154 let H = i(w, j)
155155 let I = {
156156 let n = getInteger(this, H)
157157 if ($isInstanceOf(n, "Int"))
158158 then {
159159 let o = n
160160 o
161161 }
162162 else throw("You didn't vote for this entrepreneur")
163163 }
164164 if ((I == 0))
165165 then throw("Seems you have previously withdrawn.")
166166 else ScriptResult(WriteSet([DataEntry(H, 0)]), TransferSet([ScriptTransfer(x.caller, I, e)]))
167167 }
168168 else throw("Can't withdraw vote amount while voting is still open.")
169169 else throw("You didn't vote for this entrepreneur")
170170 }
171171
172172

github/deemru/w8io/169f3d6 
28.57 ms