tx · HVorMwhDZHkQKKnP24ugFM6dngYt6SUmmnYn2YjTFLYq

3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT:  -0.01400000 Waves

2023.04.09 20:21 [2527327] smart account 3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT > SELF 0.00000000 Waves

{ "type": 13, "id": "HVorMwhDZHkQKKnP24ugFM6dngYt6SUmmnYn2YjTFLYq", "fee": 1400000, "feeAssetId": null, "timestamp": 1681060900179, "version": 2, "chainId": 84, "sender": "3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT", "senderPublicKey": "86kQutchNhkrbHTdTXbAFXcJ8bPWQC8G4RGzAYcspLvb", "proofs": [ "43ETe4R2vZqMxftZQ2WANS1RixpiTqmeFk6q8WorZMUiCcoaXhkvg5dyndVKv3Ptv3i8YpS6u1EWWvcctyJUHYbZ" ], "script": "base64:AAIEAAAAAAAAAB0IAhIFCgMIAQESAwoBARIDCgEBEgMKAQESAwoBCAAAAAkAAAAABFZPVEUBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDcKCmq97Q85azVhInAnEo5B90oOZE/K9d91mIRW9+6VQAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAxsYXVuY2hfZXJyb3ICAAAAJERhcHAgd2lsbCBzdGFydCBWb3RpbmcgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAAC48aDE+WW91ciBWb3RlIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAAAlweW10ZXJyb3ICAAAANURBcHAgTmVlZCAwLjAwMDAwMDAxIFZPVEUgVG9rZW4gYXMgQXR0YWNoIHBheW1lbnRbMV0uAAAAA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hc3NldElkBQAAAARWT1RFCQAAAgAAAAEFAAAACGFzc2V0ZXJyAwkAAGYAAAACCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAUAAAAFRW5kVFMJAAACAAAAAQUAAAAHdm90ZUVycgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxUb3RhbF9Wb3Rlc18JAAGkAAAAAQUAAAALUG9ycG9zYWxfSUQFAAAACnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABlRvdGFsXwUAAAAHVm90ZUFzdAIAAAABXwkAAaQAAAABBQAAAAtQb3Jwb3NhbF9JRAUAAAAEQVRWTwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlBQAAAANtc2cFAAAAA25pbAAAAAFpAQAAAAlEZWxldGVLZXkAAAABAAAAA0tleQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANLZXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5GjDQhw==", "height": 2527327, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6XLZV65AbZAtLjPGmgFXadNZyw3wKLtDBde5kyVjFsBb Next: GGzAuvHnfpMgBNmRK73AonzjT7H8eU8wVqiGmZAkXEga Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let VOTE = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
6-let voting_timestamp_controller_pubkey = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU'
6+let voting_timestamp_controller_pubkey = base58'FpQDPkicMwf8q2FJRfT3wfh4RxXy5C8pgqMSQRZdfW3W'
77
88 let controller_address = addressFromPublicKey(voting_timestamp_controller_pubkey)
99
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VOTE = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
6-let voting_timestamp_controller_pubkey = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU'
6+let voting_timestamp_controller_pubkey = base58'FpQDPkicMwf8q2FJRfT3wfh4RxXy5C8pgqMSQRZdfW3W'
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 pymterror = "DApp Need 0.00000001 VOTE Token as Attach payment[1]."
1515
1616 let minbalerror = "Min. 0.00000001 VOTE required on Your Address to Vote. Please Mint or hold min. 0.00000001 VOTE on this Address."
1717
1818 let asseterr = (("Incorrect asset attach, please attach " + toBase58String(VOTE)) + " AssetID Only.")
1919
2020 let voteErr = "Voting is Over for this Dapp."
2121
2222 @Callable(i)
2323 func SetVotingTimeStamps (Proposal,Voting_Start_TimeStamp,Voting_End_TimeStamp) = {
2424 let StartTS = Voting_Start_TimeStamp
2525 let EndTS = Voting_End_TimeStamp
2626 let pubkey = toBase58String(i.caller.bytes)
2727 let Previoustotalproposals = match getInteger(this, "Total_Proposals") {
2828 case a: Int =>
2929 a
3030 case _ =>
3131 0
3232 }
3333 let totalproposals = (Previoustotalproposals + 1)
3434 if ((size(Proposal) > 5100))
3535 then throw("Subject Char Limits are Over. Reduce length less than 5100 Char.")
3636 else if ((i.caller != controller_address))
3737 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
3838 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)]
3939 }
4040
4141
4242
4343 @Callable(i)
4444 func Yes (Porposal_ID) = {
4545 let VoteAst = "Yes"
4646 let StartTS = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(Porposal_ID)))
4747 let EndTS = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(Porposal_ID)))
4848 let pubkey = toBase58String(i.caller.bytes)
4949 let pmt = if ((size(i.payments) == 1))
5050 then i.payments[0]
5151 else throw(pymterror)
5252 let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), VOTE)
5353 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
5454 case a: Int =>
5555 a
5656 case _ =>
5757 0
5858 }
5959 let totalvotes = (Previoustotalvotes + pmt.amount)
6060 let FTVO = match getInteger(this, ((("Total_" + VoteAst) + "_") + toString(Porposal_ID))) {
6161 case a: Int =>
6262 a
6363 case _ =>
6464 0
6565 }
6666 let ATVO = (FTVO + pmt.amount)
6767 if ((StartTS > lastBlock.timestamp))
6868 then throw((launch_error + toString(StartTS)))
6969 else if ((1 > assetbal))
7070 then throw(minbalerror)
7171 else if ((pmt.assetId != VOTE))
7272 then throw(asseterr)
7373 else if ((lastBlock.timestamp > EndTS))
7474 then throw(voteErr)
7575 else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
7676 }
7777
7878
7979
8080 @Callable(i)
8181 func No (Porposal_ID) = {
8282 let VoteAst = "No"
8383 let StartTS = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(Porposal_ID)))
8484 let EndTS = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(Porposal_ID)))
8585 let pubkey = toBase58String(i.caller.bytes)
8686 let pmt = if ((size(i.payments) == 1))
8787 then i.payments[0]
8888 else throw(pymterror)
8989 let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), VOTE)
9090 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
9191 case a: Int =>
9292 a
9393 case _ =>
9494 0
9595 }
9696 let totalvotes = (Previoustotalvotes + pmt.amount)
9797 let FTVO = match getInteger(this, ((("Total_" + VoteAst) + "_") + toString(Porposal_ID))) {
9898 case a: Int =>
9999 a
100100 case _ =>
101101 0
102102 }
103103 let ATVO = (FTVO + pmt.amount)
104104 if ((StartTS > lastBlock.timestamp))
105105 then throw((launch_error + toString(StartTS)))
106106 else if ((1 > assetbal))
107107 then throw(minbalerror)
108108 else if ((pmt.assetId != VOTE))
109109 then throw(asseterr)
110110 else if ((lastBlock.timestamp > EndTS))
111111 then throw(voteErr)
112112 else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
113113 }
114114
115115
116116
117117 @Callable(i)
118118 func Abstain (Porposal_ID) = {
119119 let VoteAst = "Abstain"
120120 let StartTS = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(Porposal_ID)))
121121 let EndTS = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(Porposal_ID)))
122122 let pubkey = toBase58String(i.caller.bytes)
123123 let pmt = if ((size(i.payments) == 1))
124124 then i.payments[0]
125125 else throw(pymterror)
126126 let assetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), VOTE)
127127 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
128128 case a: Int =>
129129 a
130130 case _ =>
131131 0
132132 }
133133 let totalvotes = (Previoustotalvotes + pmt.amount)
134134 let FTVO = match getInteger(this, ((("Total_" + VoteAst) + "_") + toString(Porposal_ID))) {
135135 case a: Int =>
136136 a
137137 case _ =>
138138 0
139139 }
140140 let ATVO = (FTVO + pmt.amount)
141141 if ((StartTS > lastBlock.timestamp))
142142 then throw((launch_error + toString(StartTS)))
143143 else if ((1 > assetbal))
144144 then throw(minbalerror)
145145 else if ((pmt.assetId != VOTE))
146146 then throw(asseterr)
147147 else if ((lastBlock.timestamp > EndTS))
148148 then throw(voteErr)
149149 else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
150150 }
151151
152152
153153
154154 @Callable(i)
155155 func DeleteKey (Key) = [DeleteEntry(Key)]
156156
157157
158158 @Verifier(tx)
159159 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
160160

github/deemru/w8io/169f3d6 
64.40 ms