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