tx · 9ZwrSLDuekJreNVFwa7TF7GQasp6jY6Qg63p7WMcRSFP
3N5FdcG1Eyn6Nu8q8J2X81xr5S2XWmZf8hW: -0.01000000 Waves
2019.07.30 16:11 [608880] smart account 3N5FdcG1Eyn6Nu8q8J2X81xr5S2XWmZf8hW > SELF 0.00000000 Waves
{
"type": 13,
"id": "9ZwrSLDuekJreNVFwa7TF7GQasp6jY6Qg63p7WMcRSFP",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1564492273851,
"version": 1,
"sender": "3N5FdcG1Eyn6Nu8q8J2X81xr5S2XWmZf8hW",
"senderPublicKey": "FCeFqu93ZrgVi5rzk6rmR7RqmXW63DDSFMPfpKdKH96N",
"proofs": [
"38WHfPd1nKks9WEJmbdu2SBW6Tzj3pU9t9ENsfYLzDegT4uaAi1durxbKAy2HDFZPw5x7XvMPtH88oe5dkm5RK6V"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAR3RVVSAQAAABoBVKg8XP1PR4nM8qMxkoeO3293q204oOyj2QAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAR3RVVSCQAAAgAAAAECAAAAKndFVVIgLSAzTjVGZGNHMUV5bjZOdThxOEoyWDgxeHI1UzJYV21aZjhoVwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAACkovFV",
"chainId": 84,
"height": 608880,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: C7J2NhnVzEvfRk1PxL8yvtR6bGppoTWq2hBHuAPnp4MJ
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let wEUR = base58'3N5FdcG1Eyn6Nu8q8J2X81xr5S2XWmZf8hW' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func deposit () = { |
---|
| 8 | + | let pmt = extract(i.payment) |
---|
| 9 | + | if ((pmt.assetId != wEUR)) |
---|
| 10 | + | then throw("wEUR - 3N5FdcG1Eyn6Nu8q8J2X81xr5S2XWmZf8hW") |
---|
| 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 newAmount = (currentAmount + pmt.amount) |
---|
| 20 | + | WriteSet([DataEntry(currentKey, newAmount)]) |
---|
| 21 | + | } |
---|
| 22 | + | } |
---|
| 23 | + | |
---|
| 24 | + | |
---|