tx · 3TVqcYtavwHN91fMD6QH5sKAq4y4j4Ekv6FjXhLDxaYa 3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd: -0.01400000 Waves 2023.04.10 12:46 [2528317] smart account 3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd > SELF 0.00000000 Waves
{ "type": 13, "id": "3TVqcYtavwHN91fMD6QH5sKAq4y4j4Ekv6FjXhLDxaYa", "fee": 1400000, "feeAssetId": null, "timestamp": 1681119968370, "version": 2, "chainId": 84, "sender": "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd", "senderPublicKey": "AK6rRKpHobxNveEtJE5BBXbdwm9BpGL7ewP9Xb6VYuHx", "proofs": [ "4JkG4MNRzjEYL2JrBbtgvsJfDU6ZuwVwSy8ixq6Y7zjkXtCwPbs313YBrv2ZbXABwjv7L4fpwpVepg2BAvwjsyAf" ], "script": "base64:AAIEAAAAAAAAABMIAhIFCgMIAQESAwoBARIDCgEIAAAACQAAAAADQTRBAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAAOQTRBU3Rha2luZ0RBcHAJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNKdmlXaHNjTm1VZHVFalRZTEJZb1BucmY0Yzh5ZWdQaTNQAAAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDcKCmq97Q85azVhInAnEo5B90oOZE/K9d91mIRW9+6VQAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAxsYXVuY2hfZXJyb3ICAAAAJERhcHAgd2lsbCBzdGFydCBWb3RpbmcgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAAC48aDE+WW91ciBWb3RlIFN1Ym1pdHRlZCBTdWNjZXNzZnV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AAAAJdGltZXN0YW1wCQAAAgAAAAEJAAEsAAAAAgUAAAAMbGF1bmNoX2Vycm9yCQABpAAAAAEFAAAAB1N0YXJ0VFMDCQAAZgAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wBQAAAAVFbmRUUwkAAAIAAAABBQAAAAd2b3RlRXJyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADFRvdGFsX1ZvdGVzXwkAAaQAAAABBQAAAAtQb3Jwb3NhbF9JRAUAAAAKdG90YWx2b3RlcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGVG90YWxfBQAAAAdWb3RlQXN0AgAAAAFfCQABpAAAAAEFAAAAC1BvcnBvc2FsX0lEBQAAAARBVFZPCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAA21zZwUAAAADbmlsAAAAAWkBAAAACURlbGV0ZUtleQAAAAEAAAADS2V5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA0tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkZsgc3", "height": 2528317, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4mURRdRKD3Gxue5WLY1F6SfTYpnkwqFDX3nWWX53xjER Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | + | ||
6 | + | let b = addressFromStringValue("3JviWhscNmUduEjTYLBYoPnrf4c8yegPi3P") | |
7 | + | ||
8 | + | let c = base58'FpQDPkicMwf8q2FJRfT3wfh4RxXy5C8pgqMSQRZdfW3W' | |
9 | + | ||
10 | + | let d = addressFromPublicKey(c) | |
11 | + | ||
12 | + | let e = "Dapp will start Voting at Timestamp " | |
13 | + | ||
14 | + | let f = "<h1>Your Vote Submitted Successfully!</h1><br>" | |
15 | + | ||
16 | + | let g = "DApp Need 0.00000001 A4A Token as Attach payment[1]." | |
17 | + | ||
18 | + | let h = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.") | |
19 | + | ||
20 | + | let i = "Voting is Over for this Dapp." | |
21 | + | ||
22 | + | @Callable(j) | |
23 | + | func SetVotingTimeStamps (k,l,m) = { | |
24 | + | let n = l | |
25 | + | let o = m | |
26 | + | let p = toBase58String(j.caller.bytes) | |
27 | + | let q = { | |
28 | + | let r = getInteger(this, "Total_Proposals") | |
29 | + | if ($isInstanceOf(r, "Int")) | |
30 | + | then { | |
31 | + | let s = r | |
32 | + | s | |
33 | + | } | |
34 | + | else 0 | |
35 | + | } | |
36 | + | let t = (q + 1) | |
37 | + | if ((size(k) > 5100)) | |
38 | + | then throw("Subject Char Limits are Over. Reduce length less than 5100 Char.") | |
39 | + | else if ((j.caller != d)) | |
40 | + | then throw((("This Address is not Authorized. Only " + toString(d)) + " is Authorized Address to Sign it.")) | |
41 | + | else [StringEntry(("Proposal_Text_" + toString(t)), k), IntegerEntry("Total_Proposals", t), StringEntry(("Proposer_" + toString(t)), p), IntegerEntry(("Voting_Start_TimeStamp_" + toString(t)), n), IntegerEntry(("Voting_End_TimeStamp_" + toString(t)), o)] | |
42 | + | } | |
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | @Callable(j) | |
47 | + | func Yes (u) = { | |
48 | + | let v = "Yes" | |
49 | + | let n = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(u))) | |
50 | + | let o = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(u))) | |
51 | + | let p = toBase58String(j.caller.bytes) | |
52 | + | let w = valueOrErrorMessage(getIntegerValue(b, ("Deposit_Amount_Of_" + p)), "Address not found in A4A Staking.") | |
53 | + | let x = { | |
54 | + | let r = getInteger(this, ("Total_Votes_" + toString(u))) | |
55 | + | if ($isInstanceOf(r, "Int")) | |
56 | + | then { | |
57 | + | let s = r | |
58 | + | s | |
59 | + | } | |
60 | + | else 0 | |
61 | + | } | |
62 | + | let y = (x + w) | |
63 | + | let z = { | |
64 | + | let r = getInteger(this, ((("Total_" + v) + "_") + toString(u))) | |
65 | + | if ($isInstanceOf(r, "Int")) | |
66 | + | then { | |
67 | + | let s = r | |
68 | + | s | |
69 | + | } | |
70 | + | else 0 | |
71 | + | } | |
72 | + | let A = (z + w) | |
73 | + | if ((n > lastBlock.timestamp)) | |
74 | + | then throw((e + toString(n))) | |
75 | + | else if ((lastBlock.timestamp > o)) | |
76 | + | then throw(i) | |
77 | + | else [IntegerEntry(("Total_Votes_" + toString(u)), y), IntegerEntry(((("Total_" + v) + "_") + toString(u)), A), StringEntry("message", f)] | |
78 | + | } | |
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | @Callable(j) | |
83 | + | func DeleteKey (B) = [DeleteEntry(B)] | |
84 | + | ||
85 | + | ||
86 | + | @Verifier(C) | |
87 | + | func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey) | |
88 | + |
github/deemru/w8io/169f3d6 21.54 ms ◑