tx · FUjz2gTHMT43JYYS5X4qdW3po2aDmVS1c8NxBqTH8j6D 3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr: -0.01400000 Waves 2023.03.13 14:13 [2488175] smart account 3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr > SELF 0.00000000 Waves
{ "type": 13, "id": "FUjz2gTHMT43JYYS5X4qdW3po2aDmVS1c8NxBqTH8j6D", "fee": 1400000, "feeAssetId": null, "timestamp": 1678706107617, "version": 2, "chainId": 84, "sender": "3NBLecFWuYaQuc56Nt6nZm8jdPt9f8vfyFr", "senderPublicKey": "GV3FbBXZru1WpaCa9x1zhwSWrXSDrxKMVEV7BML6EzY1", "proofs": [ "hQXa88SGHx1deNeUu8QVSTi1jdwB2AgYqq8Pkxp1vouWrp7T5tWgVrDmtcMP8XPMuPzJbWJhVbn9DLCM3W9JJBM" ], "script": "base64:AAIEAAAAAAAAAAsIAhIFCgMBAQESAAAAAA0AAAAABFZPVEUBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACAbvUu+h+2As3kugOhMQC3bvgebie3kDmlbUlrvLFQPbQAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAxsYXVuY2hfZXJyb3ICAAAAJERhcHAgd2lsbCBzdGFydCBWb3RpbmcgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAAC08aDE+WW91IFZvdGUgU3VibWl0dGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4AAAAACXB5bXRlcnJvcgIAAAAsREFwcCBOZWVkIDEgVk9URSBUb2tlbiBhcyBBdHRhY2ggcGF5bWVudFsxXS4AAAAAC21pbmJhbGVycm9yAgAAAF5NaW4uIDE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AAAACCQABLAAAAAIJAAEsAAAAAgIAAAAXVXNlcl9Ub3RhbF9Bc3NldF9Wb3Rlc18FAAAABnB1YmtleQIAAAABXwUAAAAHVm90ZUFzdAUAAAAFVVRWRkEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAADbXNnBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleV4IdNA=", "height": 2488175, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7vd6VeeiRNV4YxG5cbMNdbmzzTamZ7ynynS3aerfeRra Next: E5kiUeHyKV9F7vGadeFsTYDN4qaqbb8GVvGWAGQeLiLG Diff:
Old | New | Differences | |
---|---|---|---|
36 | 36 | let o = (l + 1) | |
37 | 37 | ||
38 | 38 | @Callable(p) | |
39 | - | func SetVotingTimeStamps (q,r) = { | |
40 | - | let | |
41 | - | let | |
39 | + | func SetVotingTimeStamps (q,r,s) = { | |
40 | + | let t = q | |
41 | + | let u = r | |
42 | 42 | if ((p.caller != c)) | |
43 | 43 | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
44 | - | else [IntegerEntry("Voting_Start_TimeStamp", | |
44 | + | else [IntegerEntry("Voting_Start_TimeStamp", t), IntegerEntry("Voting_End_TimeStamp", u), IntegerEntry("Total_Tokens_Distributed", s)] | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(p) | |
50 | 50 | func Option1 () = { | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | let | |
55 | - | let | |
51 | + | let v = "OPTION_1" | |
52 | + | let t = getIntegerValue(this, "Voting_Start_TimeStamp") | |
53 | + | let u = getIntegerValue(this, "Voting_End_TimeStamp") | |
54 | + | let w = toBase58String(p.caller.bytes) | |
55 | + | let x = if ((size(p.payments) == 1)) | |
56 | 56 | then p.payments[0] | |
57 | 57 | else throw(f) | |
58 | - | let | |
59 | - | let | |
60 | - | let m = getInteger(this, ("User_Total_Votes_" + | |
58 | + | let y = assetBalance(addressFromPublicKey(p.callerPublicKey), a) | |
59 | + | let z = { | |
60 | + | let m = getInteger(this, ("User_Total_Votes_" + w)) | |
61 | 61 | if ($isInstanceOf(m, "Int")) | |
62 | 62 | then { | |
63 | 63 | let n = m | |
65 | 65 | } | |
66 | 66 | else 0 | |
67 | 67 | } | |
68 | - | let | |
69 | - | let | |
70 | - | let m = getInteger(this, ((("User_Total_Votes_" + | |
68 | + | let A = (z + 1) | |
69 | + | let B = { | |
70 | + | let m = getInteger(this, ((("User_Total_Votes_" + w) + "-") + v)) | |
71 | 71 | if ($isInstanceOf(m, "Int")) | |
72 | 72 | then { | |
73 | 73 | let n = m | |
75 | 75 | } | |
76 | 76 | else 0 | |
77 | 77 | } | |
78 | - | let | |
79 | - | let | |
80 | - | let m = getInteger(this, ((("User_Total_Asset_Votes_" + | |
78 | + | let C = (B + 1) | |
79 | + | let D = { | |
80 | + | let m = getInteger(this, ((("User_Total_Asset_Votes_" + w) + "_") + v)) | |
81 | 81 | if ($isInstanceOf(m, "Int")) | |
82 | 82 | then { | |
83 | 83 | let n = m | |
85 | 85 | } | |
86 | 86 | else 0 | |
87 | 87 | } | |
88 | - | let | |
89 | - | let | |
90 | - | let m = getInteger(this, ("Total_Votes_" + | |
88 | + | let E = (D + 1) | |
89 | + | let F = { | |
90 | + | let m = getInteger(this, ("Total_Votes_" + v)) | |
91 | 91 | if ($isInstanceOf(m, "Int")) | |
92 | 92 | then { | |
93 | 93 | let n = m | |
95 | 95 | } | |
96 | 96 | else 0 | |
97 | 97 | } | |
98 | - | let | |
99 | - | if (( | |
100 | - | then throw((d + toString( | |
101 | - | else if ((1 > | |
98 | + | let G = (F + 1) | |
99 | + | if ((t > lastBlock.timestamp)) | |
100 | + | then throw((d + toString(t))) | |
101 | + | else if ((1 > y)) | |
102 | 102 | then throw(g) | |
103 | - | else if (( | |
103 | + | else if ((x.assetId != a)) | |
104 | 104 | then throw(h) | |
105 | - | else if (( | |
105 | + | else if ((x.amount != 1)) | |
106 | 106 | then throw(i) | |
107 | - | else if (( | |
107 | + | else if ((A > 1)) | |
108 | 108 | then throw(k) | |
109 | - | else if ((lastBlock.timestamp > | |
109 | + | else if ((lastBlock.timestamp > u)) | |
110 | 110 | then throw(j) | |
111 | - | else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + | |
111 | + | else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + v), G), IntegerEntry(("User_Total_Votes_" + w), A), IntegerEntry(((("User_Total_Votes_" + w) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + w) + "_") + v), E), StringEntry("message", e)] | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | - | @Verifier( | |
116 | - | func | |
115 | + | @Verifier(H) | |
116 | + | func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey) | |
117 | 117 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | let b = base58'2sHRUrJCMpDhAQEcN7Zhk3LqnD9zizebpxeQXpPoscQU' | |
7 | 7 | ||
8 | 8 | let c = addressFromPublicKey(b) | |
9 | 9 | ||
10 | 10 | let d = "Dapp will start Voting at Timestamp " | |
11 | 11 | ||
12 | 12 | let e = "<h1>You Vote Submitted Successfully!</h1><br>" | |
13 | 13 | ||
14 | 14 | let f = "DApp Need 1 VOTE Token as Attach payment[1]." | |
15 | 15 | ||
16 | 16 | let g = "Min. 1 VOTE required on Your Address to Vote. Please Mint or hold min. 1 VOTE on this Address." | |
17 | 17 | ||
18 | 18 | let h = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.") | |
19 | 19 | ||
20 | 20 | let i = "Please Attach Exact 1 VOTE To Vote." | |
21 | 21 | ||
22 | 22 | let j = "Voting is Over for this Dapp." | |
23 | 23 | ||
24 | 24 | let k = "You have Already Voted from this address." | |
25 | 25 | ||
26 | 26 | let l = { | |
27 | 27 | let m = getInteger(this, "Total_Votes") | |
28 | 28 | if ($isInstanceOf(m, "Int")) | |
29 | 29 | then { | |
30 | 30 | let n = m | |
31 | 31 | n | |
32 | 32 | } | |
33 | 33 | else 0 | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | let o = (l + 1) | |
37 | 37 | ||
38 | 38 | @Callable(p) | |
39 | - | func SetVotingTimeStamps (q,r) = { | |
40 | - | let | |
41 | - | let | |
39 | + | func SetVotingTimeStamps (q,r,s) = { | |
40 | + | let t = q | |
41 | + | let u = r | |
42 | 42 | if ((p.caller != c)) | |
43 | 43 | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
44 | - | else [IntegerEntry("Voting_Start_TimeStamp", | |
44 | + | else [IntegerEntry("Voting_Start_TimeStamp", t), IntegerEntry("Voting_End_TimeStamp", u), IntegerEntry("Total_Tokens_Distributed", s)] | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(p) | |
50 | 50 | func Option1 () = { | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | let | |
55 | - | let | |
51 | + | let v = "OPTION_1" | |
52 | + | let t = getIntegerValue(this, "Voting_Start_TimeStamp") | |
53 | + | let u = getIntegerValue(this, "Voting_End_TimeStamp") | |
54 | + | let w = toBase58String(p.caller.bytes) | |
55 | + | let x = if ((size(p.payments) == 1)) | |
56 | 56 | then p.payments[0] | |
57 | 57 | else throw(f) | |
58 | - | let | |
59 | - | let | |
60 | - | let m = getInteger(this, ("User_Total_Votes_" + | |
58 | + | let y = assetBalance(addressFromPublicKey(p.callerPublicKey), a) | |
59 | + | let z = { | |
60 | + | let m = getInteger(this, ("User_Total_Votes_" + w)) | |
61 | 61 | if ($isInstanceOf(m, "Int")) | |
62 | 62 | then { | |
63 | 63 | let n = m | |
64 | 64 | n | |
65 | 65 | } | |
66 | 66 | else 0 | |
67 | 67 | } | |
68 | - | let | |
69 | - | let | |
70 | - | let m = getInteger(this, ((("User_Total_Votes_" + | |
68 | + | let A = (z + 1) | |
69 | + | let B = { | |
70 | + | let m = getInteger(this, ((("User_Total_Votes_" + w) + "-") + v)) | |
71 | 71 | if ($isInstanceOf(m, "Int")) | |
72 | 72 | then { | |
73 | 73 | let n = m | |
74 | 74 | n | |
75 | 75 | } | |
76 | 76 | else 0 | |
77 | 77 | } | |
78 | - | let | |
79 | - | let | |
80 | - | let m = getInteger(this, ((("User_Total_Asset_Votes_" + | |
78 | + | let C = (B + 1) | |
79 | + | let D = { | |
80 | + | let m = getInteger(this, ((("User_Total_Asset_Votes_" + w) + "_") + v)) | |
81 | 81 | if ($isInstanceOf(m, "Int")) | |
82 | 82 | then { | |
83 | 83 | let n = m | |
84 | 84 | n | |
85 | 85 | } | |
86 | 86 | else 0 | |
87 | 87 | } | |
88 | - | let | |
89 | - | let | |
90 | - | let m = getInteger(this, ("Total_Votes_" + | |
88 | + | let E = (D + 1) | |
89 | + | let F = { | |
90 | + | let m = getInteger(this, ("Total_Votes_" + v)) | |
91 | 91 | if ($isInstanceOf(m, "Int")) | |
92 | 92 | then { | |
93 | 93 | let n = m | |
94 | 94 | n | |
95 | 95 | } | |
96 | 96 | else 0 | |
97 | 97 | } | |
98 | - | let | |
99 | - | if (( | |
100 | - | then throw((d + toString( | |
101 | - | else if ((1 > | |
98 | + | let G = (F + 1) | |
99 | + | if ((t > lastBlock.timestamp)) | |
100 | + | then throw((d + toString(t))) | |
101 | + | else if ((1 > y)) | |
102 | 102 | then throw(g) | |
103 | - | else if (( | |
103 | + | else if ((x.assetId != a)) | |
104 | 104 | then throw(h) | |
105 | - | else if (( | |
105 | + | else if ((x.amount != 1)) | |
106 | 106 | then throw(i) | |
107 | - | else if (( | |
107 | + | else if ((A > 1)) | |
108 | 108 | then throw(k) | |
109 | - | else if ((lastBlock.timestamp > | |
109 | + | else if ((lastBlock.timestamp > u)) | |
110 | 110 | then throw(j) | |
111 | - | else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + | |
111 | + | else [IntegerEntry("Total_Votes", o), IntegerEntry(("Total_Votes_" + v), G), IntegerEntry(("User_Total_Votes_" + w), A), IntegerEntry(((("User_Total_Votes_" + w) + "-") + v), C), IntegerEntry(((("User_Total_Asset_Votes_" + w) + "_") + v), E), StringEntry("message", e)] | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | - | @Verifier( | |
116 | - | func | |
115 | + | @Verifier(H) | |
116 | + | func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey) | |
117 | 117 |
github/deemru/w8io/169f3d6 41.72 ms ◑