tx · DMF6TBDJmc5Hb3zPU5cdLC3P9zH4PpeshEPKJGySEZj4

3N8733ta8uw1oxVmgGakDiuUFPtwqfEgW1W:  -0.05000000 Waves

2023.10.06 13:40 [2786651] smart account 3N8733ta8uw1oxVmgGakDiuUFPtwqfEgW1W > SELF 0.00000000 Waves

{ "type": 13, "id": "DMF6TBDJmc5Hb3zPU5cdLC3P9zH4PpeshEPKJGySEZj4", "fee": 5000000, "feeAssetId": null, "timestamp": 1696588914431, "version": 1, "sender": "3N8733ta8uw1oxVmgGakDiuUFPtwqfEgW1W", "senderPublicKey": "98bzCjWVVVMgJGsx5JTdqTYVxAnxPbGMoXDbL5PXtMF", "proofs": [ "4uct8ZbxJC7a2ob5pXEjAmEWWQAbzDp2QBPUWvdUAKDdpv1qBq99hWcDuhcrX6jyDBYHvVPYxfVdgVzgd2w6nA51" ], "script": "base64:AAIFAAAAAAAAACEIAhIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgAAAAsAQAAAAd0aHJvd0lmAAAAAgAAAAljb25kaXRpb24AAAAFZXJyb3IDBQAAAAljb25kaXRpb24JAAACAAAAAQUAAAAFZXJyb3IGAQAAAAh3cml0ZUludAAAAAIAAAADa2V5AAAABXZhbHVlAwkAAGYAAAACAAAAAAAAAAAABQAAAAV2YWx1ZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABd3cml0aW5nIG5lZ2F0aXZlIHZhbHVlIAkAAaQAAAABBQAAAAV2YWx1ZQIAAAAJIGZvciBrZXkgBQAAAANrZXkJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAABXZhbHVlAQAAABB3cml0ZUNvbnN0U3RyaW5nAAAAAgAAAANrZXkAAAAFdmFsdWUDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAADa2V5BQAAAAV2YWx1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yZQAAAAEFAAAABHR4SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAFnByb3Bvc2FsVm90aW5nRW5kU3RvcmUAAAABBQAAAAR0eElkCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAA9wcm9wb3NhbEJ5U3RvcmUAAAABBQAAAAR0eElkCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABVwcm9wb3NhbFRvdGFsWWVzU3RvcmUAAAABBQAAAAR0eElkCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABRwcm9wb3NhbFRvdGFsTm9TdG9yZQAAAAEFAAAABHR4SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAFHByb3Bvc2FsVXNlclllc1N0b3JlAAAAAgUAAAAEdXNlcgUAAAAEdHhJZAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAATcHJvcG9zYWxVc2VyTm9TdG9yZQAAAAIFAAAABHVzZXIFAAAABHR4SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGnVzZXJMYXN0UHJvcG9zZUhlaWdodFN0b3JlAAAAAQUAAAAEdXNlcgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAFpAQAAAARpbml0AAAAAQAAAAZjb25maWcJAARMAAAAAgkBAAAAEHdyaXRlQ29uc3RTdHJpbmcAAAACBQAAABJjb25maWdBZGRyZXNzU3RvcmUFAAAABmNvbmZpZwUAAAADbmlsAAAAAECO670=", "chainId": 84, "height": 2786651, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func throwIf (condition,error) = if (condition)
5+ then throw(error)
6+ else true
7+
8+
9+func writeInt (key,value) = if ((0 > value))
10+ then throw(((("writing negative value " + toString(value)) + " for key ") + key))
11+ else IntegerEntry(key, value)
12+
13+
14+func writeConstString (key,value) = if (!(isDefined(getString(this, key))))
15+ then StringEntry(key, value)
16+ else throw(("already initialized: " + key))
17+
18+
19+func writeConstInt (key,value) = if (!(isDefined(getInteger(this, key))))
20+ then IntegerEntry(key, value)
21+ else throw(("already exists: " + key))
22+
23+
24+func changeBy (key,value) = writeInt(key, (valueOrElse(getInteger(this, key), 0) + value))
25+
26+
27+func asInt (value) = match value {
28+ case int: Int =>
29+ int
30+ case _ =>
31+ throw("wrong type, expected: Int")
32+}
33+
34+
35+let configAddressStore = "config"
36+
37+let configAddress = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, configAddressStore), "children.voting: no config")), "invalid config address")
38+
39+let HEIGHT = height
40+
41+func advise () = ("height: " + toString(HEIGHT))
42+
43+
44+let BASE = 1000
45+
46+func opAllowed (op) = {
47+ let a = invoke(configAddress, "opAllowed", [op], nil)
48+ if ((a == a))
49+ then true
50+ else throw("Strict value is not equal to itself.")
51+ }
52+
53+
54+let childrenContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(configAddress, "contract_children"), "no contract_children")), "invalid contract_children")
55+
56+let votingResultContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(configAddress, "contract_voting_result"), "no contract_voting_result")), "invalid contract_voting_result")
57+
58+func proposalChildStore (id) = ("proposal_child_" + id)
59+
60+
61+func proposalHeightStore (id) = ("proposal_height_" + id)
62+
63+
64+func proposalVotingStartStore (id) = ("proposal_votingstart_" + id)
65+
66+
67+func proposalVotingEndStore (id) = ("proposal_votingend_" + id)
68+
69+
70+func proposalByStore (id) = ("proposal_by_" + id)
71+
72+
73+func proposalTotalYesStore (id) = ("proposal_yes_" + id)
74+
75+
76+func proposalTotalNoStore (id) = ("proposal_no_" + id)
77+
78+
79+func proposalUserYesStore (user,id) = ((("user_proposal_yes_" + user) + "_") + id)
80+
81+
82+func proposalUserNoStore (user,id) = ((("user_proposal_no_" + user) + "_") + id)
83+
84+
85+func userLastProposeHeightStore (user) = ("propose_lastheight_" + user)
86+
87+
88+func userYes (user,id) = valueOrElse(getInteger(this, proposalUserYesStore(user, id)), 0)
89+
90+
91+func userNo (user,id) = valueOrElse(getInteger(this, proposalUserNoStore(user, id)), 0)
92+
93+
94+func userLastProposeHeight (user) = valueOrElse(getInteger(this, userLastProposeHeightStore(user)), -1)
95+
96+
97+let thisAddress = toString(this)
98+
99+func settings (key,child) = valueOrElse(getInteger(((key + "_") + child)), valueOrErrorMessage(getInteger(configAddress, ((thisAddress + "_") + key)), (key + " is not defined")))
100+
101+
102+func userProposeDelay (child) = settings("user_propose_delay", child)
103+
104+
105+func quorumRatio (child) = settings("proposal_quorum_ratio", child)
106+
107+
108+func passedRatio (child) = settings("proposal_passed_ratio", child)
109+
110+
111+func proposalMinRequired (child) = settings("proposal_min_power_required", child)
112+
113+
114+func votingStartOffset (child) = settings("proposal_votingstart_offset", child)
115+
116+
117+func votingEndOffset (child) = settings("proposal_votingend_offset", child)
118+
119+
120+func userPower (child,user) = asInt(invoke(childrenContract, "userPower", [child, user], nil))
121+
122+
123+func isParticipant (power) = if ((power == 0))
124+ then throw("you are not a participant of this dao")
125+ else nil
126+
127+
128+func proposalExists (txId) = match getInteger(this, proposalHeightStore(txId)) {
129+ case start: Int =>
130+ true
131+ case _ =>
132+ false
133+}
134+
135+
136+func proposalOnVoting (txId) = {
137+ let nonExistErr = "proposal doesn't exist"
138+ if (!(proposalExists(txId)))
139+ then throw(nonExistErr)
140+ else {
141+ let votingStart = valueOrErrorMessage(getInteger(this, proposalVotingStartStore(txId)), nonExistErr)
142+ let votingEnd = valueOrErrorMessage(getInteger(this, proposalVotingEndStore(txId)), nonExistErr)
143+ if ((votingStart > HEIGHT))
144+ then throw(((("voting not started yet, discussion is in progress, voting will start at block " + toString(votingStart)) + ", now it's ") + toString(HEIGHT)))
145+ else if ((HEIGHT > votingEnd))
146+ then throw(((("voting ended at block " + toString(votingEnd)) + ", now it's ") + toString(HEIGHT)))
147+ else true
148+ }
149+ }
150+
151+
152+func proposalBeforeVoting (txId) = {
153+ let nonExistErr = "proposal doesn't exist"
154+ if (!(proposalExists(txId)))
155+ then throw(nonExistErr)
156+ else {
157+ let votingStart = valueOrErrorMessage(getInteger(this, proposalVotingStartStore(txId)), nonExistErr)
158+ if ((HEIGHT >= votingStart))
159+ then throw("voting start is already happened")
160+ else true
161+ }
162+ }
163+
164+
165+func totalPowerStaked (child) = asInt(invoke(childrenContract, "totalPower", [child], nil))
166+
167+
168+func canBroadcast (child,txId,yesInc,noInc) = {
169+ let votesYes = (valueOrElse(getInteger(proposalTotalYesStore(txId)), 0) + yesInc)
170+ let votesNo = (valueOrElse(getInteger(proposalTotalNoStore(txId)), 0) + noInc)
171+ let proposalHeight = valueOrErrorMessage(getInteger(proposalHeightStore(txId)), "proposal not registered")
172+ let totalPower = totalPowerStaked(child)
173+ if ((totalPower == totalPower))
174+ then {
175+ let quorum = quorumRatio(child)
176+ let passed = passedRatio(child)
177+ let totalVotes = (votesYes + votesNo)
178+ let hasQuorum = (((totalVotes * BASE) / totalPower) >= quorum)
179+ let hasPassed = (((votesYes * BASE) / totalVotes) >= passed)
180+ if (hasQuorum)
181+ then hasPassed
182+ else false
183+ }
184+ else throw("Strict value is not equal to itself.")
185+ }
186+
187+
188+func adviseProposal (txId) = {
189+ let child = valueOrErrorMessage(getString(proposalChildStore(txId)), "child not found")
190+ let proposalHeight = valueOrErrorMessage(getInteger(this, proposalHeightStore(txId)), "no proposal")
191+ let votingStart = valueOrErrorMessage(getInteger(this, proposalVotingStartStore(txId)), "no proposal")
192+ let votingEnd = valueOrErrorMessage(getInteger(this, proposalVotingEndStore(txId)), "no proposal")
193+ let votesYes = valueOrElse(getInteger(this, proposalTotalYesStore(txId)), 0)
194+ let votesNo = valueOrElse(getInteger(this, proposalTotalNoStore(txId)), 0)
195+ let totalPowerSnap = totalPowerStaked(child)
196+ if ((totalPowerSnap == totalPowerSnap))
197+ then {
198+ let totalVotes = (votesYes + votesNo)
199+ let hasQuorum = if ((totalVotes > 0))
200+ then (((totalVotes * BASE) / totalPowerSnap) >= quorumRatio(child))
201+ else false
202+ let hasPassed = if ((totalVotes > 0))
203+ then (((votesYes * BASE) / totalVotes) >= passedRatio(child))
204+ else false
205+ let inBlockchainHeight = valueOrElse(transactionHeightById(fromBase58String(txId)), 0)
206+ let status = if ((votingStart > HEIGHT))
207+ then "discussion"
208+ else if ((votingEnd >= HEIGHT))
209+ then "voting"
210+ else if (!(hasQuorum))
211+ then "noQuorum"
212+ else if (!(hasPassed))
213+ then "votingFailed"
214+ else if ((inBlockchainHeight > 0))
215+ then "inBlockchain"
216+ else "waitingForTx"
217+ let broadcastHeight = valueOrElse(getInteger(votingResultContract, ((("proposal_allow_broadcast_" + child) + "_") + txId)), -1)
218+ ((((((((((((((((((((((((("proposal_id: " + txId) + ", proposal_status: ") + status) + ", proposal_by: ") + valueOrErrorMessage(getString(this, proposalByStore(txId)), "no proposal")) + ", proposal_height: ") + toString(proposalHeight)) + ", proposal_txheight: ") + toString(inBlockchainHeight)) + ", proposal_votingstart: ") + toString(votingStart)) + ", proposal_votingend: ") + toString(votingEnd)) + ", proposal_power: ") + toString(totalPowerSnap)) + ", vote_yes: ") + toString(votesYes)) + ", vote_no: ") + toString(votesNo)) + ", proposal_allow_broadcast: ") + toString(if ((broadcastHeight != -1))
219+ then (HEIGHT >= broadcastHeight)
220+ else false)) + ", proposal_allow_broadcast_height: ") + toString(broadcastHeight)) + ", proposal_voting_succeed:") + toString((broadcastHeight != -1)))
221+ }
222+ else throw("Strict value is not equal to itself.")
223+ }
224+
225+
226+func broadcastHeight (txId) = (getIntegerValue(proposalVotingEndStore(txId)) + 1)
227+
228+
229+@Callable(i)
230+func propose (child,txId) = {
231+ let checks = opAllowed("child_governance_propose_tx")
232+ if ((checks == checks))
233+ then {
234+ let required = proposalMinRequired(child)
235+ let user = toString(i.caller)
236+ let gv = userPower(child, user)
237+ if ((gv == gv))
238+ then if ((required > gv))
239+ then throw((((("not enough staked power to make proposal." + " Minimum required = ") + toString(required)) + ", actual: = ") + toString(gv)))
240+ else {
241+ let delay = userProposeDelay(child)
242+ let last = userLastProposeHeight(user)
243+ if (if ((last > -1))
244+ then ((last + delay) > HEIGHT)
245+ else false)
246+ then throw(((("can't propose too often, last proroposal height: " + toString(last)) + ", blocks to wait: ") + toString(((last + delay) - HEIGHT))))
247+ else [writeConstString(proposalChildStore(txId), child), writeConstInt(proposalHeightStore(txId), HEIGHT), writeConstInt(proposalVotingStartStore(txId), (HEIGHT + votingStartOffset(child))), writeConstInt(proposalVotingEndStore(txId), (HEIGHT + votingEndOffset(child))), writeConstString(proposalByStore(txId), user), writeInt(userLastProposeHeightStore(user), HEIGHT)]
248+ }
249+ else throw("Strict value is not equal to itself.")
250+ }
251+ else throw("Strict value is not equal to itself.")
252+ }
253+
254+
255+
256+@Callable(i)
257+func voteYes (txId) = {
258+ let checks = if (opAllowed("child_governance_vote_tx"))
259+ then proposalOnVoting(txId)
260+ else false
261+ if ((checks == checks))
262+ then {
263+ let user = toString(i.caller)
264+ if ((userNo(user, txId) > 0))
265+ then throw("already voted against, please retract your vote first")
266+ else {
267+ let yes = userYes(user, txId)
268+ if ((yes > 0))
269+ then throw("already voted")
270+ else {
271+ let child = valueOrErrorMessage(getString(proposalChildStore(txId)), "child not found")
272+ let power = userPower(child, user)
273+ if ((power == power))
274+ then {
275+ let p = isParticipant(power)
276+ if ((p == p))
277+ then {
278+ let result = canBroadcast(child, txId, power, 0)
279+ let setResult = invoke(votingResultContract, "setResult", [child, txId, result, broadcastHeight(txId)], nil)
280+ if ((setResult == setResult))
281+ then [changeBy(proposalUserYesStore(user, txId), power), changeBy(proposalTotalYesStore(txId), power)]
282+ else throw("Strict value is not equal to itself.")
283+ }
284+ else throw("Strict value is not equal to itself.")
285+ }
286+ else throw("Strict value is not equal to itself.")
287+ }
288+ }
289+ }
290+ else throw("Strict value is not equal to itself.")
291+ }
292+
293+
294+
295+@Callable(i)
296+func voteNo (txId) = {
297+ let checks = if (opAllowed("child_governance_vote_tx"))
298+ then proposalOnVoting(txId)
299+ else false
300+ if ((checks == checks))
301+ then {
302+ let user = toString(i.caller)
303+ if ((userYes(user, txId) > 0))
304+ then throw("already voted for, please retract your vote first")
305+ else {
306+ let no = userNo(user, txId)
307+ if ((no > 0))
308+ then throw("already voted")
309+ else {
310+ let child = valueOrErrorMessage(getString(proposalChildStore(txId)), "child not found")
311+ let power = userPower(child, user)
312+ if ((power == power))
313+ then {
314+ let p = isParticipant(power)
315+ if ((p == p))
316+ then {
317+ let result = canBroadcast(child, txId, 0, power)
318+ let setResult = invoke(votingResultContract, "setResult", [child, txId, result, broadcastHeight(txId)], nil)
319+ if ((setResult == setResult))
320+ then [changeBy(proposalUserNoStore(user, txId), power), changeBy(proposalTotalNoStore(txId), power)]
321+ else throw("Strict value is not equal to itself.")
322+ }
323+ else throw("Strict value is not equal to itself.")
324+ }
325+ else throw("Strict value is not equal to itself.")
326+ }
327+ }
328+ }
329+ else throw("Strict value is not equal to itself.")
330+ }
331+
332+
333+
334+@Callable(i)
335+func retract (txId) = {
336+ let checks = if (opAllowed("child_governance_retract_vote"))
337+ then proposalOnVoting(txId)
338+ else false
339+ if ((checks == checks))
340+ then {
341+ let user = toString(i.caller)
342+ let child = valueOrErrorMessage(getString(proposalChildStore(txId)), "child not found")
343+ let yes = -(userYes(user, txId))
344+ let no = -(userNo(user, txId))
345+ let result = canBroadcast(child, txId, yes, no)
346+ let setResult = invoke(votingResultContract, "setResult", [child, txId, result, broadcastHeight(txId)], nil)
347+ if ((setResult == setResult))
348+ then [changeBy(proposalTotalYesStore(txId), yes), changeBy(proposalTotalNoStore(txId), no), DeleteEntry(proposalUserYesStore(user, txId)), DeleteEntry(proposalUserNoStore(user, txId))]
349+ else throw("Strict value is not equal to itself.")
350+ }
351+ else throw("Strict value is not equal to itself.")
352+ }
353+
354+
355+
356+@Callable(i)
357+func retractProposal (txId) = {
358+ let checks = if (opAllowed("child_governance_retract_proposal_tx"))
359+ then proposalBeforeVoting(txId)
360+ else false
361+ if ((checks == checks))
362+ then {
363+ let by = valueOrErrorMessage(getString(this, proposalByStore(txId)), "proposal doesn't exist")
364+ let user = toString(i.caller)
365+ if ((by != user))
366+ then throw("only owner can retract proposal")
367+ else [DeleteEntry(proposalChildStore(txId)), DeleteEntry(proposalHeightStore(txId)), DeleteEntry(proposalVotingStartStore(txId)), DeleteEntry(proposalVotingEndStore(txId)), DeleteEntry(proposalByStore(txId)), DeleteEntry(proposalTotalYesStore(txId)), DeleteEntry(proposalTotalNoStore(txId)), DeleteEntry(proposalUserYesStore(user, txId)), DeleteEntry(proposalUserNoStore(user, txId)), DeleteEntry(userLastProposeHeightStore(user))]
368+ }
369+ else throw("Strict value is not equal to itself.")
370+ }
371+
372+
373+
374+@Callable(i)
375+func init (config) = [writeConstString(configAddressStore, config)]
376+
377+

github/deemru/w8io/026f985 
30.37 ms