tx · EdizX4LRpazmA5LLfDiMCDvZ6EP5Yc1rn86kkDswxjMs

3Mrao8xeMpyYSki9okAYbTtQwhv49AoRgWy:  -0.05000000 Waves

2020.02.06 02:02 [886528] smart account 3Mrao8xeMpyYSki9okAYbTtQwhv49AoRgWy > SELF 0.00000000 Waves

{ "type": 13, "id": "EdizX4LRpazmA5LLfDiMCDvZ6EP5Yc1rn86kkDswxjMs", "fee": 5000000, "feeAssetId": null, "timestamp": 1580943768740, "version": 1, "sender": "3Mrao8xeMpyYSki9okAYbTtQwhv49AoRgWy", "senderPublicKey": "J3ZzoSpgb5TARsmT5Wv2pE3C3MHRRyXiuu55T2B6NXEY", "proofs": [ "GKVhSHTxLdkjpzV7RZRWNZbafTyHhV4krQ8PZj92xzobCmZZJjX39G6Bj3DsceYk5SstbiWJfNKJH5HrTvxuSg2" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACXdsU3RzQ3VycgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAAB3dsX3N0c18FAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQkAAAIAAAABAgAAABxVc2VyIGhhcyBub3QgYmVlbiB3YWl0bGlzdGVkBAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAANY3VycmVudEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAHQkFMQU5DRQUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50BQAAAANuaWwAAAAA6hl27A==", "chainId": 84, "height": 886528, "spentComplexity": 0 } View: original | compacted Prev: none Next: 7KuWq9VQg14sNK8C2QaxfVpEUpPih8tEMdWZT7wH39dh Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func deposit () = {
8+ let pmt = extract(i.payment)
9+ if (isDefined(pmt.assetId))
10+ then throw("can hodl waves only at the moment")
11+ else {
12+ let currentKey = toBase58String(i.caller.bytes)
13+ let currentAmount = match getInteger(this, currentKey) {
14+ case a: Int =>
15+ a
16+ case _ =>
17+ 0
18+ }
19+ let wlStsCurr = match getString(this, ("wl_sts_" + currentKey)) {
20+ case a: String =>
21+ a
22+ case _ =>
23+ throw("User has not been waitlisted")
24+ }
25+ let newAmount = (currentAmount + pmt.amount)
26+ WriteSet([DataEntry(("BALANCE" + currentKey), newAmount)])
27+ }
28+ }
29+
30+

github/deemru/w8io/026f985 
35.08 ms