tx · P4AoPXKfEsuiapjRDPhin2KSopfy9p4XiQWJo9ftcAQ

3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW:  -0.14000000 Waves

2023.05.09 15:23 [2570342] smart account 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW > SELF 0.00000000 Waves

{ "type": 13, "id": "P4AoPXKfEsuiapjRDPhin2KSopfy9p4XiQWJo9ftcAQ", "fee": 14000000, "feeAssetId": null, "timestamp": 1683635014156, "version": 2, "chainId": 84, "sender": "3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW", "senderPublicKey": "2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj", "proofs": [ "5dsYnRsx8s5L12kd1D6Jb2nHpaWa5HTxE5B4y5QCypGiukNPqtiFB7axuwmA9q9oA2FRDCaoS3fAG6g1N5RewK2A", "4ewoEQA7PsDNggVwDaP4PsKEGsiYxpri6ThPxbF6pwfBMBxt1r82J18yUTVMvgra3jtTfoo3r6cY5qeWRp12Un3x" ], "script": "base64:AAIFAAAAAAAAABIIAhIHCgUBAQEICBIDCgEEEgAAAAAYAAAAAAxhZG1pblB1YktleTEBAAAAIKEEkqGlvxkeCCEjnB3f3IzbSlzW0d5bY0HtvfJWzcV3AAAAAAxhZG1pblB1YktleTIBAAAAIKEEkqGlvxkeCCEjnB3f3IzbSlzW0d5bY0HtvfJWzcV3AAAAAAxhZG1pblB1YktleTMBAAAAIKEEkqGlvxkeCCEjnB3f3IzbSlzW0d5bY0HtvfJWzcV3AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgoQSSoaW/GR4IISOcHd/cjNtKXNbR3ltjQe298lbNxXcAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAEWtleVVzZXJWT1RFQW1vdW50AgAAAAxfVk9URV9hbW91bnQAAAAAC2tleVVzZXJWT1RFAgAAAAVfVk9URQAAAAA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sbCB0aGlzIGZ1bmN0aW9uCQEAAAAHc3VzcGVuZAAAAAECAAAAD1BhdXNlZCBieSBhZG1pbgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACfAYGiA==", "height": 2570342, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GgLAfxt4a4w3W2wCuK6mXPRhqENbkXhVKMXE8fMd9hSA Next: D5xCmrAPMw27rec2myMbJsmp7yDyGPHu5U1MgAsdXJc3 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let adminPubKey1 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
4+let adminPubKey1 = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
55
6-let adminPubKey2 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
6+let adminPubKey2 = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
77
8-let adminPubKey3 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
8+let adminPubKey3 = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
99
10-let adminPubKeyStartStop = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
10+let adminPubKeyStartStop = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
1111
1212 let keyActive = "active"
1313
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let adminPubKey1 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
4+let adminPubKey1 = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
55
6-let adminPubKey2 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
6+let adminPubKey2 = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
77
8-let adminPubKey3 = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
8+let adminPubKey3 = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
99
10-let adminPubKeyStartStop = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj'
10+let adminPubKeyStartStop = base58'BqYgePcs4f9GkzK6gzeFRnTPBjfSNj8cZswgB4J1p7Dp'
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) = valueOrElse(getInteger(this, (toString(user) + keyUserVOTEAmount)), 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 + "_") + keyVoteNumber), start), IntegerEntry(((keyVoteEnd + "_") + keyVoteNumber), end), IntegerEntry(((keyVoteYes + "_") + keyVoteNumber), 0), IntegerEntry(((keyVoteNo + "_") + keyVoteNumber), 0), StringEntry(((keyVoteName + "_") + keyVoteNumber), voteName), StringEntry(((keyVoteDescription + "_") + keyVoteNumber), voteDescription)]
6363
6464
6565
6666 @Callable(i)
6767 func vote (vote) = if (!(isActive))
6868 then throw("DApp is inactive at this moment")
6969 else if ((getVal(keyVoteStart) > height))
7070 then throw("Voting has not started yet.")
7171 else if ((height > getVal(keyVoteEnd)))
7272 then throw("Voting has already ended.")
7373 else {
7474 let totalYes = getVal((keyVoteNumber + keyVoteYes))
7575 let totalNo = getVal((keyVoteNumber + keyVoteNo))
7676 let userVoteAmount = getUserVoteAmount(i.caller)
7777 let userVote = getUserVote(i.caller)
7878 let userENNOLocked = getUserENNOLocked(i.caller)
7979 let userENNOVotedNew = userENNOLocked
8080 if ((0 > userENNOVotedNew))
8181 then throw("Vote must be more than 0")
8282 else {
8383 let newTotalYesVoted = (totalYes + (if ((vote == userVote))
8484 then if (vote)
8585 then userENNOLocked
8686 else 0
8787 else (-1 * userENNOLocked)))
8888 let newTotalNoVoted = (totalNo + (if ((userVote == vote))
8989 then if (!(vote))
9090 then userENNOLocked
9191 else 0
9292 else (-1 * userENNOLocked)))
9393 [IntegerEntry((((toString(i.caller) + keyUserVOTEAmount) + "_") + keyVoteNumber), userENNOLocked), BooleanEntry((((toString(i.caller) + keyUserVOTE) + "_") + keyVoteNumber), vote), IntegerEntry((keyVoteNumber + keyVoteYes), newTotalYesVoted), IntegerEntry((keyVoteNumber + keyVoteNo), newTotalNoVoted), IntegerEntry((keyVoteNumber + keyTotalVOTE), (newTotalNoVoted + newTotalYesVoted))]
9494 }
9595 }
9696
9797
9898
9999 @Callable(i)
100100 func shutdown () = if (!(isActive))
101101 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
102102 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
103103 then throw("Only admin can call this function")
104104 else suspend("Paused by admin")
105105
106106
107107 @Verifier(tx)
108108 func verify () = match tx {
109109 case d: DataTransaction =>
110110 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
111111 case _ =>
112112 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
113113 then 1
114114 else 0
115115 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
116116 then 1
117117 else 0
118118 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
119119 then 1
120120 else 0
121121 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
122122 }
123123

github/deemru/w8io/169f3d6 
33.95 ms