tx · 5LRbxejeXXFFcCt7g4v1k3DRze6ix2zduVyqnCPuHXjb 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ: -0.01400000 Waves 2021.09.21 20:09 [1713090] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves
{ "type": 13, "id": "5LRbxejeXXFFcCt7g4v1k3DRze6ix2zduVyqnCPuHXjb", "fee": 1400000, "feeAssetId": null, "timestamp": 1632244161707, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "3qEGeU7tzAACB7LVPZPFM61j3Fd7yxooZn4gNZf52tQFdfhMj947Nm1A4FkcT7ZQ2iKvY24eXbXzd9qkKvruHaUX" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAAC1VTRFRBc3NldElEAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAEAAAABaQEAAAAEVm90ZQAAAAEAAAAORmF2b3VyaXRlQXNzZXQEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAADQwLjAwMDEgQTRBIFRva2VuIGlzIHJlcXVpcmVkIGFzIEF0dGFjaGVkIHBheW1lbnRbMV0uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC1dlZWswSGVpZ2h0AAAAAAAAGfPyBAAAAAhlYWNod2VlawAAAAAAAAAnYAQAAAASY3VycmVudHJ1bm5pbmd3ZWVrCQAAaQAAA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WW91IFZvdGVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAE0N1cnJlbnRfVm90aW5nX1dlZWsFAAAAEmN1cnJlbnRydW5uaW5nd2VlawkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAACkE0QUFzc2V0SUQFAAAAA25pbAkAAAIAAAABAgAAAAtJbnB1dCBFcnJvcgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Pqleiw==", "height": 1713090, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2jSwRkGnn9voi5PGepoP9v5PgZ6sUjGy6WnC1wERe9QP Next: 5FA22RKW1a4tye6Tw711c9K1z1hJqq3WBJjTBH8EjSXS Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook' | |
5 | 5 | ||
6 | 6 | let b = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func Vote (d) = { | |
10 | 10 | let e = if ((size(c.payments) == 1)) | |
11 | 11 | then c.payments[0] | |
12 | 12 | else throw("0.0001 A4A Token is required as Attached payment[1].") | |
13 | 13 | let f = toBase58String(c.caller.bytes) | |
14 | 14 | let g = 1700850 | |
15 | 15 | let h = 10080 | |
16 | 16 | let i = ((height - g) / h) | |
17 | 17 | let j = assetBalance(addressFromPublicKey(c.callerPublicKey), a) | |
18 | 18 | if ((100000000 > j)) | |
19 | 19 | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
20 | 20 | else if ((e.assetId != a)) | |
21 | 21 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) | |
22 | 22 | else if ((10000 > e.amount)) | |
23 | 23 | then throw("Please Attach minimum 0.0001 A4A To Vote.") | |
24 | 24 | else if (if (if (if ((d == "A4A")) | |
25 | 25 | then true | |
26 | 26 | else (d == "ARRR")) | |
27 | 27 | then true | |
28 | 28 | else (d == "TN")) | |
29 | 29 | then true | |
30 | 30 | else (d == "WAVES")) | |
31 | 31 | then [StringEntry("Voted_Asset", d), StringEntry("message", "<h1>You Voted Successfully!</h1><br>"), IntegerEntry("Current_Voting_Week", i), ScriptTransfer(c.caller, 1, a)] | |
32 | 32 | else throw("Input Error") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Verifier(k) | |
37 | 37 | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) | |
38 | 38 |
github/deemru/w8io/169f3d6 20.53 ms ◑