tx · 6hKwxmd38NzqLtEC2vuGtpwup1eYwbcrfstb5cAwrk2a 3N7b5RREJBhrQwb5AiKUB2upCxMSfNw4nok: -0.05000000 Waves 2019.11.16 14:49 [767623] smart account 3N7b5RREJBhrQwb5AiKUB2upCxMSfNw4nok > SELF 0.00000000 Waves
{ "type": 13, "id": "6hKwxmd38NzqLtEC2vuGtpwup1eYwbcrfstb5cAwrk2a", "fee": 5000000, "feeAssetId": null, "timestamp": 1573905004638, "version": 1, "sender": "3N7b5RREJBhrQwb5AiKUB2upCxMSfNw4nok", "senderPublicKey": "DmGuFUH4FowzKombiviDc5zueFtTtRAcEYoEs9d8Rmd4", "proofs": [ "4wDux7pe9vscy5SZwGNvhWzXxEjwcNx4bqXBZZ8mV5DHdpK1Ep7Ed1zy7dRt64hxwaqbUNJA2jdiWpRrUkJGx41t" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAASeHh4SW52ZXN0b3JCYWxhbmNlCQABLAAAAAIJAAEsAAAAAgUAAAAKY3VycmVudEtleQIAAAABXwIAAAACaWIEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAASeHh4SW52ZXN0b3JCYWxhbmNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld0Ftb3VudAkAAGQAAAACBQAAAA1jdXJyZW50QW1vdW50CAUAAAADcG10AAAABmFtb3VudAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASeHh4SW52ZXN0b3JCYWxhbmNlBQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAABAAAAIL2jxyJU0IPzlMOvX4LXlVwprrVDcb7ygzhBXavVadALByHFpMc=", "chainId": 84, "height": 767623, "spentComplexity": 0 } View: original | compacted Prev: none Next: CggdF6N8cWFKKRAfnDCkMuwPDrUxwAnbvxLh5WfQ5wvH Full:
Old | New | Differences | |
---|---|---|---|
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 xxxInvestorBalance = ((currentKey + "_") + "ib") | |
14 | + | let currentAmount = match getInteger(this, xxxInvestorBalance) { | |
15 | + | case a: Int => | |
16 | + | a | |
17 | + | case _ => | |
18 | + | 0 | |
19 | + | } | |
20 | + | let newAmount = (currentAmount + pmt.amount) | |
21 | + | WriteSet([DataEntry(xxxInvestorBalance, newAmount)]) | |
22 | + | } | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | @Verifier(tx) | |
27 | + | func verify () = match tx { | |
28 | + | case d: SetScriptTransaction => | |
29 | + | sigVerify(tx.bodyBytes, tx.proofs[0], base58'DmGuFUH4FowzKombiviDc5zueFtTtRAcEYoEs9d8Rmd4') | |
30 | + | case _ => | |
31 | + | false | |
32 | + | } | |
33 | + |
github/deemru/w8io/169f3d6 19.64 ms ◑