tx · CEqN8xay2ScNAAR8YdnAEHW3pBTN9s6c1tLTAHa4E8HQ

3Mzjzvg1yhqW34BD63JGz2ha4kUHCgZbHnM:  -0.01000000 Waves

2021.05.16 20:51 [1528556] smart account 3Mzjzvg1yhqW34BD63JGz2ha4kUHCgZbHnM > SELF 0.00000000 Waves

{ "type": 13, "id": "CEqN8xay2ScNAAR8YdnAEHW3pBTN9s6c1tLTAHa4E8HQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1621187554664, "version": 2, "chainId": 84, "sender": "3Mzjzvg1yhqW34BD63JGz2ha4kUHCgZbHnM", "senderPublicKey": "9VRMgquY4eZHyfSJTpzBjLY9HPA8fMS6vgirLNieuvKX", "proofs": [ "2ResDueLuKJB8gBKC4SnjsomfitPihQU37Wm5L4JgB2JNSPj3C3u9ZRmcfH4S5yyY3pndv6VaMaqP8f8XAqdfZ1Q" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAQAAAAAGbWlkaUlkAQAAACAGLtZERQwp0mc9GkII6TL8MrO9FCVbUZ4Q1IdRUGKaigAAAAEAAAABaQEAAAAHYnV5bWlkaQAAAAAEAAAABGRhdGUIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAART05MWSBXQVZFUyBQTEVBU0UEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld0Ftb3VudAkAAGgAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAXcAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIbGFzdERhdGUFAAAABGRhdGUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAHQJFrLw==", "height": 1528556, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BtFUPnHvuaXzJ6ZrAL6UZm4fcEpTirUtZcPi45n75k4u Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let midiId = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
5+
6+@Callable(i)
7+func buymidi () = {
8+ let date = lastBlock.timestamp
9+ let pmt = extract(i.payment)
10+ if (isDefined(pmt.assetId))
11+ then throw("ONLY WAVES PLEASE")
12+ else {
13+ let currentKey = toBase58String(i.caller.bytes)
14+ let currentAmount = match getInteger(this, currentKey) {
15+ case a: Int =>
16+ a
17+ case _ =>
18+ 0
19+ }
20+ let newAmount = (pmt.amount * 6000)
21+ WriteSet([DataEntry("lastDate", date)])
22+ }
23+ }
24+
25+
26+@Verifier(tx)
27+func verify () = false
28+

github/deemru/w8io/026f985 
41.22 ms