tx · HJyCe3cRGizPfVRVRcntKRaa87Xc4e1RrYuVfg64fURw

3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW:  -0.14000000 Waves

2023.05.10 10:26 [2571485] smart account 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW > SELF 0.00000000 Waves

{ "type": 13, "id": "HJyCe3cRGizPfVRVRcntKRaa87Xc4e1RrYuVfg64fURw", "fee": 14000000, "feeAssetId": null, "timestamp": 1683703596042, "version": 2, "chainId": 84, "sender": "3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW", "senderPublicKey": "2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj", "proofs": [ "38bmuqXuMaAVoegruCPSZJnXUPB1JAema5ydTmzHnwzyqR4BaZWEAzSk7fn28wonzj8LDjxsE2hG7qqwhLoCEPy5", "5i7bErCm7Drr8uPX6YLTnMfx3arSLV179VXnefuyXQrBEeSs1hH8KorKwkVh46AdAZSXnsDoYTUH5PhmjLaJ3YuW" ], "script": "base64:AAIFAAAAAAAAACYIAhIHCgUBAQEICBIDCgEEEgcKBQgICAgIEgASBwoFCAgICAgSAAAAABgAAAAADGFkbWluUHViS2V5MQEAAAAgFAIMULGyzrOsHQAAHWUUYf75uRLpPv1pFdqpeKBIzAoAAAAADGFkbWluUHViS2V5MgEAAAAgFAIMULGyzrOsHQAAHWUUYf75uRLpPv1pFdqpeKBIzAoAAAAADGFkbWluUHViS2V5MwEAAAAgFAIMULGyzrOsHQAAHWUUYf75uRLpPv1pFdqpeKBIzAoAAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wAQAAACAUAgxQsbLOs6wdAAAdZRRh/vm5Euk+/WkV2ql4oEjMCgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAACGtleUNhdXNlAgAAAA5zaHV0ZG93bl9jYXVzZQAAAAARa2V5VXNlclZPVEVBbW91bnQCAAAADF9WT1RFX2Ftb3VudAAAAAALa2V5VXNlclZPVEUCAAA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AAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAnsz5Po=", "height": 2571485, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 54dDEBjz5p2EU3A2eqX2qBJbzgwwy8MPEJDEZtYjtCKQ Next: 3NR2bBSTSVbF6VxoRHqrhpLFaSVAjzhM7KjC5Ng1R4C7 Diff:
OldNewDifferences
7878 let totalYes = getVal((session + keyVoteYes))
7979 let totalNo = getVal((session + keyVoteNo))
8080 let userVoteAmount = getUserVoteAmount(i.caller, session)
81- let userVote = if ((userVoteAmount == 0))
82- then vote
83- else getUserVote(i.caller)
81+ let userVote = getUserVote(i.caller)
8482 let userENNOLocked = getUserENNOLocked(i.caller)
8583 let userENNOVotedNew = userENNOLocked
8684 if ((0 > userENNOVotedNew))
111109
112110
113111 @Callable(i)
114-func deleteVote (entry1,entry2,entry3,entry4,entry5) = [IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteYes), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteNo), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyTotalVOTE), 0)]
112+func deleteVote () = [IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteYes), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteNo), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyTotalVOTE), 0)]
115113
116114
117115
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
55
66 let adminPubKey2 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
77
88 let adminPubKey3 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
99
1010 let adminPubKeyStartStop = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
1111
1212 let keyActive = "active"
1313
1414 let keyCause = "shutdown_cause"
1515
1616 let keyUserVOTEAmount = "_VOTE_amount"
1717
1818 let keyUserVOTE = "_VOTE"
1919
2020 let keyTotalVOTE = "_total_VOTE_amount"
2121
2222 let keyVoteNumber = "vote_session"
2323
2424 let keyVoteStart = "vote_start_height"
2525
2626 let keyVoteEnd = "vote_end_height"
2727
2828 let keyVoteYes = "_yes_amount"
2929
3030 let keyVoteNo = "_no_amount"
3131
3232 let keyUserENNOLocked = "_ENNO_amount"
3333
3434 let keyVoteName = "vote_name"
3535
3636 let keyVoteDescription = "vote_description"
3737
3838 let isActive = valueOrElse(getBoolean(this, keyActive), true)
3939
4040 let stakeData = addressFromPublicKey(base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8')
4141
4242 func getUserENNOLocked (user) = valueOrElse(getInteger(stakeData, (toString(user) + keyUserENNOLocked)), 0)
4343
4444
4545 func getUserVoteAmount (user,session) = valueOrElse(getInteger(this, (((toString(user) + keyUserVOTEAmount) + "_") + session)), 0)
4646
4747
4848 func getUserVote (user) = valueOrElse(getBoolean(this, (toString(user) + keyUserVOTE)), false)
4949
5050
5151 func getVal (key) = valueOrElse(getInteger(this, key), 0)
5252
5353
5454 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
5555
5656
5757 @Callable(i)
5858 func initVote (session,start,end,voteName,voteDescription) = if (!(isActive))
5959 then throw("DApp is inactive at this moment")
6060 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
6161 then throw("Only admin can call this function")
6262 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)]
6363
6464
6565
6666 @Callable(i)
6767 func vote (vote) = if (!(isActive))
6868 then throw("DApp is inactive at this moment")
6969 else {
7070 let session = toString(getVal(keyVoteNumber))
7171 let start = getVal(((keyVoteStart + "_") + session))
7272 let end = getVal(((keyVoteEnd + "_") + session))
7373 if ((start > height))
7474 then throw(((("Voting has not started yet. Start: " + toString(start)) + "Height: ") + toString(height)))
7575 else if ((height > end))
7676 then throw(((("Voting has already ended. End: " + toString(end)) + "Height: ") + toString(height)))
7777 else {
7878 let totalYes = getVal((session + keyVoteYes))
7979 let totalNo = getVal((session + keyVoteNo))
8080 let userVoteAmount = getUserVoteAmount(i.caller, session)
81- let userVote = if ((userVoteAmount == 0))
82- then vote
83- else getUserVote(i.caller)
81+ let userVote = getUserVote(i.caller)
8482 let userENNOLocked = getUserENNOLocked(i.caller)
8583 let userENNOVotedNew = userENNOLocked
8684 if ((0 > userENNOVotedNew))
8785 then throw("Vote must be more than 0")
8886 else if (if ((vote == userVote))
8987 then (userVoteAmount == userENNOLocked)
9088 else false)
9189 then throw("You have already voted. Stake more enno to update voting")
9290 else {
9391 let newTotalYesVoted = (totalYes + (if (vote)
9492 then userENNOLocked
9593 else -(userVoteAmount)))
9694 let newTotalNoVoted = (totalNo + (if (!(vote))
9795 then userENNOLocked
9896 else -(userVoteAmount)))
9997 [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))]
10098 }
10199 }
102100 }
103101
104102
105103
106104 @Callable(i)
107105 func deleteData (entry1,entry2,entry3,entry4,entry5) = if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
108106 then throw("Only admin can call this function")
109107 else [DeleteEntry(entry1), DeleteEntry(entry2), DeleteEntry(entry3), DeleteEntry(entry4), DeleteEntry(entry5)]
110108
111109
112110
113111 @Callable(i)
114-func deleteVote (entry1,entry2,entry3,entry4,entry5) = [IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteYes), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteNo), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyTotalVOTE), 0)]
112+func deleteVote () = [IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteYes), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyVoteNo), 0), IntegerEntry((toString(getVal(keyVoteNumber)) + keyTotalVOTE), 0)]
115113
116114
117115
118116 @Callable(i)
119117 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))))]
120118
121119
122120
123121 @Callable(i)
124122 func shutdown () = if (!(isActive))
125123 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
126124 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
127125 then throw("Only admin can call this function")
128126 else suspend("Paused by admin")
129127
130128
131129 @Verifier(tx)
132130 func verify () = match tx {
133131 case d: DataTransaction =>
134132 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
135133 case _ =>
136134 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
137135 then 1
138136 else 0
139137 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
140138 then 1
141139 else 0
142140 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
143141 then 1
144142 else 0
145143 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
146144 }
147145

github/deemru/w8io/026f985 
49.13 ms