tx · 6cp8saB11g67dp49fW27R4gBva5SeV4LxwBqK8kbwGM7

3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd:  -0.01400000 Waves

2023.04.14 15:10 [2534191] smart account 3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd > SELF 0.00000000 Waves

{ "type": 13, "id": "6cp8saB11g67dp49fW27R4gBva5SeV4LxwBqK8kbwGM7", "fee": 1400000, "feeAssetId": null, "timestamp": 1681474247303, "version": 2, "chainId": 84, "sender": "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd", "senderPublicKey": "AK6rRKpHobxNveEtJE5BBXbdwm9BpGL7ewP9Xb6VYuHx", "proofs": [ "5Qs1STup2jXWV4poX3FRPoeRZJwktEHXUjNKT6kEFJZreZQrRpTkTe8ug3f4c255YBMted548c36wJZSpki6Jha" ], "script": "base64:AAIEAAAAAAAAABMIAhIFCgMIAQESAwoBARIDCgEBAAAABwAAAAAOQTRBU3Rha2luZ0RBcHAJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNONm9XTHlRWTJnTTdRVWtVdkJtZTFSRW5BNmQxVjd5M0FUAAAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACA7dEXxvlA55FKxmI42AI6/6uJD1h8gECoNXRixDQRDDAAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAxsYXVuY2hfZXJyb3ICAAAAJERhcHAgd2lsbCBzdGFydCBWb3RpbmcgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAAC48aDE+WW91ciBWb3RlIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAABFBbHJlYWR5Vm90ZWRFcnJvcgIAAAA+VGhpcyBBZGRyZXNzIEFscmVhZHkg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QAAAAZwdWJrZXkCAAAAAV8JAAGkAAAAAQUAAAALUG9ycG9zYWxfSUQFAAAAGExhdGVzdFVzZXJDb3VudGZvclZvdGluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAADlF1b3J1bV9TdGF0dXNfCQABpAAAAAEFAAAAC1BvcnBvc2FsX0lEAgAAAARGYWlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAA21zZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnPDDlD", "height": 2534191, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9GUG1i1ArZyxxWj8skFjXRX3p3dmBVQvsXUByyhPEeVd Next: E2GuSsvnQQECUi5VpB4WpnjzFGZ2sFpHMEGiXNPERBvR Diff:
OldNewDifferences
8585 let EndTS = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(Porposal_ID)))
8686 let pubkey = toBase58String(i.caller.bytes)
8787 let readA4AStakingAmount = valueOrErrorMessage(getInteger(A4AStakingDApp, ("Deposit_Amount_Of_" + pubkey)), "Address not found in A4A Staking.")
88+ let readQuoraumValue = getIntegerValue(this, ("Quorum_" + toString(Porposal_ID)))
8889 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
8990 case a: Int =>
9091 a
110111 then throw((launch_error + toString(StartTS)))
111112 else if ((lastBlock.timestamp > EndTS))
112113 then throw(voteErr)
113- else if ((LatestUserCountforVoting > 1))
114- then throw(AlreadyVotedError)
115- else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry("message", msg)]
114+ else if ((readQuoraumValue > ATVO))
115+ then [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry(("Quorum_Status_" + toString(Porposal_ID)), "Fail"), StringEntry("message", msg)]
116+ else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry(("Quorum_Status_" + toString(Porposal_ID)), "Fail"), StringEntry("message", msg)]
116117 }
117118
118119
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let A4AStakingDApp = addressFromStringValue("3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT")
55
66 let voting_timestamp_controller_pubkey = base58'515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB'
77
88 let controller_address = addressFromPublicKey(voting_timestamp_controller_pubkey)
99
1010 let launch_error = "Dapp will start Voting at Timestamp "
1111
1212 let msg = "<h1>Your Vote Submitted Successfully!</h1><br>"
1313
1414 let AlreadyVotedError = "This Address Already participated for Voting in this Proposal."
1515
1616 let voteErr = "Voting is Over for this Dapp."
1717
1818 @Callable(i)
1919 func SetVotingTimeStamps (Proposal,Voting_Start_TimeStamp,Voting_End_TimeStamp) = {
2020 let StartTS = Voting_Start_TimeStamp
2121 let EndTS = Voting_End_TimeStamp
2222 let readtotalStakedA4A = getIntegerValue(A4AStakingDApp, "Staked_Amount")
2323 let QuorumValue = fraction(readtotalStakedA4A, 1, 3)
2424 let pubkey = toBase58String(i.caller.bytes)
2525 let Previoustotalproposals = match getInteger(this, "Total_Proposals") {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 let totalproposals = (Previoustotalproposals + 1)
3232 if ((size(Proposal) > 5100))
3333 then throw("Subject Char Limits are Over. Reduce length less than 5100 Char.")
3434 else if ((i.caller != controller_address))
3535 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
3636 else [StringEntry(("Proposal_Text_" + toString(totalproposals)), Proposal), IntegerEntry("Total_Proposals", totalproposals), StringEntry(("Proposer_" + toString(totalproposals)), pubkey), IntegerEntry(("Voting_Start_TimeStamp_" + toString(totalproposals)), StartTS), IntegerEntry(("Voting_End_TimeStamp_" + toString(totalproposals)), EndTS), IntegerEntry(("Quorum_" + toString(totalproposals)), QuorumValue), IntegerEntry(("Total_Votes_" + toString(totalproposals)), 0), IntegerEntry(("Total_No_" + toString(totalproposals)), 0), IntegerEntry(("Total_Yes_" + toString(totalproposals)), 0)]
3737 }
3838
3939
4040
4141 @Callable(i)
4242 func Yes (Porposal_ID) = {
4343 let VoteAst = "Yes"
4444 let StartTS = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(Porposal_ID)))
4545 let EndTS = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(Porposal_ID)))
4646 let pubkey = toBase58String(i.caller.bytes)
4747 let readA4AStakingAmount = valueOrErrorMessage(getInteger(A4AStakingDApp, ("Deposit_Amount_Of_" + pubkey)), "Address not found in A4A Staking.")
4848 let readQuoraumValue = getIntegerValue(this, ("Quorum_" + toString(Porposal_ID)))
4949 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
5050 case a: Int =>
5151 a
5252 case _ =>
5353 0
5454 }
5555 let totalvotes = (Previoustotalvotes + readA4AStakingAmount)
5656 let FTVO = match getInteger(this, ((("Total_" + VoteAst) + "_") + toString(Porposal_ID))) {
5757 case a: Int =>
5858 a
5959 case _ =>
6060 0
6161 }
6262 let ATVO = (FTVO + readA4AStakingAmount)
6363 let PreviousUserCountforVoting = match getInteger(this, ((pubkey + "_") + toString(Porposal_ID))) {
6464 case a: Int =>
6565 a
6666 case _ =>
6767 0
6868 }
6969 let LatestUserCountforVoting = (PreviousUserCountforVoting + 1)
7070 if ((StartTS > lastBlock.timestamp))
7171 then throw((launch_error + toString(StartTS)))
7272 else if ((lastBlock.timestamp > EndTS))
7373 then throw(voteErr)
7474 else if ((readQuoraumValue > ATVO))
7575 then [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry(("Quorum_Status_" + toString(Porposal_ID)), "Fail"), StringEntry("message", msg)]
7676 else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry(("Quorum_Status_" + toString(Porposal_ID)), "Pass"), StringEntry("message", msg)]
7777 }
7878
7979
8080
8181 @Callable(i)
8282 func No (Porposal_ID) = {
8383 let VoteAst = "No"
8484 let StartTS = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(Porposal_ID)))
8585 let EndTS = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(Porposal_ID)))
8686 let pubkey = toBase58String(i.caller.bytes)
8787 let readA4AStakingAmount = valueOrErrorMessage(getInteger(A4AStakingDApp, ("Deposit_Amount_Of_" + pubkey)), "Address not found in A4A Staking.")
88+ let readQuoraumValue = getIntegerValue(this, ("Quorum_" + toString(Porposal_ID)))
8889 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
8990 case a: Int =>
9091 a
9192 case _ =>
9293 0
9394 }
9495 let totalvotes = (Previoustotalvotes + readA4AStakingAmount)
9596 let FTVO = match getInteger(this, ((("Total_" + VoteAst) + "_") + toString(Porposal_ID))) {
9697 case a: Int =>
9798 a
9899 case _ =>
99100 0
100101 }
101102 let ATVO = (FTVO + readA4AStakingAmount)
102103 let PreviousUserCountforVoting = match getInteger(this, ((pubkey + "_") + toString(Porposal_ID))) {
103104 case a: Int =>
104105 a
105106 case _ =>
106107 0
107108 }
108109 let LatestUserCountforVoting = (PreviousUserCountforVoting + 1)
109110 if ((StartTS > lastBlock.timestamp))
110111 then throw((launch_error + toString(StartTS)))
111112 else if ((lastBlock.timestamp > EndTS))
112113 then throw(voteErr)
113- else if ((LatestUserCountforVoting > 1))
114- then throw(AlreadyVotedError)
115- else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry("message", msg)]
114+ else if ((readQuoraumValue > ATVO))
115+ then [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry(("Quorum_Status_" + toString(Porposal_ID)), "Fail"), StringEntry("message", msg)]
116+ else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), IntegerEntry(((pubkey + "_") + toString(Porposal_ID)), LatestUserCountforVoting), StringEntry(("Quorum_Status_" + toString(Porposal_ID)), "Fail"), StringEntry("message", msg)]
116117 }
117118
118119
119120 @Verifier(tx)
120121 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
121122

github/deemru/w8io/169f3d6 
39.05 ms