tx · 4aWU5RUmhLqBQwWcMeNjaac1bESLUed51VdYcpz24bkp

3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ:  -0.01400000 Waves

2021.09.22 16:27 [1714322] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves

{ "type": 13, "id": "4aWU5RUmhLqBQwWcMeNjaac1bESLUed51VdYcpz24bkp", "fee": 1400000, "feeAssetId": null, "timestamp": 1632317234533, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "5oPupgcS7oQ5ALJptwNMv31hv1GYdabuiQ3piDPDZPQw6ZSBcLmvVZbwvzDSmi54djaHqaxRNwke8DaEK6dMoxtA" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAAC1VTRFRBc3NldElEAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAEAAAABaQEAAAAKV2Vla2x5Vm90ZQAAAAEAAAAORmF2b3VyaXRlQXNzZXQEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAADlXZWVrbHkgVm90ZSBOZWVkIDAuMDAwMSBBNEEgVG9rZW4gYXMgQXR0YWNoZWQgcGF5bWVudFsxXS4EAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAOV2VlazBUaW1lc3RhbXAAAAABezVny8AEAAAACGVhY2h3ZWVrAAAAAAAkDIQABAAAAAhlYWNoaG91cgAAAAAAAD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awAAAAl0aW1lc3RhbXAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAE01vZHVsZV9SdW5uaW5nX1dlZWsFAAAAEU1vZHVsZXJ1bm5pbmd3ZWVrCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAADkZhdm91cml0ZUFzc2V0AgAAAAxfVG90YWxfVm90ZXMFAAAACnRvdGFsdm90ZXMJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAApBNEFBc3NldElEBQAAAANuaWwJAAACAAAAAQIAAAAlQmxhbmsvV3JvbmcgSW5wdXQgRW50ZXJlZCBGb3IgVm90aW5nLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5y3I4pA==", "height": 1714322, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8xiwGJCpTVwVmZEwuupmt6pdhjxTaW1mpQGEK1uLsPaM Next: DGfAZKim6muLRoZA7JmaaH5RmUjV3y7v656SZgPUEeQj Diff:
OldNewDifferences
1111 then c.payments[0]
1212 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
1313 let f = toBase58String(c.caller.bytes)
14- let g = 1628681400
14+ let g = 1628688600000
1515 let h = 604800000
1616 let i = 3600000
1717 let j = 3600000
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook'
55
66 let b = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
77
88 @Callable(c)
99 func WeeklyVote (d) = {
1010 let e = if ((size(c.payments) == 1))
1111 then c.payments[0]
1212 else throw("Weekly Vote Need 0.0001 A4A Token as Attached payment[1].")
1313 let f = toBase58String(c.caller.bytes)
14- let g = 1628681400
14+ let g = 1628688600000
1515 let h = 604800000
1616 let i = 3600000
1717 let j = 3600000
1818 let k = (((lastBlock.timestamp - g) / h) + 1)
1919 let l = ((lastBlock.timestamp % h) % i)
2020 let m = assetBalance(addressFromPublicKey(c.callerPublicKey), a)
2121 let n = getIntegerValue(this, (d + "_Total_Votes"))
2222 let o = (n + 1)
2323 if ((100000000 > m))
2424 then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.")
2525 else if ((e.assetId != a))
2626 then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " AssetID Only."))
2727 else if ((e.amount != 10000))
2828 then throw("Please Attach Exact 0.0001 A4A To Vote.")
2929 else if ((j > l))
3030 then throw((("Voting is paused for Next " + toString(((j - l) / 60000))) + " Minutes."))
3131 else if (if (if (if ((d == "A4A"))
3232 then true
3333 else (d == "ARRR"))
3434 then true
3535 else (d == "TN"))
3636 then true
3737 else (d == "WAVES"))
3838 then [StringEntry(("Voted_Asset_" + f), d), StringEntry("message", "<h1>You Voted Successfully!</h1><br>"), IntegerEntry("Current_Voting_Week", k), IntegerEntry("Week0Timestamp", g), IntegerEntry("LastBlockTimeStamp", lastBlock.timestamp), IntegerEntry("Module_Running_Week", l), IntegerEntry((d + "_Total_Votes"), o), ScriptTransfer(c.caller, 1, a)]
3939 else throw("Blank/Wrong Input Entered For Voting.")
4040 }
4141
4242
4343 @Verifier(p)
4444 func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
4545

github/deemru/w8io/026f985 
32.45 ms