tx · 8S1hKmtkqGiNMLhRmY3bGxQHqJej1RoxGVHcfZVLqpTQ
3MwUT9eqXHZVH4mipVZDRcLhqsjNnpPJKLV: -0.01400000 Waves
2019.06.22 12:02 [553017] smart account 3MwUT9eqXHZVH4mipVZDRcLhqsjNnpPJKLV > SELF 0.00000000 Waves
{
"type": 13,
"id": "8S1hKmtkqGiNMLhRmY3bGxQHqJej1RoxGVHcfZVLqpTQ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1561194163973,
"version": 1,
"sender": "3MwUT9eqXHZVH4mipVZDRcLhqsjNnpPJKLV",
"senderPublicKey": "Bk1amW8KVtdKMKnrFQuduBaMWYBxgVAMdiULbDR861hs",
"proofs": [
"5QFmKtCjjqJvT5U38vG49K7aNKzxMZRLNJjxEk5gXqygAsPF2UpdgqmmpxSKrwn4DAiUmgm2SuGVia3NTfSMsoFw"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAR3RXVyAQAAAAAAAAABAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAACIT0AAAACCAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAAR3RXVyCQAAAgAAAAECAAAAHk9ubHkgd0V1ciBkZXBvc2l0cyBhcmUgYWxsb3dlZAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA9wcmV2aW91c0JhbGFuY2UEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAHYWRkcmVzcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAApuZXdCYWxhbmNlCQAAZAAAAAIFAAAAD3ByZXZpb3VzQmFsYW5jZQgFAAAAB3BheW1lbnQAAAAGYW1vdW50CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAdhZGRyZXNzBQAAAApuZXdCYWxhbmNlBQAAAANuaWwAAAAAnUwL3w==",
"chainId": 84,
"height": 553017,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 4KN29U3TUbr4dtnoZ7yziYhudxhDXnGLhsgDJ6WLSqe8
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let wEur = base58'' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func deposit () = { |
---|
| 8 | + | let payment = extract(i.payment) |
---|
| 9 | + | if ((payment.assetId != wEur)) |
---|
| 10 | + | then throw("Only wEur deposits are allowed") |
---|
| 11 | + | else { |
---|
| 12 | + | let address = toBase58String(i.caller.bytes) |
---|
| 13 | + | let previousBalance = match getInteger(this, address) { |
---|
| 14 | + | case a: Int => |
---|
| 15 | + | a |
---|
| 16 | + | case _ => |
---|
| 17 | + | 0 |
---|
| 18 | + | } |
---|
| 19 | + | let newBalance = (previousBalance + payment.amount) |
---|
| 20 | + | WriteSet([DataEntry(address, newBalance)]) |
---|
| 21 | + | } |
---|
| 22 | + | } |
---|
| 23 | + | |
---|
| 24 | + | |
---|