tx · wD2p5ZBm8gnseXiTBiGBtcPvVg2qN6WWqcXMzhYqPZV

3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT:  -0.01400000 Waves

2023.04.06 13:01 [2522558] smart account 3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT > SELF 0.00000000 Waves

{ "type": 13, "id": "wD2p5ZBm8gnseXiTBiGBtcPvVg2qN6WWqcXMzhYqPZV", "fee": 1400000, "feeAssetId": null, "timestamp": 1680775269810, "version": 2, "chainId": 84, "sender": "3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT", "senderPublicKey": "86kQutchNhkrbHTdTXbAFXcJ8bPWQC8G4RGzAYcspLvb", "proofs": [ "4r2KPb2tEY4V7pkX17knNTG5hGjV4GizEmRfNwYQRbfpkwdwUtQ6rQirF8BQD981QgFgHjb3UzFTzJrEVn9wJ58K" ], "script": "base64:AAIEAAAAAAAAABMIAhIFCgMIAQESAwoBARIDCgEIAAAACQAAAAAEVk9URQEAAAAgCGWEtw/wimoa8+Jo6C4IkCTD0ydYA80s9i5eC9/aFaQAAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIBu9S76H7YCzeS6A6ExALdu+B5uJ7eQOaVtSWu8sVA9tAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkAAAAADGxhdW5jaF9lcnJvcgIAAAAkRGFwcCB3aWxsIHN0YXJ0IFZvdGluZyBhdCBUaW1lc3RhbXAgAAAAAANtc2cCAAAALjxoMT5Zb3VyIFZvdGUgU3VibWl0dGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4AAAAACXB5bXRlcnJvcgIAAAA1REFwcCBOZWVkIDAuMDAwMDAwMDEgVk9URSBUb2tlbiBhcyBBdHRhY2ggcGF5bWVudFsxXS4AAAAAC21pbmJhbGV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2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tled+rjLw=", "height": 2522558, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9iz5brSsZsp6rLBWzsT5Svc3wTGuqHPQgdpqywWbEJBj Next: 6XLZV65AbZAtLjPGmgFXadNZyw3wKLtDBde5kyVjFsBb Diff:
OldNewDifferences
7272 then throw(asseterr)
7373 else if ((lastBlock.timestamp > EndTS))
7474 then throw(voteErr)
75- else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_Votes_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
75+ else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
7676 }
7777
7878
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VOTE = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
66 let voting_timestamp_controller_pubkey = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU'
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_Data_" + 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)
75- else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_Votes_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
75+ 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 DeleteKey (Key) = [DeleteEntry("Proposal Data_1"), DeleteEntry("Proposal Data_2"), DeleteEntry("Proposal_Data_3"), DeleteEntry(Key)]
8282
8383
8484 @Verifier(tx)
8585 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
8686

github/deemru/w8io/169f3d6 
37.25 ms