tx · 54dDEBjz5p2EU3A2eqX2qBJbzgwwy8MPEJDEZtYjtCKQ

3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW:  -0.14000000 Waves

2023.05.10 10:23 [2571482] smart account 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW > SELF 0.00000000 Waves

{ "type": 13, "id": "54dDEBjz5p2EU3A2eqX2qBJbzgwwy8MPEJDEZtYjtCKQ", "fee": 14000000, "feeAssetId": null, "timestamp": 1683703448525, "version": 2, "chainId": 84, "sender": "3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW", "senderPublicKey": "2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj", "proofs": [ "2RDbT6pghn1ZHE8CBZ9SMLEn4hWpntpeKu2AqkgiM4kye5noQDZJYNZMHNoai6DtWnMJa3svTDbHYZtVPq8DZjm2", "3UAuj9XRRX8rJbB7M1PDadvj49kT5jy7H33vHpgAoRqqba616Q6ys7vZvwDdgJE5Wy7vkJZ1nMvNAjd7jdgLs6TC" ], "script": "base64:AAIFAAAAAAAAAC0IAhIHCgUBAQEICBIDCgEEEgcKBQgICAgIEgcKBQgICAgIEgcKBQgICAgIEgAAAAAYAAAAAAxhZG1pblB1YktleTEBAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAAAxhZG1pblB1YktleTIBAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAAAxhZG1pblB1YktleTMBAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgFAIMULGyzrOsHQAAHWUUYf75uRLpPv1pFdqpeKBIzAoAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAEWtleVVzZXJWT1RFQW1vdW50AgAAAAxfVk9URV9hbW91bnQAAAAA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YktleTEAAAAAAAAAAAEAAAAAAAAAAAAEAAAAEmFkbWluUHViS2V5MlNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAxhZG1pblB1YktleTIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAEmFkbWluUHViS2V5M1NpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAxhZG1pblB1YktleTMAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAEmFkbWluUHViS2V5MVNpZ25lZAUAAAASYWRtaW5QdWJLZXkyU2lnbmVkBQAAABJhZG1pblB1YktleTNTaWduZWQAAAAAAAAAAAJbnOOl", "height": 2571482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5yXTmMWxp6VEbRcseuTpBrLZQrVedWciWVuZgHnXECZF Next: HJyCe3cRGizPfVRVRcntKRaa87Xc4e1RrYuVfg64fURw Diff:
OldNewDifferences
111111
112112
113113 @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)]
115+
116+
117+
118+@Callable(i)
114119 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))))]
115120
116121
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)
8181 let userVote = if ((userVoteAmount == 0))
8282 then vote
8383 else getUserVote(i.caller)
8484 let userENNOLocked = getUserENNOLocked(i.caller)
8585 let userENNOVotedNew = userENNOLocked
8686 if ((0 > userENNOVotedNew))
8787 then throw("Vote must be more than 0")
8888 else if (if ((vote == userVote))
8989 then (userVoteAmount == userENNOLocked)
9090 else false)
9191 then throw("You have already voted. Stake more enno to update voting")
9292 else {
9393 let newTotalYesVoted = (totalYes + (if (vote)
9494 then userENNOLocked
9595 else -(userVoteAmount)))
9696 let newTotalNoVoted = (totalNo + (if (!(vote))
9797 then userENNOLocked
9898 else -(userVoteAmount)))
9999 [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))]
100100 }
101101 }
102102 }
103103
104104
105105
106106 @Callable(i)
107107 func deleteData (entry1,entry2,entry3,entry4,entry5) = if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
108108 then throw("Only admin can call this function")
109109 else [DeleteEntry(entry1), DeleteEntry(entry2), DeleteEntry(entry3), DeleteEntry(entry4), DeleteEntry(entry5)]
110110
111111
112112
113113 @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)]
115+
116+
117+
118+@Callable(i)
114119 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))))]
115120
116121
117122
118123 @Callable(i)
119124 func shutdown () = if (!(isActive))
120125 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
121126 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
122127 then throw("Only admin can call this function")
123128 else suspend("Paused by admin")
124129
125130
126131 @Verifier(tx)
127132 func verify () = match tx {
128133 case d: DataTransaction =>
129134 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
130135 case _ =>
131136 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
132137 then 1
133138 else 0
134139 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
135140 then 1
136141 else 0
137142 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
138143 then 1
139144 else 0
140145 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
141146 }
142147

github/deemru/w8io/026f985 
40.07 ms