tx · 9FKQRXUF7i4uhctiwPRYUJDAVpT2GZxxEvUxq9HYhk6r

3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd:  -0.01400000 Waves

2023.04.10 12:56 [2528327] smart account 3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd > SELF 0.00000000 Waves

{ "type": 13, "id": "9FKQRXUF7i4uhctiwPRYUJDAVpT2GZxxEvUxq9HYhk6r", "fee": 1400000, "feeAssetId": null, "timestamp": 1681120613047, "version": 2, "chainId": 84, "sender": "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd", "senderPublicKey": "AK6rRKpHobxNveEtJE5BBXbdwm9BpGL7ewP9Xb6VYuHx", "proofs": [ "43cXGYYnXPGq3ptCB1UsqLZgFDHVcmf69vSRzUeKRgMZsVbiZgTWrZTQZ3Sg8ahWL2tVQ1RTQsHyk7LGSE1em4jm" ], "script": "base64:AAIEAAAAAAAAABgIAhIFCgMIAQESAwoBARIDCgEIEgMKAQgAAAAJAAAAAANBNEEBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAA5BNEFTdGFraW5nREFwcAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM042b1dMeVFZMmdNN1FVa1V2Qm1lMVJFbkE2ZDFWN3kzQVQAAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIBu9S76H7YCzeS6A6ExALdu+B5uJ7eQOaVtSWu8sVA9tAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkAAAAADGxhdW5jaF9lcnJvcgIAAAAkRGFwcCB3aWxsIHN0YXJ0IFZvdGluZyBhdCBUaW1lc3RhbXAgAAAAAANtc2cCAAAALjxoMT5Zb3VyIFZvdGUgU3VibWl0dGVkIFN1Y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AACXRpbWVzdGFtcAkAAAIAAAABCQABLAAAAAIFAAAADGxhdW5jaF9lcnJvcgkAAaQAAAABBQAAAAdTdGFydFRTAwkAAGYAAAACCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAUAAAAFRW5kVFMJAAACAAAAAQUAAAAHdm90ZUVycgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxUb3RhbF9Wb3Rlc18JAAGkAAAAAQUAAAALUG9ycG9zYWxfSUQFAAAACnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABlRvdGFsXwUAAAAHVm90ZUFzdAIAAAABXwkAAaQAAAABBQAAAAtQb3Jwb3NhbF9JRAUAAAAEQVRWTwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlBQAAAANtc2cFAAAAA25pbAAAAAFpAQAAAAlEZWxldGVLZXkAAAABAAAAA0tleQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANLZXkFAAAAA25pbAAAAAFpAQAAAAhFbnRlcktleQAAAAEAAAADS2V5CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAASRGVwb3NpdF9BbW91bnRfT2ZfBQAAAANLZXkFAAAAA0tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlQ9aYt", "height": 2528327, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYi7aKtP4M78oJGJTUgnU2EVASzfEgKarmQRwtqcRpsk Next: ATLveBnJXgkyG6c8ZeqVgspFYYJCunFf7WenbCmQWVU2 Diff:
OldNewDifferences
7474 func DeleteKey (Key) = [DeleteEntry(Key)]
7575
7676
77+
78+@Callable(i)
79+func EnterKey (Key) = [StringEntry(("Deposit_Amount_Of_" + Key), Key)]
80+
81+
7782 @Verifier(tx)
7883 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7984
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let A4A = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
66 let A4AStakingDApp = addressFromStringValue("3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT")
77
88 let voting_timestamp_controller_pubkey = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU'
99
1010 let controller_address = addressFromPublicKey(voting_timestamp_controller_pubkey)
1111
1212 let launch_error = "Dapp will start Voting at Timestamp "
1313
1414 let msg = "<h1>Your Vote Submitted Successfully!</h1><br>"
1515
1616 let pymterror = "DApp Need 0.00000001 A4A Token as Attach payment[1]."
1717
1818 let asseterr = (("Incorrect asset attach, please attach " + toBase58String(A4A)) + " 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 readA4AStakingAmount = valueOrErrorMessage(getInteger(A4AStakingDApp, ("Deposit_Amount_Of_" + pubkey)), "Address not found in A4A Staking.")
5050 let Previoustotalvotes = match getInteger(this, ("Total_Votes_" + toString(Porposal_ID))) {
5151 case a: Int =>
5252 a
5353 case _ =>
5454 0
5555 }
5656 let totalvotes = (Previoustotalvotes + readA4AStakingAmount)
5757 let FTVO = match getInteger(this, ((("Total_" + VoteAst) + "_") + toString(Porposal_ID))) {
5858 case a: Int =>
5959 a
6060 case _ =>
6161 0
6262 }
6363 let ATVO = (FTVO + readA4AStakingAmount)
6464 if ((StartTS > lastBlock.timestamp))
6565 then throw((launch_error + toString(StartTS)))
6666 else if ((lastBlock.timestamp > EndTS))
6767 then throw(voteErr)
6868 else [IntegerEntry(("Total_Votes_" + toString(Porposal_ID)), totalvotes), IntegerEntry(((("Total_" + VoteAst) + "_") + toString(Porposal_ID)), ATVO), StringEntry("message", msg)]
6969 }
7070
7171
7272
7373 @Callable(i)
7474 func DeleteKey (Key) = [DeleteEntry(Key)]
7575
7676
77+
78+@Callable(i)
79+func EnterKey (Key) = [StringEntry(("Deposit_Amount_Of_" + Key), Key)]
80+
81+
7782 @Verifier(tx)
7883 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7984

github/deemru/w8io/026f985 
26.69 ms