tx · 3nasqn7RGPAXZqkspngogUjPLujXRXZ1xATGe5ZbeGsH 3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd: -0.01400000 Waves 2023.04.14 09:39 [2533862] smart account 3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd > SELF 0.00000000 Waves
{ "type": 13, "id": "3nasqn7RGPAXZqkspngogUjPLujXRXZ1xATGe5ZbeGsH", "fee": 1400000, "feeAssetId": null, "timestamp": 1681454436055, "version": 2, "chainId": 84, "sender": "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd", "senderPublicKey": "AK6rRKpHobxNveEtJE5BBXbdwm9BpGL7ewP9Xb6VYuHx", "proofs": [ "35NB45VnC2HmDDeTn3NfdQoEdUAiRtze1detQd7NTG6vCmxELrSWGxgP1Eof3A88atdvkSe92gfttQuBbrFRyNyh" ], "script": "base64:AAIEAAAAAAAAABMIAhIFCgMIAQESAwoBARIDCgEBAAAABwAAAAAOQTRBU3Rha2luZ0RBcHAJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNONm9XTHlRWTJnTTdRVWtVdkJtZTFSRW5BNmQxVjd5M0FUAAAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACA7dEXxvlA55FKxmI42AI6/6uJD1h8gECoNXRixDQRDDAAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACJ2b3RpbmdfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAxsYXVuY2hfZXJyb3ICAAAAJERhcHAgd2lsbCBzdGFydCBWb3RpbmcgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAAC48aDE+WW91ciBWb3RlIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAABFBbHJlYWR5Vm90ZWRFcnJvcgIAAAA+VGhpcyBBZGRyZXNzIEFscm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AQkAASwAAAACBQAAAAxsYXVuY2hfZXJyb3IJAAGkAAAAAQUAAAAHU3RhcnRUUwMJAABmAAAAAggFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAFAAAABUVuZFRTCQAAAgAAAAEFAAAAB3ZvdGVFcnIDCQAAZgAAAAIFAAAAGExhdGVzdFVzZXJDb3VudGZvclZvdGluZwAAAAAAAAAAAQkAAAIAAAABBQAAABFBbHJlYWR5Vm90ZWRFcnJvcgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxUb3RhbF9Wb3Rlc18JAAGkAAAAAQUAAAALUG9ycG9zYWxfSUQFAAAACnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABlRvdGFsXwUAAAAHVm90ZUFzdAIAAAABXwkAAaQAAAABBQAAAAtQb3Jwb3NhbF9JRAUAAAAEQVRWTwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAABnB1YmtleQIAAAABXwkAAaQAAAABBQAAAAtQb3Jwb3NhbF9JRAUAAAAYTGF0ZXN0VXNlckNvdW50Zm9yVm90aW5nCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAA21zZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlQVZdu", "height": 2533862, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2A1DiTScbqRTCoFi8jhpDmVFr8Af87zhr2GpDohLPMG9 Next: 6PcfjjqZvaPU6iWQULv17q4S5FYA7MVNtibaSFt1kmCz Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = addressFromStringValue(" | |
4 | + | let a = addressFromStringValue("3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT") | |
5 | 5 | ||
6 | 6 | let b = base58'515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB' | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = addressFromStringValue(" | |
4 | + | let a = addressFromStringValue("3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT") | |
5 | 5 | ||
6 | 6 | let b = base58'515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB' | |
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>Your Vote Submitted Successfully!</h1><br>" | |
13 | 13 | ||
14 | 14 | let f = "This Address Already participated for Voting in this Proposal." | |
15 | 15 | ||
16 | 16 | let g = "Voting is Over for this Dapp." | |
17 | 17 | ||
18 | 18 | @Callable(h) | |
19 | 19 | func SetVotingTimeStamps (i,j,k) = { | |
20 | 20 | let l = j | |
21 | 21 | let m = k | |
22 | 22 | let n = getIntegerValue(a, "Staked_Amount") | |
23 | 23 | let o = fraction(n, 1, 3) | |
24 | 24 | let p = toBase58String(h.caller.bytes) | |
25 | 25 | let q = { | |
26 | 26 | let r = getInteger(this, "Total_Proposals") | |
27 | 27 | if ($isInstanceOf(r, "Int")) | |
28 | 28 | then { | |
29 | 29 | let s = r | |
30 | 30 | s | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let t = (q + 1) | |
35 | 35 | if ((size(i) > 5100)) | |
36 | 36 | then throw("Subject Char Limits are Over. Reduce length less than 5100 Char.") | |
37 | 37 | else if ((h.caller != c)) | |
38 | 38 | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
39 | 39 | else [StringEntry(("Proposal_Text_" + toString(t)), i), IntegerEntry("Total_Proposals", t), StringEntry(("Proposer_" + toString(t)), p), IntegerEntry(("Voting_Start_TimeStamp_" + toString(t)), l), IntegerEntry(("Voting_End_TimeStamp_" + toString(t)), m), IntegerEntry(("Quorum_" + toString(t)), o), IntegerEntry(("Total_Votes_" + toString(t)), 0), IntegerEntry(("Total_No_" + toString(t)), 0), IntegerEntry(("Total_Yes_" + toString(t)), 0)] | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(h) | |
45 | 45 | func Yes (u) = { | |
46 | 46 | let v = "Yes" | |
47 | 47 | let l = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(u))) | |
48 | 48 | let m = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(u))) | |
49 | 49 | let p = toBase58String(h.caller.bytes) | |
50 | 50 | let w = valueOrErrorMessage(getInteger(a, ("Deposit_Amount_Of_" + p)), "Address not found in A4A Staking.") | |
51 | 51 | let x = { | |
52 | 52 | let r = getInteger(this, ("Total_Votes_" + toString(u))) | |
53 | 53 | if ($isInstanceOf(r, "Int")) | |
54 | 54 | then { | |
55 | 55 | let s = r | |
56 | 56 | s | |
57 | 57 | } | |
58 | 58 | else 0 | |
59 | 59 | } | |
60 | 60 | let y = (x + w) | |
61 | 61 | let z = { | |
62 | 62 | let r = getInteger(this, ((("Total_" + v) + "_") + toString(u))) | |
63 | 63 | if ($isInstanceOf(r, "Int")) | |
64 | 64 | then { | |
65 | 65 | let s = r | |
66 | 66 | s | |
67 | 67 | } | |
68 | 68 | else 0 | |
69 | 69 | } | |
70 | 70 | let A = (z + w) | |
71 | 71 | let B = { | |
72 | 72 | let r = getInteger(this, ((p + "_") + toString(u))) | |
73 | 73 | if ($isInstanceOf(r, "Int")) | |
74 | 74 | then { | |
75 | 75 | let s = r | |
76 | 76 | s | |
77 | 77 | } | |
78 | 78 | else 0 | |
79 | 79 | } | |
80 | 80 | let C = (B + 1) | |
81 | 81 | if ((l > lastBlock.timestamp)) | |
82 | 82 | then throw((d + toString(l))) | |
83 | 83 | else if ((lastBlock.timestamp > m)) | |
84 | 84 | then throw(g) | |
85 | 85 | else if ((C > 1)) | |
86 | 86 | then throw(f) | |
87 | 87 | else [IntegerEntry(("Total_Votes_" + toString(u)), y), IntegerEntry(((("Total_" + v) + "_") + toString(u)), A), IntegerEntry(((p + "_") + toString(u)), C), StringEntry("message", e)] | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | ||
92 | 92 | @Callable(h) | |
93 | 93 | func No (u) = { | |
94 | 94 | let v = "No" | |
95 | 95 | let l = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(u))) | |
96 | 96 | let m = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(u))) | |
97 | 97 | let p = toBase58String(h.caller.bytes) | |
98 | 98 | let w = valueOrErrorMessage(getInteger(a, ("Deposit_Amount_Of_" + p)), "Address not found in A4A Staking.") | |
99 | 99 | let x = { | |
100 | 100 | let r = getInteger(this, ("Total_Votes_" + toString(u))) | |
101 | 101 | if ($isInstanceOf(r, "Int")) | |
102 | 102 | then { | |
103 | 103 | let s = r | |
104 | 104 | s | |
105 | 105 | } | |
106 | 106 | else 0 | |
107 | 107 | } | |
108 | 108 | let y = (x + w) | |
109 | 109 | let z = { | |
110 | 110 | let r = getInteger(this, ((("Total_" + v) + "_") + toString(u))) | |
111 | 111 | if ($isInstanceOf(r, "Int")) | |
112 | 112 | then { | |
113 | 113 | let s = r | |
114 | 114 | s | |
115 | 115 | } | |
116 | 116 | else 0 | |
117 | 117 | } | |
118 | 118 | let A = (z + w) | |
119 | 119 | let B = { | |
120 | 120 | let r = getInteger(this, ((p + "_") + toString(u))) | |
121 | 121 | if ($isInstanceOf(r, "Int")) | |
122 | 122 | then { | |
123 | 123 | let s = r | |
124 | 124 | s | |
125 | 125 | } | |
126 | 126 | else 0 | |
127 | 127 | } | |
128 | 128 | let C = (B + 1) | |
129 | 129 | if ((l > lastBlock.timestamp)) | |
130 | 130 | then throw((d + toString(l))) | |
131 | 131 | else if ((lastBlock.timestamp > m)) | |
132 | 132 | then throw(g) | |
133 | 133 | else if ((C > 1)) | |
134 | 134 | then throw(f) | |
135 | 135 | else [IntegerEntry(("Total_Votes_" + toString(u)), y), IntegerEntry(((("Total_" + v) + "_") + toString(u)), A), IntegerEntry(((p + "_") + toString(u)), C), StringEntry("message", e)] | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Verifier(D) | |
140 | 140 | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
141 | 141 |
github/deemru/w8io/169f3d6 38.03 ms ◑