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+B5uJ7eQOaVtSWu8sVA9tAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAInZvdGluZ190aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkAAAAADGxhdW5jaF9lcnJvcgIAAAAkRGFwcCB3aWxsIHN0YXJ0IFZvdGluZyBhdCBUaW1lc3RhbXAgAAAAAANtc2cCAAAALjxoMT5Zb3VyIFZvdGUgU3VibWl0dGVkIFN1Y2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ACXRpbWVzdGFtcAkAAAIAAAABCQABLAAAAAIFAAAADGxhdW5jaF9lcnJvcgkAAaQAAAABBQAAAAdTdGFydFRTAwkAAGYAAAACCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAUAAAAFRW5kVFMJAAACAAAAAQUAAAAHdm90ZUVycgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxUb3RhbF9Wb3Rlc18JAAGkAAAAAQUAAAALUG9ycG9zYWxfSUQFAAAACnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABlRvdGFsXwUAAAAHVm90ZUFzdAIAAAABXwkAAaQAAAABBQAAAAtQb3Jwb3NhbF9JRAUAAAAEQVRWTwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlBQAAAANtc2cFAAAAA25pbAAAAAFpAQAAAAlEZWxldGVLZXkAAAABAAAAA0tleQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANLZXkFAAAAA25pbAAAAAFpAQAAAAhFbnRlcktleQAAAAEAAAADS2V5CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAASRGVwb3NpdF9BbW91bnRfT2ZfBQAAAANLZXkFAAAAA0tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlQ9aYt", "height": 2528327, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYi7aKtP4M78oJGJTUgnU2EVASzfEgKarmQRwtqcRpsk Next: ATLveBnJXgkyG6c8ZeqVgspFYYJCunFf7WenbCmQWVU2 Diff:
Old | New | Differences | |
---|---|---|---|
83 | 83 | func DeleteKey (B) = [DeleteEntry(B)] | |
84 | 84 | ||
85 | 85 | ||
86 | + | ||
87 | + | @Callable(j) | |
88 | + | func EnterKey (B) = [StringEntry(("Deposit_Amount_Of_" + B), B)] | |
89 | + | ||
90 | + | ||
86 | 91 | @Verifier(C) | |
87 | 92 | func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey) | |
88 | 93 |
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 | 18 | let h = (("Incorrect asset attach, please attach " + toBase58String(a)) + " AssetID Only.") | |
19 | 19 | ||
20 | 20 | let i = "Voting is Over for this Dapp." | |
21 | 21 | ||
22 | 22 | @Callable(j) | |
23 | 23 | func SetVotingTimeStamps (k,l,m) = { | |
24 | 24 | let n = l | |
25 | 25 | let o = m | |
26 | 26 | let p = toBase58String(j.caller.bytes) | |
27 | 27 | let q = { | |
28 | 28 | let r = getInteger(this, "Total_Proposals") | |
29 | 29 | if ($isInstanceOf(r, "Int")) | |
30 | 30 | then { | |
31 | 31 | let s = r | |
32 | 32 | s | |
33 | 33 | } | |
34 | 34 | else 0 | |
35 | 35 | } | |
36 | 36 | let t = (q + 1) | |
37 | 37 | if ((size(k) > 5100)) | |
38 | 38 | then throw("Subject Char Limits are Over. Reduce length less than 5100 Char.") | |
39 | 39 | else if ((j.caller != d)) | |
40 | 40 | then throw((("This Address is not Authorized. Only " + toString(d)) + " is Authorized Address to Sign it.")) | |
41 | 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 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | ||
46 | 46 | @Callable(j) | |
47 | 47 | func Yes (u) = { | |
48 | 48 | let v = "Yes" | |
49 | 49 | let n = getIntegerValue(this, ("Voting_Start_TimeStamp_" + toString(u))) | |
50 | 50 | let o = getIntegerValue(this, ("Voting_End_TimeStamp_" + toString(u))) | |
51 | 51 | let p = toBase58String(j.caller.bytes) | |
52 | 52 | let w = valueOrErrorMessage(getInteger(b, ("Deposit_Amount_Of_" + p)), "Address not found in A4A Staking.") | |
53 | 53 | let x = { | |
54 | 54 | let r = getInteger(this, ("Total_Votes_" + toString(u))) | |
55 | 55 | if ($isInstanceOf(r, "Int")) | |
56 | 56 | then { | |
57 | 57 | let s = r | |
58 | 58 | s | |
59 | 59 | } | |
60 | 60 | else 0 | |
61 | 61 | } | |
62 | 62 | let y = (x + w) | |
63 | 63 | let z = { | |
64 | 64 | let r = getInteger(this, ((("Total_" + v) + "_") + toString(u))) | |
65 | 65 | if ($isInstanceOf(r, "Int")) | |
66 | 66 | then { | |
67 | 67 | let s = r | |
68 | 68 | s | |
69 | 69 | } | |
70 | 70 | else 0 | |
71 | 71 | } | |
72 | 72 | let A = (z + w) | |
73 | 73 | if ((n > lastBlock.timestamp)) | |
74 | 74 | then throw((e + toString(n))) | |
75 | 75 | else if ((lastBlock.timestamp > o)) | |
76 | 76 | then throw(i) | |
77 | 77 | else [IntegerEntry(("Total_Votes_" + toString(u)), y), IntegerEntry(((("Total_" + v) + "_") + toString(u)), A), StringEntry("message", f)] | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(j) | |
83 | 83 | func DeleteKey (B) = [DeleteEntry(B)] | |
84 | 84 | ||
85 | 85 | ||
86 | + | ||
87 | + | @Callable(j) | |
88 | + | func EnterKey (B) = [StringEntry(("Deposit_Amount_Of_" + B), B)] | |
89 | + | ||
90 | + | ||
86 | 91 | @Verifier(C) | |
87 | 92 | func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey) | |
88 | 93 |
github/deemru/w8io/026f985 52.47 ms ◑