tx · 9dubzywNA4m8pF9XxhMVVNneKANMtUbG3Kk2xjq2x1Jf 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW: -0.14000000 Waves 2023.05.10 13:50 [2571693] smart account 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW > SELF 0.00000000 Waves
{ "type": 13, "id": "9dubzywNA4m8pF9XxhMVVNneKANMtUbG3Kk2xjq2x1Jf", "fee": 14000000, "feeAssetId": null, "timestamp": 1683715832858, "version": 2, "chainId": 84, "sender": "3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW", "senderPublicKey": "2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj", "proofs": [ "DV3XUN5w8gzUAGoCiPNRNtGwNwBZmKJkqjuBDG8pn4SUPdp7Gx9BHcs8dMnXmJZHfH75QtRntdipxwvgzXG6dbD", "65k5fUwzQkbQBgHF5cutJH1xvsC33M5HqmwhrQ96rnzBRqQiqz9tq3XEc3pnUUg3SRYfN3BXk1TvL4upqUyHyJme" ], "script": "base64:AAIFAAAAAAAAACgIAhIHCgUBAQEICBIDCgEEEgASBwoFCAgICAgSABIHCgUICAgICBIAAAAAGAAAAAAMYWRtaW5QdWJLZXkxAQAAACAUAgxQsbLOs6wdAAAdZRRh/vm5Euk+/WkV2ql4oEjMCgAAAAAMYWRtaW5QdWJLZXkyAQAAACAUAgxQsbLOs6wdAAAdZRRh/vm5Euk+/WkV2ql4oEjMCgAAAAAMYWRtaW5QdWJLZXkzAQAAACAUAgxQsbLOs6wdAAAdZRRh/vm5Euk+/WkV2ql4oEjMCgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAABFrZXlVc2VyVk9URUFtb3VudAIAAAAMX1ZPVEVfYW1vdW50AA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AAAAB3N1c3BlbmQAAAABAgAAAA9QYXVzZWQgYnkgYWRtaW4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAASYWRtaW5QdWJLZXkxU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAnBxpck=", "height": 2571693, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4yAPm6GUCGmgS283pNqn7yKczHbMkdbRY8nZTFP9hHmF Next: FmtuM473z4x6nWDuhghHf5oKxgBvMm1j1dA3LKazNcuQ Diff:
Old | New | Differences | |
---|---|---|---|
126 | 126 | else { | |
127 | 127 | let newTotalYesVoted = (totalYes - (if ((userVote == true)) | |
128 | 128 | then userENNOLocked | |
129 | - | else | |
130 | - | let newTotalNoVoted = (totalNo | |
129 | + | else -(userENNOLocked))) | |
130 | + | let newTotalNoVoted = (totalNo + (if ((userVote == true)) | |
131 | 131 | then userENNOLocked | |
132 | - | else | |
132 | + | else -(userENNOLocked))) | |
133 | 133 | [IntegerEntry((((toString(i.caller) + keyUserVOTEAmount) + "_") + session), userENNOLocked), BooleanEntry((((toString(i.caller) + keyUserVOTE) + "_") + session), !(userVote)), IntegerEntry((session + keyVoteYes), newTotalYesVoted), IntegerEntry((session + keyVoteNo), newTotalNoVoted), IntegerEntry((session + keyTotalVOTE), (newTotalNoVoted + newTotalYesVoted))] | |
134 | 134 | } | |
135 | 135 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
11 | 11 | ||
12 | 12 | let keyActive = "active" | |
13 | 13 | ||
14 | 14 | let keyCause = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let keyUserVOTEAmount = "_VOTE_amount" | |
17 | 17 | ||
18 | 18 | let keyUserVOTE = "_VOTE" | |
19 | 19 | ||
20 | 20 | let keyTotalVOTE = "_total_VOTE_amount" | |
21 | 21 | ||
22 | 22 | let keyVoteNumber = "vote_session" | |
23 | 23 | ||
24 | 24 | let keyVoteStart = "vote_start_height" | |
25 | 25 | ||
26 | 26 | let keyVoteEnd = "vote_end_height" | |
27 | 27 | ||
28 | 28 | let keyVoteYes = "_yes_amount" | |
29 | 29 | ||
30 | 30 | let keyVoteNo = "_no_amount" | |
31 | 31 | ||
32 | 32 | let keyUserENNOLocked = "_ENNO_amount" | |
33 | 33 | ||
34 | 34 | let keyVoteName = "vote_name" | |
35 | 35 | ||
36 | 36 | let keyVoteDescription = "vote_description" | |
37 | 37 | ||
38 | 38 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
39 | 39 | ||
40 | 40 | let stakeData = addressFromPublicKey(base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8') | |
41 | 41 | ||
42 | 42 | func getUserENNOLocked (user) = valueOrElse(getInteger(stakeData, (toString(user) + keyUserENNOLocked)), 0) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getUserVoteAmount (user,session) = valueOrElse(getInteger(this, (((toString(user) + keyUserVOTEAmount) + "_") + session)), 0) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getUserVote (user,session) = valueOrElse(getBoolean(this, (((toString(user) + keyUserVOTE) + "_") + session)), false) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getVal (key) = valueOrElse(getInteger(this, key), 0) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | @Callable(i) | |
58 | 58 | func initVote (session,start,end,voteName,voteDescription) = if (!(isActive)) | |
59 | 59 | then throw("DApp is inactive at this moment") | |
60 | 60 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
61 | 61 | then throw("Only admin can call this function") | |
62 | 62 | else [IntegerEntry(keyVoteNumber, session), IntegerEntry(((keyVoteStart + "_") + toString(session)), start), IntegerEntry(((keyVoteEnd + "_") + toString(session)), end), IntegerEntry((toString(session) + keyVoteYes), 0), IntegerEntry((toString(session) + keyVoteNo), 0), IntegerEntry((toString(session) + keyTotalVOTE), 0), StringEntry(((keyVoteName + "_") + toString(session)), voteName), StringEntry(((keyVoteDescription + "_") + toString(session)), voteDescription)] | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(i) | |
67 | 67 | func vote (vote) = if (!(isActive)) | |
68 | 68 | then throw("DApp is inactive at this moment") | |
69 | 69 | else { | |
70 | 70 | let session = toString(getVal(keyVoteNumber)) | |
71 | 71 | let start = getVal(((keyVoteStart + "_") + session)) | |
72 | 72 | let end = getVal(((keyVoteEnd + "_") + session)) | |
73 | 73 | if ((start > height)) | |
74 | 74 | then throw(((("Voting has not started yet. Start: " + toString(start)) + "Height: ") + toString(height))) | |
75 | 75 | else if ((height > end)) | |
76 | 76 | then throw(((("Voting has already ended. End: " + toString(end)) + "Height: ") + toString(height))) | |
77 | 77 | else { | |
78 | 78 | let totalYes = getVal((session + keyVoteYes)) | |
79 | 79 | let totalNo = getVal((session + keyVoteNo)) | |
80 | 80 | let userVoteAmount = getUserVoteAmount(i.caller, session) | |
81 | 81 | let userVote = getUserVote(i.caller, session) | |
82 | 82 | let userENNOLocked = getUserENNOLocked(i.caller) | |
83 | 83 | let userENNOVotedNew = userENNOLocked | |
84 | 84 | if ((0 > userENNOVotedNew)) | |
85 | 85 | then throw("Vote must be more than 0") | |
86 | 86 | else if (if ((vote != userVote)) | |
87 | 87 | then (userVoteAmount > 0) | |
88 | 88 | else false) | |
89 | 89 | then throw("Please use change my vote option the update your vote") | |
90 | 90 | else if ((userVoteAmount == userENNOLocked)) | |
91 | 91 | then throw("You have already voted. Stake more enno to update voting") | |
92 | 92 | else { | |
93 | 93 | let newTotalYesVoted = (totalYes + (if ((vote == true)) | |
94 | 94 | then (userENNOLocked - userVoteAmount) | |
95 | 95 | else 0)) | |
96 | 96 | let newTotalNoVoted = (totalNo + (if ((vote == false)) | |
97 | 97 | then (userENNOLocked - userVoteAmount) | |
98 | 98 | else 0)) | |
99 | 99 | [IntegerEntry((((toString(i.caller) + keyUserVOTEAmount) + "_") + session), userENNOLocked), BooleanEntry((((toString(i.caller) + keyUserVOTE) + "_") + session), vote), IntegerEntry((session + keyVoteYes), newTotalYesVoted), IntegerEntry((session + keyVoteNo), newTotalNoVoted), IntegerEntry((session + keyTotalVOTE), (newTotalNoVoted + newTotalYesVoted))] | |
100 | 100 | } | |
101 | 101 | } | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(i) | |
107 | 107 | func changeVote () = if (!(isActive)) | |
108 | 108 | then throw("DApp is inactive at this moment") | |
109 | 109 | else { | |
110 | 110 | let session = toString(getVal(keyVoteNumber)) | |
111 | 111 | let start = getVal(((keyVoteStart + "_") + session)) | |
112 | 112 | let end = getVal(((keyVoteEnd + "_") + session)) | |
113 | 113 | if ((start > height)) | |
114 | 114 | then throw(((("Voting has not started yet. Start: " + toString(start)) + "Height: ") + toString(height))) | |
115 | 115 | else if ((height > end)) | |
116 | 116 | then throw(((("Voting has already ended. End: " + toString(end)) + "Height: ") + toString(height))) | |
117 | 117 | else { | |
118 | 118 | let totalYes = getVal((session + keyVoteYes)) | |
119 | 119 | let totalNo = getVal((session + keyVoteNo)) | |
120 | 120 | let userVoteAmount = getUserVoteAmount(i.caller, session) | |
121 | 121 | let userVote = getUserVote(i.caller, session) | |
122 | 122 | let userENNOLocked = getUserENNOLocked(i.caller) | |
123 | 123 | let userENNOVotedNew = userENNOLocked | |
124 | 124 | if ((0 > userENNOVotedNew)) | |
125 | 125 | then throw("Vote must be more than 0") | |
126 | 126 | else { | |
127 | 127 | let newTotalYesVoted = (totalYes - (if ((userVote == true)) | |
128 | 128 | then userENNOLocked | |
129 | - | else | |
130 | - | let newTotalNoVoted = (totalNo | |
129 | + | else -(userENNOLocked))) | |
130 | + | let newTotalNoVoted = (totalNo + (if ((userVote == true)) | |
131 | 131 | then userENNOLocked | |
132 | - | else | |
132 | + | else -(userENNOLocked))) | |
133 | 133 | [IntegerEntry((((toString(i.caller) + keyUserVOTEAmount) + "_") + session), userENNOLocked), BooleanEntry((((toString(i.caller) + keyUserVOTE) + "_") + session), !(userVote)), IntegerEntry((session + keyVoteYes), newTotalYesVoted), IntegerEntry((session + keyVoteNo), newTotalNoVoted), IntegerEntry((session + keyTotalVOTE), (newTotalNoVoted + newTotalYesVoted))] | |
134 | 134 | } | |
135 | 135 | } | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(i) | |
141 | 141 | func deleteData (entry1,entry2,entry3,entry4,entry5) = if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
142 | 142 | then throw("Only admin can call this function") | |
143 | 143 | else [DeleteEntry(entry1), DeleteEntry(entry2), DeleteEntry(entry3), DeleteEntry(entry4), DeleteEntry(entry5)] | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | ||
147 | 147 | @Callable(i) | |
148 | 148 | func deleteVote () = [IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteYes), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteNo), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyTotalVOTE), 0)] | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | ||
152 | 152 | @Callable(i) | |
153 | 153 | func deleteAddressData (address1,address2,address3,address4,address5) = [DeleteEntry((((address1 + keyUserVOTEAmount) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address1 + keyUserVOTE) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address2 + keyUserVOTEAmount) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address2 + keyUserVOTE) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address3 + keyUserVOTEAmount) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address3 + keyUserVOTE) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address4 + keyUserVOTEAmount) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address4 + keyUserVOTE) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address5 + keyUserVOTEAmount) + "_") + toString(getVal(keyVoteNumber)))), DeleteEntry((((address5 + keyUserVOTE) + "_") + toString(getVal(keyVoteNumber))))] | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | ||
157 | 157 | @Callable(i) | |
158 | 158 | func shutdown () = if (!(isActive)) | |
159 | 159 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
160 | 160 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
161 | 161 | then throw("Only admin can call this function") | |
162 | 162 | else suspend("Paused by admin") | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | @Verifier(tx) | |
166 | 166 | func verify () = match tx { | |
167 | 167 | case d: DataTransaction => | |
168 | 168 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
169 | 169 | case _ => | |
170 | 170 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
171 | 171 | then 1 | |
172 | 172 | else 0 | |
173 | 173 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
174 | 174 | then 1 | |
175 | 175 | else 0 | |
176 | 176 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
177 | 177 | then 1 | |
178 | 178 | else 0 | |
179 | 179 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
180 | 180 | } | |
181 | 181 |
github/deemru/w8io/169f3d6 40.28 ms ◑