tx · twGAAwE7pin71SFyHNyocJ2LaTA8WXRQVbKkqMaU7hX
3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ: -0.01400000 Waves
2021.09.21 19:41 [1713063] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "twGAAwE7pin71SFyHNyocJ2LaTA8WXRQVbKkqMaU7hX",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1632242521129,
"version": 2,
"chainId": 84,
"sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ",
"senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD",
"proofs": [
"4ozovMAsA59NCJ1B4HZ6Ry2GxG75S9aAAXsmoCa77zTzHdnmfuQvX2HWqz2wcyaXEQJQMhoBweH2gb422SnMcEKG"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAAC1VTRFRBc3NldElEAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAEAAAABaQEAAAAEVm90ZQAAAAEAAAAORmF2b3VyaXRlQXNzZXQEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAADQwLjAwMDEgQTRBIFRva2VuIGlzIHJlcXVpcmVkIGFzIEF0dGFjaGVkIHBheW1lbnRbMV0uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC1dlZWswSGVpZ2h0AAAAAAAAGfPyBAAAAAhlYWNod2VlawAAAAAAAAAnYAQAAAASY3VycmVudHJ1bm5pbmd3ZWVrCQ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21lc3NhZ2UCAAAAJDxoMT5Zb3UgVm90ZWQgU3VjY2Vzc2Z1bGx5ITwvaDE+PGJyPgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAATQ3VycmVudF9Wb3RpbmdfV2VlawUAAAASY3VycmVudHJ1bm5pbmd3ZWVrCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAKQTRBQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnEuwEs",
"height": 1713063,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8LaJ5V67597dqQwdHx8ZuRGg6FyDfdBcWVMh7q68AFLW
Next: D1SDe3mfYVUwYCBPfaMoHDARe6tyZBHouX2H9zruQxVW
Diff:
Old | New | | Differences |
---|
15 | 15 | | let h = 10080 |
---|
16 | 16 | | let i = ((height - g) / h) |
---|
17 | 17 | | let j = assetBalance(addressFromPublicKey(c.callerPublicKey), a) |
---|
18 | | - | if (if (if (if ((d != "A4A")) |
---|
| 18 | + | if (if (if (if ((d == "A4A")) |
---|
19 | 19 | | then true |
---|
20 | | - | else (d != "ARRR")) |
---|
| 20 | + | else (d == "ARRR")) |
---|
21 | 21 | | then true |
---|
22 | | - | else (d != "TN")) |
---|
| 22 | + | else (d == "TN")) |
---|
23 | 23 | | then true |
---|
24 | | - | else (d != "WAVES")) |
---|
| 24 | + | else (d == "WAVES")) |
---|
25 | 25 | | then [StringEntry("Voted_Asset", d)] |
---|
26 | 26 | | else if ((100000000 > j)) |
---|
27 | 27 | | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") |
---|
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 | | - | if (if (if (if ((d != "A4A")) |
---|
| 18 | + | if (if (if (if ((d == "A4A")) |
---|
19 | 19 | | then true |
---|
20 | | - | else (d != "ARRR")) |
---|
| 20 | + | else (d == "ARRR")) |
---|
21 | 21 | | then true |
---|
22 | | - | else (d != "TN")) |
---|
| 22 | + | else (d == "TN")) |
---|
23 | 23 | | then true |
---|
24 | | - | else (d != "WAVES")) |
---|
| 24 | + | else (d == "WAVES")) |
---|
25 | 25 | | then [StringEntry("Voted_Asset", d)] |
---|
26 | 26 | | else if ((100000000 > j)) |
---|
27 | 27 | | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") |
---|
28 | 28 | | else if ((e.assetId != a)) |
---|
29 | 29 | | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only.")) |
---|
30 | 30 | | else if ((10000 > e.amount)) |
---|
31 | 31 | | then throw("Please Attach minimum 0.0001 A4A To Vote.") |
---|
32 | 32 | | else [StringEntry("message", "<h1>You Voted Successfully!</h1><br>"), IntegerEntry("Current_Voting_Week", i), ScriptTransfer(c.caller, 1, a)] |
---|
33 | 33 | | } |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Verifier(k) |
---|
37 | 37 | | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
38 | 38 | | |
---|